57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
mqtt:
|
|
broker: "XXX"
|
|
port: 1883
|
|
client_id: "homeassistant1"
|
|
username: "XXX"
|
|
password: "XXX"
|
|
|
|
input_select:
|
|
strip1_effect:
|
|
name: "Choix de l'effet"
|
|
options:
|
|
- "cylon"
|
|
- "full"
|
|
- "error"
|
|
|
|
input_slider:
|
|
strip1_animation_speed:
|
|
name: "Strip1 Animation Speed"
|
|
initial: 120
|
|
min: 10
|
|
max: 150
|
|
step: 10
|
|
|
|
light:
|
|
platform: "mqtt"
|
|
name: "Test ESP"
|
|
command_topic: "strip1/switch"
|
|
state_topic: "strip1/status"
|
|
rgb_state_topic: "strip1/color/switch"
|
|
rgb_command_topic: "strip1/color/status"
|
|
brightness_state_topic: "strip1/brightness/switch"
|
|
brightness_command_topic: "strip1/brightness/status"
|
|
|
|
automation:
|
|
- alias: "Strip1 Effect"
|
|
hide_entity: True
|
|
trigger:
|
|
- platform: "state"
|
|
entity_id: "input_select.strip1_effect"
|
|
action:
|
|
- service: "mqtt.publish"
|
|
data_template:
|
|
topic: "strip1/effect/switch"
|
|
payload: '{{ trigger.to_state.state | string }}'
|
|
retain: True
|
|
- alias: "Strip1 Animation Speed"
|
|
hide_entity: True
|
|
trigger:
|
|
- platform: "state"
|
|
entity_id: "input_slider.strip1_animation_speed"
|
|
action:
|
|
- service: "mqtt.publish"
|
|
data_template:
|
|
topic: "strip1/speed/switch"
|
|
payload: '{{ trigger.to_state.state | int }}'
|
|
retain: True
|