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
1]bbrendon: anyone use get_history() ? its not working for me anymore. not sure when it stopped.
[09:41]bbrendon: for me it always returns []
[09:45]bbrendon: hmm ...changing it to days=1 returned something. weird.
[09:46]Andrew Cockburn: Are you using a dev build?
[09:49]bbrendon: yea.
[09:49]bbrendon: changing it to hours=12 vs hours=5 returns data. i'm tihnking its a TZ issue now.
[09:49]Andrew Cockburn: Ok - there were some minor changes in there recently
[09:50]Andrew Cockburn: Appreciate any testing you can do to narrow it down
[09:50]bbrendon: my code worked once upon a time. seems something changed in AD. either a bug was added or a bug was fixed that broke my code . heh
[09:55]bbrendon:
start_time = dt.datetime.now() - dt.timedelta(hours=10)
data = self.get_history(entity_id="sensor.rs_temp_masterbedroom_temp", start_time=start_time)
Returns data starting at 7:53 AM which is only 2 hours ago
[09:56]bbrendon: but I asked for 10 hours.
[09:56]bbrendon: and pacific time is 8 hours ...
[10:26]bbrendon: using dt.datetime.now(dt.timezone.utc) didn't help.
Version
dev
Installation type
Home Assistant add-on
Relevant log output
No response
Relevant code in the app or config file that caused the issue
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
What happened?
1]bbrendon: anyone use get_history() ? its not working for me anymore. not sure when it stopped.
[09:41]bbrendon: for me it always returns []
[09:45]bbrendon: hmm ...changing it to days=1 returned something. weird.
[09:46]Andrew Cockburn: Are you using a dev build?
[09:49]bbrendon: yea.
[09:49]bbrendon: changing it to hours=12 vs hours=5 returns data. i'm tihnking its a TZ issue now.
[09:49]Andrew Cockburn: Ok - there were some minor changes in there recently
[09:50]Andrew Cockburn: Appreciate any testing you can do to narrow it down
[09:50]bbrendon: my code worked once upon a time. seems something changed in AD. either a bug was added or a bug was fixed that broke my code . heh
[09:55]bbrendon:
start_time = dt.datetime.now() - dt.timedelta(hours=10)
data = self.get_history(entity_id="sensor.rs_temp_masterbedroom_temp", start_time=start_time)
Returns data starting at 7:53 AM which is only 2 hours ago
[09:56]bbrendon: but I asked for 10 hours.
[09:56]bbrendon: and pacific time is 8 hours ...
[10:26]bbrendon: using dt.datetime.now(dt.timezone.utc) didn't help.
Version
dev
Installation type
Home Assistant add-on
Relevant log output
No response
Relevant code in the app or config file that caused the issue
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: