From b3bb2fd906001afdd2534fe31b7e5aa96d3e13d0 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Thu, 11 Jul 2019 07:19:08 -0400 Subject: [PATCH] Added fan switch --- switches/living_room.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/switches/living_room.yaml b/switches/living_room.yaml index d50a1bc..de6f194 100644 --- a/switches/living_room.yaml +++ b/switches/living_room.yaml @@ -4,4 +4,11 @@ command_topic: "smartthings/Incense/switch" payload_on: "on" payload_off: "off" + retain: true +- platform: mqtt + name: "Living Room Fan" + state_topic: "smartthings/Living Room Fan/switch" + command_topic: "smartthings/Living Room Fan/switch" + payload_on: "on" + payload_off: "off" retain: true \ No newline at end of file