Hello,
Here is my setup :
I have various zigbee light bulbs (that do not act as repeaters/routers). There light bulbs are connected to ‘dumb’ wall swtiches that have a sonoff ZBMiniL2 behind them (so no that dumb really). The setup is like that because for me i control everything with the home assistant, but others in my household use the wall switches.
I understand all of the ramifications of cutting power to zigbee devices with regards to the mesh network, however i have smart plugs near every light bulb throughout my home, so the network is stable with the lights on or off.
This set up works perfectly. On my dashboard i have various custom mushroom light cards here is an example :
- type: custom:mushroom-light-card
entity: light.outside_sh_light
show_color_temp_control: true
use_light_color: true
show_color_control: true
show_brightness_control: true
collapsible_controls: false
tap_action:
action: call-service
service: switch.toggle
service_data:
entity_id: switch.sh_sonoff_outside_light_switch
card_mod:
style: |
ha-card {
border: none;
As you will notice i have it set up so that when i click the light bulb it actually triggers the sonoff switch to turn off. The problem i have at this point is that the button does not update the light status. The bulb has obviously lost power, so no zigbee reporting is happening. For all HA knows the light is still on.
Is there are workaround to this so that when i toggle the sonoff switch the dashboard is updated to show the current light status? I thought of using an automation to check every minute, but this doesnt seem to work:
alias: Update Light Status
description: Check the status of multiple lights every minute and update the dashboard
trigger:
- platform: time_pattern
minutes: /1
action:
- service: homeassistant.update_entity
target:
entity_id:
- light.outside_mh_light
- light.outside_sh_light
- light.outside_gate_light
- light.outside_bbq_light
- light.living_room_light
- light.kids_bedroom
- light.sh_left_bedroom_light
- light.sh_middle_bedroom_light
- light.master_bedroom_light
data: {}
Could anyone help?