-
-
Save niro1987/f6e84c27b304f0bf3be16a8f439e8efd to your computer and use it in GitHub Desktop.
Hey Niro, I now had the Time to fork it, but somehow it doesn't seem to work.. I already deleted it, as I thought my edits were the issue, now I have a fresh fork but it still doesn't work properly.
I get the error "Error rendering data template: TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'"
Happenes for the light color (color temp).
Do you have any idea?
The fork is here:
https://gist.github.com/dbara/911b76bb842bf2c76362c0ac9abb443b
Hey again, I found the issue and how to fix it. When you select one entity, it adds it differently than when you add multiple. You have to edit the automation as yaml and correct it.
Wrong:
light_entity:
entity_id: light.0xbc...
Correct:
light_entity:
entity_id:
- light.0xbc...
Have a good day
Hola de nuevo, encontré el problema y cómo solucionarlo. Cuando selecciona una entidad, la agrega de manera diferente que cuando agrega varias. Tienes que editar la automatización como yaml y corregirla.
Incorrecto: light_entity: entity_id: light.0xbc ...
Correcto: light_entity: entity_id: - light.0xbc ...
Que tenga un buen día
Thanks! I had the same problem with the Ikea bulbs and solved it with your tip
replace every var_light_entities.entity_id[0]
with var_light_entities.entity_id
Okay, can someone help me out here? I got the same issue with the colors. The Tradfri bulb has the property of "color_temp" but it won't change the color, always gives the same error:
Logger: homeassistant.components.automation.zigbee2mqtt_ikea_tradfri_5_button_remote_warm_white_lights
Source: components/automation/__init__.py:676
Integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
First occurred: 17:48:25 (57 occurrences)
Last logged: 19:48:19
Error while executing automation automation.zigbee2mqtt_ikea_tradfri_5_button_remote_warm_white_lights: Error rendering data template: TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
Error while executing automation automation.zigbee2mqtt_ikea_tradfri_5_button_remote_warm_white_lights: Error rendering data template: TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
I already repaired the bulb twice, no change. I can change the color using the dev menu or my own automatisation just fine.
Great to hear that you've got it working now!
By the looks of it, the light group does allow a
color_temp
to be set but it does not actually report what it's currentcolor_temp
value is.