-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temperature time sensors are not timestamp data type #275
Comments
Thanks for opening this issue. What's happening here is those sensors in the API are in epoch time and not a timestamp. You'll need to convert them to a timestamp. I'm not sure if its possible to convert them into a timestamp in the integration itself so I'll ping @alexander0042 to see if its possible |
Good catch here, and sorry for the slow reply- I was working on fixing some stability issues with the primary API, so that was the focus. The good news here is that this was an easy change, and will be out in 1.5.5 today! |
V1.5.5 has just been released which contains this fix. |
Thanks for mentioning the Environment Canada integration! I'll take a look at it to see what they do and go from there! |
Also corrects the datetime low temperature time to read the correct variable (low instead of min). The entity name is kept the same for compatibility
@alexander0042 Was testing the update in a devcontainer before creating a new release and am running into this error with the daily low sensor:
|
Thanks for testing this! I missed that variable since it has a different name than the others, but just pushed a commit that should fix it |
Yup, that fixed the issue. One thing I noticed during testing was the Overnight Low Time sensor was showing the data from |
Other than the issue I pointed out above (maybe it's working as intended?) are we good to release a new version? Been holding off releasing a new version to make sure its stable. I've tested locally and everything works so I think we're good to release the changes? |
Yea, I was a little confused by the high/low min/max for that one as well. I initially changed it to match to description in the text, so it's pulling the high/low (Day/Night) times for both apparent and temperature. However, in the entity description it's coded as min, and I think to keep things consistent it's better not to change it, so I just pushed a change to set it back to min |
Tested the changes again and everything is looking good. Is this good to release or do you want to look at #241 first? |
Let's leave that one open until we hear back if those sensors would be useful to have and push a new release in the meantime! |
Alright will leave that one open. @jazzyisj I've released v1.5.8 which fixes the issues with the datetime sesnors. |
You guys are fast! Installed and tested - thanks! I'll close the issue. |
Describe the bug
The recently added time sensors for high and low temperatures are not timestamp data type.
Expected behavior
A properly instantiated datetime entity can be used to display the date or time in a human friendly format in the UI like this using the entity format parameter.
Actual behavior
The Pirateweather time state sensors are not proper timestamps and do not work with the entity format parameter in the UI.
Home Assistant version
2024.8.0b2
Integration version
1.5.3
Other details
https://developers.home-assistant.io/docs/core/entity/datetime/
Troubleshooting steps
The text was updated successfully, but these errors were encountered: