Oligarch
(Oleksandr)
October 21, 2019, 4:26pm
1
I have 2 binary_sensors and device_trackers on ping platform. They show different states. Please help understand the problem.
configuration.yaml
device_tracker:
- platform: ping
scan_interval: 60
count: 3
consider_home: 300
hosts:
ping_galaxys7edge: !secret ip_PH-SamsungGalaxyS7edge-W
ping_xiaomimi8: !secret ip_PH-XiaomiMi8-W
binary_sensor:
- name: GalaxyS7edge
host: !secret ip_PH-SamsungGalaxyS7edge-W
platform: ping
count: 3
scan_interval: 60
- name: XiaomiMi8
host: !secret ip_PH-XiaomiMi8-W
platform: ping
count: 3
scan_interval: 60
known_devices:
ping_xiaomimi8:
hide_if_away: false
icon:
mac: !secret mac2
name: ping xiaomimi8
picture:
track: true
consider_home: 300
ping_galaxys7edge:
hide_if_away: false
icon:
mac: !secret mac1
name: ping_galaxys7edge
picture:
track: true
consider_home: 300
Oligarch
(Oleksandr)
October 22, 2019, 10:28am
2
How to see ping logs? Maybe I will see the difference between response from the binary_sensor and device_tracker…
Tekki
(Rolf Stöckli)
October 23, 2019, 6:34am
3
My Android phone (Motorola) doesn’t answer to ping (ICMP) requests. Maybe this is true for all of them.
Oligarch
(Oleksandr)
October 23, 2019, 12:07pm
4
My both phones answer to ping. binary_sensor works fine in 98%. I can’t understand what is the difference between b_sensor and d_tracker. Maybe someone can say where to look at the python code of these platforms?
Maybe the difference is that you have “consider_home” for the device tracker and not for the binary sensor.
Oligarch
(Oleksandr)
October 23, 2019, 1:41pm
6
For the third week I’ve been changing consider_home value. It doesn’t help … How can I add binary_sensor as a tracker for a person?
mcarty
(Arturo)
October 23, 2019, 1:49pm
7
Configuration --》 Persons
I set mine there (hassio 0.99)
Currently it’s not a default feature to have a binary sensor as a tracker for a person, but take a look at this feature request. I think there is a workaround in this thread.
I have quite a few Binary Sensors that I use to track mine and my wife’s status. I think it would be awesome if I could include those in the Persons Component as well.
1 Like
Oligarch
(Oleksandr)
October 23, 2019, 2:09pm
9
Thanks for advice. I am currently using this workaround. I thought there was an opportunity to do it without automation