rsnodgrass/hass-flo-water

Lots of errors plus can't open or close the valve

Closed this issue · 5 comments

Error log below: Using V2.0.7

Bad request: 2019-03-01 14:14:37.481115+00:00:2020-02-29 14:14:37.481115+00:00:1m
8:14 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2020-02-29 13:14:37.481115+00:00:2020-02-29 14:14:37.481115+00:00:1h
8:14 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2019-03-01 14:14:06.015268+00:00:2020-02-29 14:14:06.015268+00:00:1m
8:14 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2020-02-29 13:14:06.015268+00:00:2020-02-29 14:14:06.015268+00:00:1h
8:14 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2019-03-01 14:13:35.019028+00:00:2020-02-29 14:13:35.019028+00:00:1m
8:13 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2020-02-29 13:13:35.019028+00:00:2020-02-29 14:13:35.019028+00:00:1h
8:13 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2019-03-01 14:13:04.473733+00:00:2020-02-29 14:13:04.473733+00:00:1m
8:13 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2020-02-29 13:13:04.473733+00:00:2020-02-29 14:13:04.473733+00:00:1h
8:13 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2019-03-01 14:12:33.470065+00:00:2020-02-29 14:12:33.470065+00:00:1m
8:12 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2020-02-29 13:12:33.470065+00:00:2020-02-29 14:12:33.470065+00:00:1h
8:12 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2019-03-01 14:12:02.481330+00:00:2020-02-29 14:12:02.481330+00:00:1m
8:12 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2020-02-29 13:12:02.481330+00:00:2020-02-29 14:12:02.481330+00:00:1h
8:12 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2019-03-01 14:11:31.017853+00:00:2020-02-29 14:11:31.017853+00:00:1m
8:11 AM custom_components/flo/sensor.py (ERROR)
Bad request: 2020-02-29 13:11:31.017853+00:00:2020-02-29 14:11:31.017853+00:00:1h
8:11 AM custom_components/flo/sensor.py (ERROR)

Also getting a ton of these :

2020-04-11 05:11:41 ERROR (SyncWorker_11) [custom_components.flo.sensor] Bad request: 2020-04-11 04:11:41.497575+00:00:2020-04-11 05:11:41.497575+00:00:1h                                                                                                                                                                │··
2020-04-11 05:11:42 ERROR (SyncWorker_11) [custom_components.flo.sensor] Bad request: 2019-04-12 05:11:41.497575+00:00:2020-04-11 05:11:41.497575+00:00:1m                                                                                                                                                                │··
2020-04-11 05:12:13 ERROR (SyncWorker_11) [custom_components.flo.sensor] Bad request: 2020-04-11 04:12:12.798549+00:00:2020-04-11 05:12:12.798549+00:00:1h                                                                                                                                                                │··
2020-04-11 05:12:13 ERROR (SyncWorker_11) [custom_components.flo.sensor] Bad request: 2019-04-12 05:12:12.798549+00:00:2020-04-11 05:12:12.798549+00:00:1m                                                                                                                                                                │··
2020-04-11 05:12:44 ERROR (SyncWorker_11) [custom_components.flo.sensor] Bad request: 2020-04-11 04:12:43.741301+00:00:2020-04-11 05:12:43.741301+00:00:1h                                                                                                                                                                │··
2020-04-11 05:12:44 ERROR (SyncWorker_11) [custom_components.flo.sensor] Bad request: 2019-04-12 05:12:43.741301+00:00:2020-04-11 05:12:43.741301+00:00:1m                                                                                                                                                                │··
2020-04-11 05:13:14 ERROR (SyncWorker_17) [custom_components.flo.sensor] Bad request: 2020-04-11 04:13:14.526750+00:00:2020-04-11 05:13:14.526750+00:00:1h                                                                                                                                                                │··
2020-04-11 05:13:15 ERROR (SyncWorker_17) [custom_components.flo.sensor] Bad request: 2019-04-12 05:13:14.526750+00:00:2020-04-11 05:13:14.526750+00:00:1m 

This is also impacting Flo's website right now, appears the API changes to require a macAddress for the unit to get consumption and even their website isn't updated yet to fix this. They changed this to stop getting consumption on a per-location basis, moving to a per-device basis (since a single house could have more than one Flo).

This issue is in pyflowater.consumption() call, will see if this can be resolved easily by trying to just send a macAddress as well. Otherwise, we have to wait until Flo engineers update their examples for how to call to figure this out.

image

Speaking of consumption, this is currently the usage since January 1st of the current year. It seems like this should be more granular (e.g. last 24 hours; or consumption over last hour, or consumption since last interval so that graph shows more real time usage).

Any suggestions on what the consumption sensor should actually be? We don't have to be limited by a single sensor too, so we could have a last interval sensor (which should probably default to 5 minutes so that this isn't constantly pinging Flo services).

Potential fix for consumption data in master (imported a new pyflowater version that passes macAddress to consumption call). Will test and push a new release if it works.

2.0.8 released with a patch from pyflowater to include macAddress for consumption calls