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"