I have set sunrise device. I need to move the times of two hours back.
For example, if the time is 12:01:18 and I do subtract two hours., “{$-rio Amazonas-manaus.sunrise - 2}” I get the result 10.
Solution could be to shift the position of two hours to the east, but it is not completely clear solution.
Has anyone suggested solutions similar thing?
-
[solved]Time offset
Pimatic = Smart Home
-
@wutu How about
timeFormat(timeDecimal($-rio Amazonas-manaus.sunrise)-2)
? I didnt test it, buttimeDecimal(12:01:18)
will change 12:01:18 to 12.021666… andtimeFormat(10.021666)
should change it back to10:01:18
. -
@Marie many thx. Works like a charm.
Pimatic = Smart Home