If you preassign an IP to the button it’ll connect to the router quicker. Dasshio works by sensing the button joining the network so quicker connection, quicker response.
Once you have the mac address you don’t need to ‘see’ it on the router to do anything else.
updated to Dasshio 3.0, but still getting the same traceback
2018-07-19 19:55:18,155 | INFO | Reading config file: /data/options.json
2018-07-19 19:55:18,156 | INFO | Starting sniffing…
Traceback (most recent call last):
File “/dasshio.py”, line 27, in arp_display
mac = pkt[ARP].hwsrc.lower()
File “/usr/lib/python3.6/site-packages/scapy/packet.py”, line 966, in getitem
raise IndexError(“Layer [%s] not found” % lname)
IndexError: Layer [ARP] not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/dasshio.py”, line 149, in
count=0)
File “/usr/lib/python3.6/site-packages/scapy/sendrecv.py”, line 783, in sniff
if stop_filter and stop_filter§:
File “/dasshio.py”, line 29, in arp_display
mac = pkt[Ether].src.lower()
File “/usr/lib/python3.6/site-packages/scapy/packet.py”, line 966, in getitem
raise IndexError(“Layer [%s] not found” % lname)
IndexError: Layer [Ether] not found
I can confirm now, that its working on resinOS. As described on github, i uninstalled the addon, restarted HA and installed it again. Its working now.
Thank you @danimtb
Hi, I updated Dasshio to 3.0 to fix the recent problem people were having, and it was working great again yesterday afternoon, but then stopped working that evening. I don’t remember changing the config or rebooting Home Assistant, so I’m not sure what the issue is. The Dasshio logs show the script detects the button press, but then sends a status code 401 (bad request). Has anyone else run into this issue?
Here is what I’m running:
Dasshio 3.0
Home Assistant 0.74
Hassio (ResinOS, not HassOS)
Hassio Supervisor 118