1
0
mirror of https://github.com/Adam-Ant/home-assistant synced 2024-12-20 12:54:35 +00:00

Add MQTT fan

This commit is contained in:
Adam Dodman 2017-05-19 18:17:31 +01:00
parent 97854f4a3c
commit 5f73deb57d
3 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,8 @@ notify: !include notify.yaml
sensor: !include_dir_merge_list sensors sensor: !include_dir_merge_list sensors
fan: !include fan.yaml
media_player: media_player:
- platform: samsungtv - platform: samsungtv
name: Adams TV name: Adams TV

10
fan.yaml Normal file
View File

@ -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

View File

@ -4,3 +4,4 @@ entities:
- sensor.temperature_1 - sensor.temperature_1
- sensor.humidity_1 - sensor.humidity_1
- light.dev - light.dev
- fan.bedroom_fan