substitutions: hostname: cloakroom-switch friendly_name: Cloakroom Switch touchpad1_action: toggle_hall_light packages: device: !include devices/sonoff-t3.yaml wifi: use_address: 192.168.10.16 script: - id: toggle_hall_light then: - homeassistant.service: service: homeassistant.toggle data: entity_id: "switch.front_door_switch_relay_2"