Added HA Speed Automation

This commit is contained in:
debsahu 2018-04-04 20:34:14 -04:00
parent 2a193ff445
commit d406112ecf

View file

@ -79,7 +79,7 @@ input_number:
automation: automation:
- id: 71938579813759813757 - id: 71938579813759813757
alias: NeoPixel Animation Speed alias: NeoPixel Animation Speed Send
initial_state: true initial_state: true
hide_entity: false hide_entity: false
trigger: trigger:
@ -91,3 +91,14 @@ automation:
retain: true retain: true
topic: home/McLighting01_ha/speed topic: home/McLighting01_ha/speed
service: mqtt.publish service: mqtt.publish
- id: 93786598732698756967
alias: NeoPixel Animation Speed Receive
trigger:
- platform: mqtt
topic: home/McLighting01_ha/state/out
action:
- data_template:
entity_id: input_number.neopixel_animation_speed
value: '{{ trigger.payload_json.speed | int }}'
service: input_number.set_value