when in the configuration.yam
l file they work correctly
binary_sensor:
- platform: ping
name: JiPhone7
host: 192.168.0.79
count: 2
scan_interval: 300
- platform: ping
name: CiPhone7
host: 192.168.0.80
count: 2
scan_interval: 300
when moved to the sensors.yaml file “as is” I get an error on the first line with the
- platform: ping
when I run “check config
”.
When I remove the leading two spaces from the first entry and check the config it tells me there’s an error on the line of the second
- platform: ping
.
When I remove the two spaces from the second device and the code looks like this
- platform: ping
name: JackiesiPhone7
host: 192.168.0.79
count: 2
scan_interval: 300
- platform: ping
name: CatherisiPhone7
host: 192.168.0.80
count: 2
scan_interval: 300
When I run “check config” I get the error
“Platform not found: sensor.ping”
“Platform not found: sensor.ping” .
I did a reboot to reload to try it and I have this in my error log
2018-09-01 21:58:04 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.ping
2018-09-01 21:58:04 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.ping
Can ping not go in an !include
file?