Mi Flora -> Remote trigger plantgateway via command line switch


I was hoping someone could help.

I have plantgateway running on a couple of RPI’s. The update is set to very low to save batteries on the miflora sensors.

sometimes however, I would like to trigger the update / force the update of the MQTT pub…

Is there any way a command line switch can be configured to trigger the comman “plantagateway” from my primary Hassio?

I have tried this, but it does not seem to work…

  - platform: command_line
        command_on: !secret rpi31_plantgateway
        friendly_name: RPI31 Plantgateway

and the corresponding secrets…

rpi31_plantgateway: "sshpass -p 'SuperSecretPassword' ssh [email protected] 'plantgateway'"

I also have installed sshpass on the RPI to try and get it working

sudo apt-get install sshpass

but cant seem to get it work… any ideas?

Many thanks…

why don’t you use esphome mi flora extention ? what is different ?

I don’t have esphome… I have Miflora sensor --> Pi Zero (with Plantgateway running) --> Hassio…