Hello,
I am not sure what I am doing wrong but something is wrong. I had a running Home Assistant 0.49.1 configuration where I make a communication with an SPS and via libnodave through the
command line binary_sensor.
- platform: command_line
scan_interval: 5
command: '../../home/pi/sps/read_sps_bin -w=00 10.0.0.100 | grep "DB5.10_Bit_0 " | grep "= 1" |wc -l'
name: 'Licht_Haus'
device_class: light
payload_on: 1
payload_off: 0
Now I updated to version 0.78.3 and I am too stupid to get the old config running again.
Maybe somebody can help me what I am doing wrong. Please be aware that I am far away to understand what is running all behind your great home Assist project
By the end of the day I tried with all the default configurations a ping command, even this I was not able to run. In an terminal session the command is working well but not in the Homeassistatn script.
binary_sensor:
- platform: command_line
command_timeout: 10
command: 'bash /home/homeassistant/.homeassistant/ping_cmd.sh'
name: 'SPS_active'
device_class: connectivity
payload_on: ON
payload_off: OFF
ping_cmd.sh
ping -W 1 -c 10.0.0.100 | grep “0%” > nul && (echo “ON”) || (echo “OFF”)
If somebody can help I will be very luck
Thanks,
Bernhard