Hi, I'm trying to template the 'offset' field of the sun integration in a trigger, but can't get it to work. I get
Error:offset 00:{{ ((state_attr('weather.openweathermap', 'cloud_coverage') / 100 * 30 + 15) | int | string) }}:00 should be format 'HH:MM', 'HH:MM:SS' or 'HH:MM:SS.F' for dictionary value @ data['offset']. Got None.
This is what I have in that field: offset: "00:{{ ((state_attr('weather.openweathermap', 'cloud_coverage') / 100 * 30 + 15) | int | string) }}:00"
Running this in the Developer template gives me "-00:45:00" which is what that field is expecting.
What am I doing wrong? Thanks.