Please consider opening an issue here Issues · danimtb/dasshio · GitHub explaining your problem, that way I can focus on it and it will keep this thread just for general information.
Thank you for creating this add-on for those of us stuck with Hassio! I got it working on HA 0.59.1 to play/pause Spotify using your detailed instructions.
After putting all my lights and switches in a power.group group, I think I’m having trouble because my frontend has a password… do you have to define this anywhere? The logs I get after pressing the button is below, but nothing happens in HASS? Thanks
2018-01-05 23:09:03,639 | INFO | Starting sniffing...
2018-01-05 23:09:21,930 | INFO | finish button pressed!
2018-01-05 23:09:21,931 | INFO | Request: http://hassio/homeassistant/api/services/group/turn_off
2018-01-05 23:09:32,028 | INFO | Status Code: 200
2018-01-05 23:09:32,029 | INFO | Successful request
2018-01-05 23:09:32,073 | INFO | Packet captured, waiting 20s ...
No need for the password if using the latest version and the code version you’ve used as the while point of the latest version was direct communication with HA.
Your code looks fine at first glance, have you checked the group actually works directly from the front end
I can get one single dash to work but when I add more than one button I get an error “Parameter error for button 2: [address] is not valid” I’m guessing maybe its somewhere in my formatting? Here’s the example on the Github page showing two buttons:
I’ve been playing with it all night and removed the middle button and now I’ve got two buttons working, only thing I can figure is the middle button is faulty? Or maybe something to do with the MAC needing to be assigned to a specific IP inside my router? The reason I was trying to have two buttons for the garage door was one for inside the house and one for inside my garage near the big door where there isn’t a button available right now. Maybe having two buttons trying to perform the same task was the problem too? Here’s what I was trying before I removed the middle one:
You can have as many buttons doing the same thing as you like, the press recognition and the action calling are separate things.
What does the dasshio log say? You should see it recognise the button and then call the action, if either is missing is a pointer to where the error lies. Can you see it connect on your router?
Does the ‘rogue’ button still work in the Amazon app?
This isn’t absolutely necessary but it makes the reaction to the button presses much quicker.
Dasshio log says “Parameter error for button 2: [address] is not valid”
When that middle button is included none of the buttons work, when I press any of the other buttons the same error comes up either way. I should note I was trying this ‘rogue’ button when I first got Dasher setup on my AIO and it wouldn’t execute what I had assigned to it there either, but I had forgotten about that when I went to migrate to Hass.io this week. I didn’t associate the error in Dasshio with that specific button until I decided to try removing it late last night then the other two buttons worked fine, I thought I was having an error due to my config being formatted wrong or something with multiple buttons.
Truthfully I have more buttons coming soon, I’m just going to assume this one button was bad in some way and see how the new buttons work when they arrive. Thanks again for replying though, hopefully it was just bad luck with that one button.
Ok, so the addon was stopping way to often, so I unistalled it after a rebuild and no improvement. I wanted to do a fresh install and now when I click the install button, it spins for about 2 seconds and turns red. The addon is not installed!
Hassio 0.62.1, Nothing logged on the console when it fails.
Supervisor logs do have errors:
18-02-11 04:19:50 INFO (SyncWorker_1) [hassio.docker.addon] Start build 03d23610/armhf-addon-dasshio:0.2.0
18-02-11 04:19:52 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
resp = yield from self._request_handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
return (yield from handler(request))
File "/usr/lib/python3.6/site-packages/hassio/api/security.py", line 34, in security_layer
return await handler(request)
File "/usr/lib/python3.6/site-packages/hassio/api/utils.py", line 33, in wrap_api
answer = await method(api, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/hassio/addons/addon.py", line 554, in install
if not await self.instance.install(self.last_version):
File "/usr/lib/python3.6/site-packages/hassio/docker/utils.py", line 18, in wrap_api
return await method(api, *args, **kwargs)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/hassio/docker/addon.py", line 259, in _install
return self._build(tag)
File "/usr/lib/python3.6/site-packages/hassio/docker/addon.py", line 274, in _build
image.tag(self.image, tag='latest')
AttributeError: 'tuple' object has no attribute 'tag'