Hello there,
I have a Smart Bulb type EMOS GoSmart A65 connected via zigbee to my home assistant on raspberry pi. I wanted to monitor its unavailability(power loss) using uptime kuma. The issue is that the smart bulb retains it’s state event after power loss, meaning that when the state of it was for example ON and then there is a power loss like for example when I turn it off manually via normal switch, the state is still on in a response from the endpoint.
This is the part in configuration.yaml for the enpoint:
sensor:
- platform: template
sensors:
living_room_smart_bulb_status:
friendly_name: "Living Room Smart Bulb Status"
value_template: "{{ states('light.tz3210_grzkr4mu_ts0505b_light') }}"
And this is what the response looks like:
{
"entity_id": "sensor.living_room_smart_bulb_status",
"state": "on",
"attributes": {
"friendly_name": "Living Room Smart Bulb Status"
},
"last_changed": "2024-05-24T07:51:12.650134+00:00",
"last_reported": "2024-05-24T07:51:12.650134+00:00",
"last_updated": "2024-05-24T07:51:12.650134+00:00",
"context": {
"id": "01HYMSA70AP6W33K905GVN07E1",
"parent_id": null,
"user_id": null
}
}
How can I tackle this issue?