Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor:
- - platform: adc
- pin: GPIO35
- name: "Pressure 1"
- update_interval: 1s
- attenuation: 11db
- on_value_range:
- - above: 5.0
- then:
- - homeassistant.service:
- service: input_boolean.turn_on
- entity_id: input_boolean.pressure1
- - below: 50.0
- then:
- - homeassistant.service:
- service: input_boolean.turn_off
- entity_id: input_boolean.pressure1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement