Hi, i want to execute automations in HA with buttons on a ESP32 Display with Openhasp/MQTT. (power on / off / dock a vacuumcleaner) Vacuumcleaner is integrated in HA and is working as it should.
This is my automation.yaml :
- id: "1760820635416"
alias: Roomba starten
description: ""
triggers:
- topic: home/roomba/command
payload: start
trigger: mqtt
conditions: []
actions:
- target:
entity_id: vacuum.roomba_d_rex
action: vacuum.start
mode: single
- id: "1760821341461"
alias: Neue Automation
description: ""
triggers:
- topic: home/roomba/command
payload: stop
trigger: mqtt
actions:
- data:
entity_id: vacuum.roomba_d_rex
action: vacuum.stop
- id: "1760821511678"
alias: Roomba Dock
description: ""
triggers:
- topic: home/roomba/command
payload: dock
trigger: mqtt
actions:
- data:
entity_id: vacuum.roomba_d_rex
action: vacuum.return_to_base
and these are my 3 buttons on Openhasp :
{"page":3,"id":3,"obj":"btn","x":10,"y":70,"w":100,"h":60,"text":"START","text_font":2,"bg_color":"#00aa00","text_color":"#ffffff","toggle":true}
{"page":3,"id":4,"obj":"btn","x":120,"y":70,"w":100,"h":60,"text":"STOP","text_font":2,"bg_color":"#aa0000","text_color":"#ffffff","toggle":true}
{"page":3,"id":5,"obj":"btn","x":230,"y":70,"w":100,"h":60,"text":"DOCK","text_font":2,"bg_color":"#0066cc","text_color":"#ffffff","toggle":true}
Buttons are working but Vacuumcleaner does nothing.
In Mqtt Explorer i can see that the commands are beeing received when pushing the buttons, but how are they send to the Vacuumcleaner ? Theres something missing ?
It would be nice if someone could help me here . I’m new to all this…
Thank you