Inital Commit
This commit is contained in:
24
packages/blind_control.yaml
Normal file
24
packages/blind_control.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
mqtt:
|
||||
switch:
|
||||
- unique_id: lounge_blinds_control
|
||||
name: "Lounge Blinds Control"
|
||||
state_topic: "viewroad-status/blinds/lounge-verticalblinds"
|
||||
command_topic: "viewroad-commands/blinds/lounge-verticalblinds"
|
||||
payload_off: "off"
|
||||
payload_on: "on"
|
||||
state_on: "on"
|
||||
state_off: "off"
|
||||
icon: mdi:blinds
|
||||
retain: false
|
||||
|
||||
automation:
|
||||
- id: lounge_blinds_control_switch
|
||||
alias: Publish lounge blind control to mqtt
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.lounge_blinds
|
||||
action:
|
||||
service: mqtt.publish
|
||||
data_template:
|
||||
payload: "{{trigger.to_state.state}}"
|
||||
topic: viewroad-status/blinds/lounge-verticalblinds
|
Reference in New Issue
Block a user