danimtb / dasshio

Hass.io add-on to easily use Amazon Dash Buttons with Home Assistant
Apache License 2.0
194 stars 63 forks source link

Problem with config #112

Open padso4tw opened 1 year ago

padso4tw commented 1 year ago

Hi, im running the latest homeassistant version and getting this error after adding my "config". After pressing the Save button and starting the plugin it removes all "" from the config. Is this normal? grafik

2023-02-28 10:38:55,490 | INFO | Reading config file: /data/options.json 2023-02-28 10:38:55,497 | ERROR | Parameter error for button 1: No [domain] or [service] provided 2023-02-28 10:38:55,499 | INFO | Exiting...

bonkersbrains commented 1 year ago

I have the same problem - did you manage to fix it? (Same error).

manda-iow commented 1 year ago

I think you need to provide a value in service_data.

I can recreate this error by removing all data from that value.

Caveat: My set up isn't working mind you, but the service does start up and begin sniffing without error so I would start with that! 😄

bonkersbrains commented 1 year ago

Yes thank you! I now have it sniffing like you do, but nothing happens when you press the dash button - no entry appears in the logs. The button is on the wifi though as my router detects the connection.

bonkersbrains commented 1 year ago

Ok, I spoke too soon - its working :D

Thanks!

manda-iow commented 1 year ago

Ok, I spoke too soon - its working :D

Thanks!

Hey great news glad I was able to help! I am however having my own problems and was wondering if you could help me back? Do you use the Home Assistant Operating System (HASSIO) as provided by the Raspberry Pi Imager tool or have you set up the Pi separately then installed HA onto it? I've gone with the HASSIO option (v 10.5 on RPi3) but my sniffer never recognises the buttons even though they are configured and appear on the network when clicked? Everything is all up to date and working and the install is pretty clean so I'm wondering if you did anything else and what your set up is? Ta

bonkersbrains commented 1 year ago

I do use HASSIO via the imager tool. Mine is RPi4. I keep the OS and core fully up to date. My set up is pretty complex, loads of integrations - several of them are from HACS store. Maybe there is something in the network settings that is stopping the home assistant container from seeing the traffic on the network? My network adapter is set to auto configure. I don't use the Home Assistant Cloud.

manda-iow commented 1 year ago

Thank you very much for the update. I found another sd card and put a completely fresh hassio image on it, did all the system updates then loaded the add on and still nothing. At this stage I'm tempted to blame it on the older RPi3 but who knows. I also got a docker build up and running (and realised the error of me asking about this add on and docker, since the container version doesn't support add ons!). Now that I've got that far I'm going to try and use the previously mentioned python daemon code and hopefully get it talking to the containerised HA. Maybe someone will help again in the future or I'll learn enough to solve it myself...!