mqttfastledmenu/home-assistant/ha_configuration.yml

69 lines
1.6 KiB
YAML
Raw Normal View History

2017-03-06 10:43:05 +01:00
mqtt:
broker: "XXX"
port: 1883
client_id: "homeassistant1"
username: "XXX"
password: "XXX"
2017-03-02 17:03:27 +01:00
input_slider:
strip1_animation_speed:
name: "Strip1 Animation Speed"
initial: 120
2017-03-09 21:04:03 +01:00
min: 0
2017-03-06 14:53:26 +01:00
max: 150
step: 10
2017-03-02 17:03:27 +01:00
light:
- platform: "mqtt"
name: "strip1"
retain: true
effect: true
effect_list:
- "cylon"
- "colorp"
- "colort"
- "fire"
- "firep"
- "full"
- "error"
command_topic: "strip1/switch"
state_topic: "strip1/status"
rgb_command_topic: "strip1/color/switch"
rgb_state_topic: "strip1/color/status"
brightness_command_topic: "strip1/brightness/switch"
brightness_state_topic: "strip1/brightness/status"
effect_command_topic: "strip1/effect/switch"
effect_state_topic: "strip1/effect/status"
2017-03-02 17:03:27 +01:00
automation:
- alias: "Strip1 Effect"
2017-03-06 14:53:26 +01:00
hide_entity: True
2017-03-02 17:03:27 +01:00
trigger:
2017-03-06 14:53:26 +01:00
- platform: "state"
entity_id: "input_select.strip1_effect"
2017-03-02 17:03:27 +01:00
action:
- service: "mqtt.publish"
2017-03-02 17:03:27 +01:00
data_template:
2017-03-06 14:53:26 +01:00
topic: "strip1/effect/switch"
2017-03-02 17:03:27 +01:00
payload: '{{ trigger.to_state.state | string }}'
2017-03-06 14:53:26 +01:00
retain: True
2017-03-02 17:03:27 +01:00
- alias: "Strip1 Animation Speed"
2017-03-06 14:53:26 +01:00
hide_entity: True
2017-03-02 17:03:27 +01:00
trigger:
2017-03-06 14:53:26 +01:00
- platform: "state"
entity_id: "input_slider.strip1_animation_speed"
2017-03-02 17:03:27 +01:00
action:
- service: "mqtt.publish"
2017-03-02 17:03:27 +01:00
data_template:
2017-03-06 14:53:26 +01:00
topic: "strip1/speed/switch"
2017-03-02 17:03:27 +01:00
payload: '{{ trigger.to_state.state | int }}'
2017-03-06 14:53:26 +01:00
retain: True
2017-04-03 11:27:31 +02:00
group:
Strip1:
view: "yes"
entities:
- device_tracker.nodemcu1
2017-04-03 11:27:31 +02:00
- light.test_esp
- input_slider.strip1_animation_speed