Hi
i’m having trouble with creating a value template for my tuya lights.
They all register as light.numberofID
It seems like HA can’t handle lights that start with a number
states.light.badkamer works, but states.light.321689735468 doesn’t
is there any way around this?
right now i can’t validate my code and thus HA won’t reboot.
- platform: template
sensors:
slaapkamer_lights_on:
value_template: >
{% set lights = [
states.light.3227560084f3eb8f6556
] %}
{{ lights | selectattr('state','eq','on') | list | count }}