You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.2 KiB

######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Press an [Amazon Dash Buttons](https://amzn.to/2dPKZhM) and then stuff happens - Home Assistant automation behavior.
# Defines the Press an [Amazon Dash Buttons](https://amzn.to/2dPKZhM) and then stuff happens triggers, conditions, and actions.
# -------------------------------------------------------------------
######################################################################
- alias: 'Toggle Office Light on/off'
id: ff021afa-3f71-4296-a395-75a12fdc5df3
trigger:
- platform: event
event_type: office_lamp_dash
action:
# Disable this automation
- service: automation.turn_off
entity_id: automation.toggle_office_light_on_off
- service: light.toggle
entity_id: light.office_lamp
- delay:
minutes: 1
# enable this automation - This prevents duplicate pushes.
- service: automation.turn_on
entity_id: automation.toggle_office_light_on_off

Powered by TurnKey Linux.