From 5f73deb57dcf2e2ac2528f6d92afc974a0033c82 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Fri, 19 May 2017 18:17:31 +0100 Subject: [PATCH] Add MQTT fan --- configuration.yaml | 2 ++ fan.yaml | 10 ++++++++++ groups/default_view.yaml | 1 + 3 files changed, 13 insertions(+) create mode 100644 fan.yaml diff --git a/configuration.yaml b/configuration.yaml index 9130fb4..2c15688 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -50,6 +50,8 @@ notify: !include notify.yaml sensor: !include_dir_merge_list sensors +fan: !include fan.yaml + media_player: - platform: samsungtv name: Adams TV diff --git a/fan.yaml b/fan.yaml new file mode 100644 index 0000000..152ce14 --- /dev/null +++ b/fan.yaml @@ -0,0 +1,10 @@ +- platform: mqtt + name: "Bedroom Fan" + command_topic: "bed/fan1/command" + state_topic: "bed/fan1/state" + speed_command_topic: "bed/fan1/state" + speed_state_topic: "bed/fan1/state" + retain: true + speeds: + - low + - high diff --git a/groups/default_view.yaml b/groups/default_view.yaml index 81f09ba..10023ab 100644 --- a/groups/default_view.yaml +++ b/groups/default_view.yaml @@ -4,3 +4,4 @@ entities: - sensor.temperature_1 - sensor.humidity_1 - light.dev + - fan.bedroom_fan