Anyway to get this working with Hassbian?
This is a hassio-addon. You could try to get the python script from the Dasshio repo an try running it in hassbianâŚ
Hi all. I am using this add-on and it working great. However sometimes the add-on stops and I get the following error. Any ideas?
File âdasshio.pyâ, line 147, in
filter=âarp or (udp and src port 68 and dst port 67 and src host 0.0.0.0)â, store=0, count=0)
File â/usr/lib/python3.6/site-packages/scapy/sendrecv.pyâ, line 617, in sniff
s.close()
File â/usr/lib/python3.6/site-packages/scapy/arch/linux.pyâ, line 499, in close
set_promisc(self.ins, i, 0)
File â/usr/lib/python3.6/site-packages/scapy/arch/linux.pyâ, line 151, in set_promisc
mreq = struct.pack(âIHH8sâ, get_if_index(iff), PACKET_MR_PROMISC, 0, b"")
File â/usr/lib/python3.6/site-packages/scapy/arch/linux.pyâ, line 294, in get_if_index
return int(struct.unpack(âIâ,get_if(iff, SIOCGIFINDEX)[16:20])[0])
File â/usr/lib/python3.6/site-packages/scapy/arch/linux.pyâ, line 288, in get_if
ifreq = ioctl(s, cmd, struct.pack(â16s16xâ,bytes(iff,âutf-8â)))
OSError: [Errno 19] No such device
Yes, we are aware of that and trying to get a fix for it. Have a look here https://github.com/danimtb/dasshio/issues/21
Daniel, mine has not stopped since the upgrade. May just not be long enough yet, thanks for the timeout⌠8 seconds is working well!
Thank you for the feedback! Please report in GitHub for any issue related
I recently started fresh with hassio and installed dasshio again. Before I started fresh I had dasshio working with hassio.
this is the log:
Traceback (most recent call last): File "dasshio.py", line 7, in <module> from scapy.all import sniff ModuleNotFoundError: No module named 'scapy'
dasshio does not start when I reboot hassio, even though start on boot
is enabled. I have to manually start the add-on.
this is my config in the dasshio add-on:
{
âtimeoutâ: 20,
âbuttonsâ: [
{
ânameâ: âtestâ,
âaddressâ: âfc:55:ae:ch:f3:9aâ,
âdomainâ: âlightâ,
âserviceâ: âtoggleâ,
âservice_dataâ: â{"entity_id": "light.bedroom"}â
}
]
}
The dash button is connecting to my wifi, but dasshio isnât working.
I apologize, I am pretty new to this and I am fumbling through a lot of it. I know my issue setting this up but I do not understand how to correct it. I am trying to get the lamp to toggle with dash but I do not have Home Assistant API set up properly so this command does nothing.
2018-06-17 23:26:47,624 | INFO | dash1 button pressed!
2018-06-17 23:26:47,625 | INFO | Request: http://hassio/homeassistant/api/services/lamp/toggle
I have read https://developers.home-assistant.io/docs/en/hassio_addon_communication.html and the REST API page over and over but I do not understand how to actually set it up. I have spent the last few days googling but I cannot find instructions that make sense to me. Please help me.
Have you tried with the example in the readme? https://github.com/danimtb/dasshio#options-example-domain-service-service_data
It should be very straightforward to set your config up. Your request URL seems good though
Yes I used that and that part is working but its this that is causing me issuesâŚ
Note: Dasshio uses http://hassio/homeassistant/api/services/{domain}/{service} as the base url to route requests over the Hassio local network between the containers. This is the prefered method as it means the requests donât have to leave the machine Hassio is running on (See Hass.io Addon Communication).
You havenât actually followed the template in the docs, youâve left characters out and ignored the spacing. Using your example it should look like thisâŚ
{
"timeout": 20,
"buttons": [
{
"name": "test",
"address": "c:55:ae:ch:f3:9a",
"domain": "light",
"service": "toggle",
"service_data": "{\"entity_id\": \"light.bedroom\"}"
}]
}
Did the log really say âhttp://hassio/homeassistant/api/services/lamp/toggleâ ?
@danimtb, the domain should be âlightâ should it not?
The Dasshio part I have working, I donât need help with that part. My issue is when this request is sent out
http://hassio/homeassistant/api/services/light/toggle
nothing happens because I donât know how to set up the Hassio Addon Communication. Maybe this is more of a how do I set up REST API or the Hassio Addon Communication?
On the contrary, your config is wrong and not working.
There is no more to setting it up than that and, as confirmed by the best source for info ie the guy who created it, you need to do it as I showed you. I even made it cut and paste for you.
I think you are over thinking it.
In the hassio add on type exactly what @Bobby_Nobble wrote in his post above into the config box. Save it and start the add-on thatâs it.
If thereâs a problem you will see in the logs from the add-on.
Because itâs Json you have to fill the template exactly as shown
If you have tried the example from the github page it proves the issue is your config.
I think the way the add on works is it converts the json formatted config into the http string you are talking about. Thatâs why you donât need to worry about that only that the config you have typed is correctly formatted and refers to the correct domain as others have already said
Ive been using Dasshio for some time now and love it!
Following an HA meltdown which required a rebuild two days ago I couldnât get Dasshio to start and I assumed it was a problem with my rebuild or snapshot, or somethingâŚ
But the new HassOS came out yesterday so I completely rebuilt again and still dasshio will not install so as it is a fresh build right down to the OS I am guessing it might actually be something to do with t he add-on. Can you please offer any suggestions?
Iâd be very grateful as I really want this add-on back as it is brilliant. And my wife loves it
Showing it installed and supposedly started
But it is not started on the Dashboard
And the log is empty (after pressing REFRESH)
For completenessâŚ
Have just installed a fresh hass.io with hassOS. Will try to fix dasshio before the end of this week. thanks for reporting and glad you like it!
Ah, so it is not just me.
Thatâs a relief!!
Thanks for responding and thanks in advance for fixing it - from my wife too!!
Thereâs probably going to be a lot of this, Iâm giving it a while until I see reports of everything I rely on is working.
Yes but I think in this case it is something with the add-on as it failed to load with a rebuild two days ago on HA on ResinOS.
But yes, I suspect there will be a few things âbrokenâ.
So far I havenât had anything else yet though