Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95468

Snmpwalk command in binary.senser presence Not working. Help (UBuntu/Docker/HASSIO 0.102.1)

$
0
0

@shutty wrote:

HASSIO 0.102.1 running in docker on Ubuntu (new setup)
I am trying to parse my wireless controller mac table to see if my phone is connected, the snmpwalk command below works fine from the ubuntu command prompt.
Cant get this to work, tried various different syntax etc
in the debug logs it just shows the the command is run , but unlike a ping binary sensor i have used as a comparison i see no results for it to check.
Any Guidance please. Is the snmpwalk command available to hassio natively ? not seeing any error in logs when running the command.

configuration.yaml

binary_sensor:      
  - platform: command_line
    name: Steve_Phone_Presence
    command: 'snmpwalk -v 2c -On -n vlan-0 -c public 192.168.0.5 1.3.6.1.4.1.14179.2.1.4.1.4 | awk ''/240.152.157.219.8.39/ { print $1 }'' | wc -l'
    device_class: Presence
    payload_on: 1
    payload_off: 0
    scan_interval: 30

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>