Hey,
I tried to use a shellsensor to connect with ssh to another host and read some data. My pub key is configured and the command is working in shell:
pi@raspberrypi:~ $ ssh root@192.168.38.102 cat /sys/class/i2c-adapter/i2c-1/1-0010/ambient
353
pi@raspberrypi:~ $
When trying this in pimatic shell sensor it does not work:
error [pimatic-shell-execute,ShellSensor]: Error getting attribute value Umgebungslicht_Squeezebox_unten.Licht: undefined
error [pimatic-shell-execute]: [ShellSensor#Umgebungslicht_Squeezebox_unten] Error: Command failed: /bin/bash -c ssh root@192.168.38.102 cat /sys/class/i2c-adapter/i2c-1/1-0010/ambient
Host key verification failed.
Here the device:
{
"attributeName": "Licht",
"attributeType": "number",
"command": "ssh root@192.168.38.102 cat /sys/class/i2c-adapter/i2c-1/1-0010/ambient",
"interval": 60000,
"id": "Umgebungslicht_Squeezebox_unten",
"name": "Umgebungslicht Squeezebox unten",
"class": "ShellSensor"
}
Is that a general problem of key authentification when using shell-plugin?