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.
19 lines
387 B
19 lines
387 B
4 months ago
|
substitutions:
|
||
|
hostname: bedroom-switch
|
||
|
friendly_name: Bedroom Switch
|
||
|
touchpad1_action: toggle_bedroom_lamp
|
||
|
|
||
|
wifi:
|
||
|
use_address: 192.168.10.3
|
||
|
|
||
|
packages:
|
||
|
device: !include devices/sonoff-t3.yaml
|
||
|
|
||
|
script:
|
||
|
- id: toggle_bedroom_lamp
|
||
|
then:
|
||
|
- homeassistant.service:
|
||
|
service: homeassistant.toggle
|
||
|
data:
|
||
|
entity_id: "switch.bedroom_lamp_relay"
|