mqttfastledmenu/home-assistant/ha_configuration.yml

61 lines
1.5 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-10 13:32:51 +01:00
# TODO : idéee ! préfixé les functions d'un nombre qu'on sort lors du publish, cela permet de n'avoir que des id
2017-03-02 17:03:27 +01:00
input_select:
strip1_effect:
name: "Choix de l'effet"
options:
- "cylon"
- "full"
2017-03-10 11:22:03 +01:00
- "colorp"
- "colort"
- "fire"
- "error"
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"
2017-03-06 14:53:26 +01:00
name: "Test ESP"
command_topic: "strip1/switch"
state_topic: "strip1/status"
2017-03-07 19:45:24 +01:00
rgb_command_topic: "strip1/color/switch"
2017-03-09 21:04:03 +01:00
rgb_state_topic: "strip1/color/status"
2017-03-07 19:45:24 +01:00
brightness_command_topic: "strip1/brightness/switch"
brightness_state_topic: "strip1/brightness/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