jason0x43 / hacs-hubitat

A Hubitat integration for Home Assistant
MIT License
198 stars 47 forks source link

sensor.mode never updates? #145

Closed PlinyElderATX closed 3 years ago

PlinyElderATX commented 3 years ago

I'm attempting to have some automations in HA alter based on the mode hubitat is in (Day, Evening, Night - in my case). I think I've potentially found a bug in that for some reason HA always seems to think the mode is "Day" I've tried manually changing it in addition to letting time pass for it to get to a new mode through mode manager... HA always seens it as Day. Specifically this is sensor.hub_mode. I can get the proper mode from hubitat in Node-Red if I use the nodes that connect to hubitat directly to query.

jason0x43 commented 3 years ago

Is the "POST location events?" toggle enabled in your Maker API app in Hubitat?

PlinyElderATX commented 3 years ago

It was not, toggling it on seems to have resolved it. That's interesting as I don't know that I think of mode as a "location" event.

jason0x43 commented 3 years ago

Yeah, it's kind of surprising. Events that don't come from devices, like HSM status and the hub's mode, count as "location" events.