I am building my own cover controller using a NodeMCU board and MQTT. I configured by cover exactly like the documentation:
# Zonnescherm
cover:
- platform: mqtt
name: "MQTT Cover"
command_topic: "home-assistant/zonnescherm/set"
position_topic: "home-assistant/zonnescherm/position"
availability_topic: "home-assistant/zonnescherm/availability"
set_position_topic: "home-assistant/zonnescherm/set_position"
qos: 0
retain: true
payload_open: "OPEN"
payload_close: "CLOSE"
payload_stop: "STOP"
position_open: 100
position_closed: 0
payload_available: "online"
payload_not_available: "offline"
optimistic: false
value_template: '{{ value.x }}'
Now when my device connects to mqtt, it sends “online” to the availability topic and 0 to the position_topic. But when I check my control in Home Assistant, I only have the open, stop and close buttons. I would like the slider as well, to be able to set it half way.
What am I missing here?