You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I need to update about a dozen sensor values which I'm gathering and push them to HA on a regular time interval. I call .set_state(value) on each one. As a result the recorded timestamp is a little off.
Describe the solution you'd like
.set_state(...) should take an optional argument where you can give the timestamp of the recorded data. This would also allow to make the recording at the exact minute/second instead of being a few milliseconds off due to the time it takes to pull values and then call .set_state(...) on each.
Describe alternatives you've considered
A way to make at least all sensor updates to a device an atomic action. Like: 1. start update call (new API), 2. call set_state() on each, then 3. call push update (new API).
Thanks for considering this request.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I need to update about a dozen sensor values which I'm gathering and push them to HA on a regular time interval. I call .set_state(value) on each one. As a result the recorded timestamp is a little off.
Describe the solution you'd like
.set_state(...) should take an optional argument where you can give the timestamp of the recorded data. This would also allow to make the recording at the exact minute/second instead of being a few milliseconds off due to the time it takes to pull values and then call .set_state(...) on each.
Describe alternatives you've considered
A way to make at least all sensor updates to a device an atomic action. Like: 1. start update call (new API), 2. call set_state() on each, then 3. call push update (new API).
Thanks for considering this request.
The text was updated successfully, but these errors were encountered: