I am trying to get my automation to trigger every other day - it seem to be triggering every day.
Long term I will use soil water sensors, but I’m not there yet.
I’m using:
Home Assistant 0.109.4
in a docker container
on debian 10 - buster
I5 8GB ram
it ran well using the weekday condition below, but i needed to increase the watering for the summer.
trigger:
- at: 08:00
platform: time
condition:
- condition: time
weekday:
- wed
- sun
but this code seems to trigger every day even tho the value tempate portion alternates 1 and 0 correctly every other day.
{{ now().timestamp()|int % 2 == 0 }} isn’t going to do what you want. Its updating constantly based on UNIX time so at any given moment it could be even or odd. A couple of examples are 1588698878 and 1588698919 are what is being returned.
One option would be use {{ now().day|int % 2 == 0}}, but you will have an issue on 31 day months…