Skip to content

Instantly share code, notes, and snippets.

@SimedruF
Last active May 22, 2022 11:09
Show Gist options
  • Save SimedruF/69e373f2db5f4c9089c4bc7eac9d3514 to your computer and use it in GitHub Desktop.
Save SimedruF/69e373f2db5f4c9089c4bc7eac9d3514 to your computer and use it in GitHub Desktop.
irrigation_apartment_plants.yaml
alias: Irigatia plante ON/OFF
description: ''
trigger:
- platform: time
at: '19:30:00'
condition:
- type: is_on
condition: device
device_id: b93b8fdb563df912da8b5d79d64c1e23
entity_id: binary_sensor.sys_connectivity_4
domain: binary_sensor
- condition: device
type: is_on
device_id: b93b8fdb563df912da8b5d79d64c1e23
entity_id: switch.actuatoronoff_2
domain: switch
- type: is_temperature
condition: device
device_id: fe5e6f259e174a96159ff54a315e1f38
entity_id: sensor.temp_2
domain: sensor
above: 20
action:
- type: turn_on
device_id: b93b8fdb563df912da8b5d79d64c1e23
entity_id: switch.actuatoronoff_2
domain: switch
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- type: turn_off
device_id: b93b8fdb563df912da8b5d79d64c1e23
entity_id: switch.actuatoronoff_2
domain: switch
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment