I have a swing gate opener with one input button. Pressing the button makes open, stop, close, stop in sequence. I added an MQTT switch to it. The cover device-class ads 3 buttons: open, close, stop. How can I avoid the stop button from the entity? My current code in cover.yaml:
- platform: mqtt
unique_id: gate-open
name: "Gate open"
command_topic: "/dingtian/relay4966/in/control"
state_topic: "/dingtian/relay4966/out/r5"
availability:
- topic: "/dingtian/relay4966/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_open: 'ON'
payload_close: 'ON'
state_open: "ON"
state_closed: "OFF"
device_class: gate