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.
33 lines
795 B
33 lines
795 B
4 months ago
|
substitutions:
|
||
|
hostname: lounge-by-hall
|
||
|
friendly_name: Lounge 1
|
||
|
touchpad1_action: toggle_lounge_light
|
||
|
touchpad2_action: toggle_lamp
|
||
|
touchpad3_action: toggle_dining_light
|
||
|
|
||
|
wifi:
|
||
|
use_address: 192.168.10.7
|
||
|
|
||
|
packages:
|
||
|
device: !include devices/sonoff-t3.yaml
|
||
|
|
||
|
script:
|
||
|
- id: toggle_lounge_light
|
||
|
then:
|
||
|
- homeassistant.service:
|
||
|
service: homeassistant.toggle
|
||
|
data:
|
||
|
entity_id: "light.lounge_light_1_bulb"
|
||
|
- id: toggle_dining_light
|
||
|
then:
|
||
|
- homeassistant.service:
|
||
|
service: homeassistant.toggle
|
||
|
data:
|
||
|
entity_id: "light.lounge_light_2_bulb"
|
||
|
- id: toggle_lamp
|
||
|
then:
|
||
|
- homeassistant.service:
|
||
|
service: homeassistant.toggle
|
||
|
data:
|
||
|
entity_id: "light.lounge_lamp_relay"
|