Whelp, I think I’ve gotten as far as my skill set currently allows. I got all set up on an rpi 3 and a new button. I got one response from the old button and some inconsistent responses from the new button.
You don’t just keep pressing over and over and expecting a reaction do you? HA only picks up when the button joins the network so you need to wait for it to turn itself off again, about 10 seconds I believe.
The Hassio add-on works really well. I can however confirm the issue with “double presses”. Using a dash button for “toggle” (toggle the lights in the bedroom for example) doesn’t meet the WAF for now
2018-09-22 16:55:42,159 | INFO | Reading config file: /data/options.json
2018-09-22 16:55:42,160 | 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 did not have the issue you’re talking about, but I would first check that you have installed the latest version of Dasshio. Also, what version of Home Assistant are you running? There’s been major changes to authentications and Hass.io add-ons can no longer pass along the API password. Dasshio was updated to fix this.
This is obvious, but is your Home Assistant IP address really 192.168.1.1? That is normally your router’s IP address.
Also, maybe you can change your Dasshio configuration to avoid doing a HTTP request and avoid dealing with tokens. My Dasshio config is below if you need an example. I’m running Home Assistant 0.77.3 and Dasshio 0.31.
2018-09-23 12:10:04,171 | INFO | Reading config file: /data/options.json
2018-09-23 12:10:04,172 | 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
Could be, I don’t know how to check if it disconnects (I think my DHCP server releases it after some time). For sure the DASH buitton has WiFI coverage (is not far from router wifi).
EDIT I tried to enable the notification in Amazon app, and each time I press the Dash I receive Amazon notification (to continue configuration), so I think is connected