split des fichiers de conf HA
This commit is contained in:
parent
fdc51427b3
commit
4a8e870e76
22
home-assistant/conf_automation.d/strip1.yaml
Normal file
22
home-assistant/conf_automation.d/strip1.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
- 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
|
||||
6
home-assistant/conf_group.d/strip1.yaml
Normal file
6
home-assistant/conf_group.d/strip1.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
Strip1:
|
||||
view: "yes"
|
||||
entities:
|
||||
- device_tracker.nodemcu1
|
||||
- light.strip1
|
||||
- input_slider.strip1_animation_speed
|
||||
6
home-assistant/conf_input_slider.d/strip1.yaml
Normal file
6
home-assistant/conf_input_slider.d/strip1.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
strip1_animation_speed:
|
||||
name: "Strip1 Animation Speed"
|
||||
initial: 120
|
||||
min: 1
|
||||
max: 150
|
||||
step: 8
|
||||
20
home-assistant/conf_light.d/strip1.yaml
Normal file
20
home-assistant/conf_light.d/strip1.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
- 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"
|
||||
11
home-assistant/configuration.yaml
Normal file
11
home-assistant/configuration.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
mqtt:
|
||||
broker: "XXX"
|
||||
port: 1883
|
||||
client_id: "homeassistant1"
|
||||
username: "XXX"
|
||||
password: "XXX"
|
||||
|
||||
input_slider: !include_dir_merge_named "conf_input_slider.d/"
|
||||
light: !include_dir_merge_list "conf_light.d/"
|
||||
automation: !include_dir_merge_list "conf_automation.d/"
|
||||
group: !include_dir_merge_named "conf_group.d/"
|
||||
@ -1,68 +0,0 @@
|
||||
mqtt:
|
||||
broker: "XXX"
|
||||
port: 1883
|
||||
client_id: "homeassistant1"
|
||||
username: "XXX"
|
||||
password: "XXX"
|
||||
|
||||
input_slider:
|
||||
strip1_animation_speed:
|
||||
name: "Strip1 Animation Speed"
|
||||
initial: 120
|
||||
min: 0
|
||||
max: 150
|
||||
step: 10
|
||||
|
||||
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"
|
||||
|
||||
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
|
||||
|
||||
group:
|
||||
Strip1:
|
||||
view: "yes"
|
||||
entities:
|
||||
- device_tracker.nodemcu1
|
||||
- light.test_esp
|
||||
- input_slider.strip1_animation_speed
|
||||
Loading…
x
Reference in New Issue
Block a user