Dasshio - Amazon Dash Buttons Hass.io add-on

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.

1 Like

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

So can anyone confirm that its working now on resinOS?

As per my earlier post, I can confirm it didn’t for me. Not fancying a taste of the future?

I can confirm that mine works on the following. Did I mention my wife is very happy?

HA - v0.73.2

Is that on resinOS?

HassOS 1.7

We’re looking for any success with resinOS for those that haven’t made the leap of faith.

Ah, ok. Sorry.

Some people are reporting it is working fine in resinOS too: https://github.com/danimtb/dasshio/issues/40#issuecomment-406314930

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

1 Like

Wasn’t meant to sound like I was having a go, sorry :slight_smile:

1 Like

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

Dasshio Config

{
  "timeout": 2,
  "buttons": [
    {
      "name": "Blank",
      "address": "44:65:0D:26:5F:65",
      "domain": "light",
      "service": "turn_off",
      "service_data": "{\"entity_id\": \"group.all_lights\"}"
    }
  ]
}

Log

2018-07-24 08:09:08,476 | INFO | Reading config file: /data/options.json
2018-07-24 08:09:08,481 | INFO | Starting sniffing…
2018-07-24 08:09:15,232 | INFO | Blank button pressed!
2018-07-24 08:09:15,235 | INFO | Request: http://hassio/homeassistant/api/services/light/turn_off
2018-07-24 08:09:15,310 | INFO | Status Code: 401
2018-07-24 08:09:15,311 | ERROR | Bad request
2018-07-24 08:09:15,351 | INFO | Packet captured, waiting 2s …
2018-07-24 08:09:17,354 | INFO | Starting sniffing…

I just ran into this same issue this morning.

I’m running:
Dasshio 3.0
Home Assistant 0.74
Hassio (HassOS 1.7)
Hassio Supervisor 118

Same here, same versions, same error!

Unsurprisingly, me too.

Seems this issue comes after updating to Home Assistant 0.74:

https://github.com/danimtb/dasshio/issues/42#issuecomment-407471333

1 Like

Seems to be an issue with quite a few other add-ons too!

Same for me as well.

I have just seen the announcement here: https://twitter.com/pvizeli/status/1021854007546073088?s=19

Anyway, thanks for the advice @Bobby_Nobble

1 Like