Laxarus
Regular Contributor
it checks home and not_home to decide if it uses ethernet backhaul. In my case device_tracker.node1_lan_asuswrt is the MAC address when connected by ethernet.i had a quick look at your code for uour sensors, you check the state "home" or "not_home"
when my node was offline last week, it was still in "home" state...
If your node is offline, can you still ping it at that point?
If mine node is in offlline state , i can still ping it, i can even ping other lan devices connected to it, i can still SSH access to that speficic node
its just showing in Offline state on aimesh page, and all wifi devices are disconnected
YAML:
{% if states('input_text.node1_mac') in states('sensor.aimesh_devices') and is_state('device_tracker.node1_lan_asuswrt', 'home') %}
It looks for MAC address you entered in the SNMP sensor. If it exists, it checks again the device tracker for ethernet backhaul.
I am not completely sure what will be the result of the cfg_device_list. But if it is offline, it should not appear there so it should detect the case of being pingable but offline.
As for the OID, I really cannot help much, you can do a walk in the MIB browser and scan through the results to see the what you want and find the OID. Just make sure that snmp.conf.add is working.