Hi,
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…
switch:
- platform: command_line
switches:
rpi31_plantgateway:
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…