Hi.
I’m new to this great community.
I added the jewish calendar to my configuraton file, and the time it is showing for lighting candles and all the rest is wrong.
my configuration:
it’s very important for me to use this feature.
Currently, it shows me that the time for lighting candle in shabbat is 2019-11-15 14:02:00+00:00, and havdalah time is - 2019-11-16 15:20:00+00:00
The date and time of the system is correct.
i’m using version 2.12 (stable), and recently updated the hassio system to version 0.101.3.
Thank you in advance!
Have you set your location ? Either via the “configurations - general” section. Or via a ‘home’ zone in the zones file.
If you type “{{ sensor.time }}” into the template editor on the developer tools page, what do you get ?
Again, not clear
It shows you plus 2 ???
Do you mean you are in gmt +2 and that’s what the sensor tells you (so it’s the correct time) ?
Or it it +2 hours off your local time ?
Hi Matt.
Thanks for trying to help.
I defined in configuration.yaml the time zone as - Asia/Jerusalem which is GMT+2.
went to template in developer tools and entered - {{ sensor.time }} as you suggested, and got the following error:
Error rendering template: UndefinedError: ‘sensor’ is undefined.
however, in my home screen - the date & time is correct.
somehow, all the times of the jewish calendar are showing as + 00:00.
I have the same issue with Jewish calendar, the time zone is Asia/Jerusalem (GMT+2) and the local time is OK.
But the sensor are using UTC clock, it’s mean the sensor is 2H behindhand… this happened after software upgrade 0.101.3.
BTW, The last version are add +2 to the UTC clock then sensor acting as the local time.
The component was reworked aparently between 100 and 101. It purposely outputs in UTC (Don’t ask me why because I don’t know why).
All you guys need to do is make a timestamp sensor template using the timestamp attribute and you should be good to go.
EDIT: So the Frontend (lovelace) should already translate the timestamp. But if you need to make use of the sensors as automations, you need to convert it to your own timezone. This can be done by with what I said above. If you guys post a screenshot of the state & attributes in the developer tools / states page, I can help with templates.
And this issue contains some useful templates at the bottom (ignore the center ones).
Hi Petro.
All i want to do is to show the correct hadlaket nerot time in lovelace.
currently, it is showing the time in UTC format as you said.
I tried to look at the link you added and find some help there, but didn’t succeeded to convert the timestamp to timestamp_local.
in the thread you added, Tzvi wrote:
" Your code can be very much be simplified. Pass the timestamp attribute from the sensor to the timestamp_local / timestamp_custom filters."
But how do i pass the timestamp attribute from the sensor to timestamp_local??