rospogrigio / daikin_residential

Cloud control of Daikin devices that are supported by Daikin Residential Controller app.
GNU General Public License v3.0
282 stars 39 forks source link

[Feature] Add an entity that show if the unit is online/offline #197

Closed svenove closed 10 months ago

svenove commented 10 months ago

I would like to send a push notification if the unit is offline/unavailable for 30 mins. Could there be an entity that simply shows if the device is online or not?

jwillemsen commented 10 months ago

I think you can use the available property (https://developers.home-assistant.io/docs/core/entity/#generic-properties), this is read from the isCloudConnectionUp value as returned by Daikin

svenove commented 10 months ago

@jwillemsen sounds great! But how do I access that property from an automation? Thought I would find it as an attribute on the entity, but I can’t find it there.

jwillemsen commented 10 months ago

Maybe https://community.home-assistant.io/t/is-it-possible-to-trigger-an-automation-if-an-entity-goes-missing/417312/11 helps, google is your friend ;-)

svenove commented 10 months ago

@jwillemsen is it the state of the device that changes to “unavailable”? Been using HASS for 1,5 month and still struggle a bit to grasp device/entity and state/attribute/property.

Might be I can use this from the forum link you provided: https://github.com/jazzyisj/unavailable-entities-sensor

svenove commented 10 months ago

@jwillemsen oh, I found it! On my phone I didn’t notice the list of states was “scrollable”… 🤦🏼‍♂️😂

Thanks!

IMG_5072