home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
5.03k stars 7.32k forks source link

Time Format for sensor and is there a way to add offset? #31896

Open kraty92 opened 8 months ago

kraty92 commented 8 months ago

Feedback

Hi.

What time format is it used for the sensors? i have tried many and i cannot get the right format for new sensors with offset.

Is there a way to add offset on new senors called something with offset?

i want the offset also with the original sensors.

URL

https://www.home-assistant.io/integrations/islamic_prayer_times

Version

2024.03.0

Additional information

Hi.

What time format is it used for the sensors? i have tried many and i cannot get the right format for new sensors with offset.

Is there a way to add offset on new senors called something with offset?

i want the offset also with the original sensors.

home-assistant[bot] commented 8 months ago

Hey there @engrbm87, mind taking a look at this feedback as it has been labeled with an integration (islamic_prayer_times) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `islamic_prayer_times` can trigger bot actions by commenting: - `@home-assistant close` Closes the feedback. - `@home-assistant rename Awesome new title` Renames the feedback. - `@home-assistant reopen` Reopen the feedback. - `@home-assistant unassign islamic_prayer_times` Removes the current integration label and assignees on the feedback, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.
engrbm87 commented 8 months ago

@kraty92 , although this is the wrong repository for such a question, I suggest you check how to convert the sensor state to a datetime object then add the offset. https://www.home-assistant.io/docs/configuration/templating/#time