Hello,
my shutters are running via mqtt and protocol allows to send position 0-100.
Config of shutter:
- platform: mqtt
name: "Rolladen Wohnzimmer 1"
command_topic: "/hap/100/81/set"
state_topic: "/hap/100/81/status"
qos: 1
retain: true
payload_open: "0"
payload_close: "100"
payload_stop: "S0"
state_open: "0"
state_closed: "100"
optimistic: false
position_open: 0
position_closed: 100
value_template: '{{ value.x }}'
Via GUI symbols I can run it (arrow up/down), but now trying to use automation nothing happens.
Can I not simply send position value?
via MQTT I would usually only send 0 for open or 100 for fully closed as value… Maybe I have here a wrong understanding how HA handles it…
- alias: Sonnenuntergang Rolladen
id: sunsetshutter
mode: single
trigger:
- platform: sun
event: sunset
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
- service: cover.set_cover_position
entity_id: cover.rolladen_wohnzimmer_1
data_template:
position: 100
Error is only :[ homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing):