Hi, I’m on Home Assistant (latest version) in python env.
In my scenario, I need my yeelights to be turned off by a wall switch (switch off electric power) that makes them unreachable.
I would like Home assisatnt always assume them present and in the “off” state even when they are off (without power).
This is because having exported them to homekits adn, if I restart the home assistant when the yeelights are without power, they disappear from homekit.
I searched the forum, on google, but found nothing about it.
Thank you very much everyone.
I’m trying to use light template to create a virtual light to present in homekit and not real yeelight bulb. Of course i would like “virtual light” have same state and attributes to real yeelight and vice versa.
but something is wrong.
according to documentation i do:
- platform: template
lights:
giardino_fronte:
value_template: "{{ states('light.yeelight_giardino_fronte') }}"
entity_id: light.yeelight_giardino_fronte
level_template: "{{ state_attr('light.yeelight_giardino_fronte', 'brightness') }}"
turn_on:
service: light.turn_on
data:
entity_id: light.yeelight_giardino_fronte
turn_off:
service: light.turn_off
data:
entity_id: light.yeelight_giardino_fronte
but I haven’t brightness in “virtual light”.
Also, i think trere is not possibility to manage rgb colors.
any idea?
thanks a lot.
it’s more simple than i thinking.
i have created a group with yeelight and a dummy mqtt light always in “off” state.
i’ve exported to homekit the group light.
i hope can help someone.
thanks.