Skip to content

Instantly share code, notes, and snippets.

@runningman84
Created February 19, 2017 20:46
Show Gist options
  • Save runningman84/a258ecfcb7e4d267dac75003edf684f6 to your computer and use it in GitHub Desktop.
Save runningman84/a258ecfcb7e4d267dac75003edf684f6 to your computer and use it in GitHub Desktop.
turn off lights
- alias: Turn off Arbeitszimmer lights at night
trigger:
platform: time
# When 'after' is used, you cannot also match on hour, minute, seconds.
# Military time format.
#after: '23:00:00'
after: '21:22:00'
#condition:
# condition: state
# entity_id: binary_sensor.net_laptop_philipp
# state: 'off'
#condition:
# condition: and
# conditions:
# - condition: state
# entity_id: binary_sensor.net_pc_philipp
# state: 'off'
# - condition: state
# entity_id: binary_sensor.net_laptop_philipp
# state: 'off'
action:
service: homeassistant.turn_off
entity_id:
- light.hue_fido
- switch.fluxer_arbeitszimmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment