HASS works better than their app for controlling the thermostat, but is missing the runtime data. I know they have an API, but I dont know enough about them yet to dig around in them.
Anybody know if this data is obtainable through their API?
HASS works better than their app for controlling the thermostat, but is missing the runtime data. I know they have an API, but I dont know enough about them yet to dig around in them.
Anybody know if this data is obtainable through their API?
It isn’t. You can get a PDF of the API. I’ve been meaning to add a binary sensor for heat and cool activity to the thermostat but haven’t gotten around to it yet. Once that’s in, you could check that and integrate the result to get run time.
If its not available in the API, how are you able to create the data?
The API tells you when it’s on or off, not how long it’s been on or off for. So the first step is to expose the on/off data as a binary sensor. Then write something that integrates the on time of the sensor to get the run time over whatever interval you want.
{“temp”:60.00,“tmode”:1,“fmode”:0,“override”:1,“hold”:1,“t_heat”:60.00,“tstate”:0,“fstate”:0,“time”:{“day”:5,“hour”:18,“minute”:25},“t_type_post”:0}
I assume tstate is what I need. Pretty cool how Firefox handles this data.
I dont have crap for coding experience, I may try doing something with NodeRED in the meantime…