Wonder if anyone can help - i’m using schedy and trying to get this code to set mode to ‘OFF’ is chance of precipitation is >=10. No matter what order/indentation I put this in, the precipitation is just ignored. The time of day and temperature setting is working correctly. What am I missing? Going crazy!
conservatory:
friendly_name: Conservatory
actors:
climate.conservatory:
#hvac_mode_on: false
supports_hvac_modes: false
watched_entities:
- "sensor.probability_of_precipitation"
schedule:
- v: "OFF"
rules:
- weekdays: 1-7
rules:
- rules:
#don't turn on when probability of raining >= 10
- x: "Break() if int(float(state('sensor.probability_of_precipitation'))) >= 10 else Next()"
- { start: "08:00", end: "21:00" }
- v: "27"
- v: "OFF"
Thanks for any pointers. I had to do the int(float) thing or I get errors in the log due to the way the string is presented to avoid log errors.