forked from bruhautomation/ESP-MQTT-JSON-Digital-LEDs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Example Home Assistant Configuration.yaml
58 lines (55 loc) · 1.16 KB
/
Example Home Assistant Configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
mqtt:
broker: your.mqtt.ip.address
port: 1883
client_id: home-assistant-1
username: YOURUSERNAME
password: YOURPASSWORD
light:
- platform: mqtt_json
name: "Porch Strip"
state_topic: "bruh/porch"
command_topic: "bruh/porch/set"
effect: true
effect_list:
- bpm
- candy cane
- confetti
- cyclon rainbow
- dots
- fire
- glitter
- juggle
- lightning
- noise
- police all
- police one
- rainbow
- rainbow with glitter
- ripple
- sinelon
- solid
- twinkle
brightness: true
flash: true
rgb: true
optimistic: false
qos: 0
input_slider:
porch_animation_speed:
name: Porch Animation Speed
initial: 150
min: 1
max: 150
step: 10
automation:
- alias: "Porch Animation Speed"
initial_state: True
hide_entity: False
trigger:
- platform: state
entity_id: input_slider.porch_animation_speed
action:
- service: mqtt.publish
data_template:
topic: "bruh/porch/set"
payload: '{"transition":{{ trigger.to_state.state | int }}}'