Skip to content

Dasshio script failing when pressing Dash button - IndexError: Layer [ARP] not found #44

@theastropath

Description

@theastropath

I set up Dasshio version 0.3.0 in Hass.io supervisor version 121 on an Ubuntu 16.04 host. When I configure a button and then press it, I get the results below:

2018-07-31 18:52:35,229 | INFO | Reading config file: /data/options.json
2018-07-31 18:52:35,230 | 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 <module>
    count=0)
  File "/usr/lib/python3.6/site-packages/scapy/sendrecv.py", line 783, in sniff
    if stop_filter and stop_filter(p):
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions