Files
zorruno-homeassistant/packages/blind_control.yaml
2022-10-11 15:40:40 +13:00

25 lines
707 B
YAML

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