automation examples to change binary_sensor #128
Replies: 6 comments 3 replies
-
Hi, there are examples here: |
Beta Was this translation helpful? Give feedback.
-
input_boolean: template:
input_number: |
Beta Was this translation helpful? Give feedback.
-
Changing the irrigation duration is not as easy as expected. The add-on requires sensor.bewatering_aanpassing, but I would like to adjust this value based on rain or high temperatures. After a lot of reading and testing, it seems that sensor.bewatering_aanpassing is read-only in Home Assistant. For binary_sensor.bewatering_regen, I would like to use Buienradar (Dutch weather service for irrigation). When rain is detected, it should be set to "rain," preventing irrigation. Is there a reason not to use input_number.bewatering_aanpassing instead? And for rain detection, would a switch be a better option? Apart from this, the setup is quite simple, but I can't figure this part out. |
Beta Was this translation helpful? Give feedback.
-
Something is not working or I don't understand it. |
Beta Was this translation helpful? Give feedback.
-
Hi, You need to create a sensor, check out the template sensor above 'adjustment'. the example below will create the ability to manually apply the adjustment. However if you replace the "{{ states('input_number.adjustment') }}" with any jiinja2 script. The state value needs to be numeric 0 will stop watering, 1 will water 100% 1.1 will water an additional 10%...
|
Beta Was this translation helpful? Give feedback.
-
YES!! It works. I learned a lot of this. Thanks for your support! |
Beta Was this translation helpful? Give feedback.
-
I made 2 helpers, sensor.bewatering_aanpassing and binary_sensor.bewatering_regen
When i change these in the developers section they do change, and it works.
Only i can find a way to make an automation to change these values?
Maybe there a some automation examples?
Beta Was this translation helpful? Give feedback.
All reactions