Buttons disappeared
Closed this issue · 4 comments
Hi, after the first try all four flic buttons where added and also got the automations to work.
I tried a new Project with mini media player and some scripts for radiostations and also added spotify playlists. I also had to make changes on my configuration.yaml for that. After this other project the flic buttons stoped working and were not be detected from HA. I don't know if this have to do something with this issue. In the Flic App the buttons are still available. I tried to reinstall the flic hub, but now I only see one deviece (only the hub). I also tried to restard the tcpserver in the sdk. If I press configuration on the flic hub integration I'll get this error: 500 Internal Server Error Server got itself in trouble
Is there anything else which I can check to get the buttons back to home assistant?
Thanks in advanced.
Weirdly enough, I have the same issue. The flic button were unavailable for several days, I checked on the SDK page and the code seems fine there, as far as I can tell :
![Capture d’écran 2024-04-29 à 20 33 22](https://private-user-images.githubusercontent.com/2078386/326548018-cef1ff02-5d4e-48d2-b20b-8e51699a85a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwMjkzMTUsIm5iZiI6MTcyNTAyOTAxNSwicGF0aCI6Ii8yMDc4Mzg2LzMyNjU0ODAxOC1jZWYxZmYwMi01ZDRlLTQ4ZDItYjIwYi04ZTUxNjk5YTg1YTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MzBUMTQ0MzM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmIxZWRjNmRmZDA5M2QyNWE3MWI5MjUyNzhjYTNkNGEwODQ0NzM5ZTBjNDBhOTQzNTgyMDNkYzMxNGU1YThmYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.-nysStkxkowuAL5krvpBsaJmyd5zjDytukX3O5DqIx8)
As @AndyIX89, I can't configure the integration and I have the same 500 error message. In the logs, I noticed this error repeated over and over :
homeassistant | 2024-04-29 20:50:28.195 WARNING (MainThread) [pyflichub.client] FlicButton.__init__() got an unexpected keyword argument 'boot_id'
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/local/lib/python3.12/site-packages/pyflichub/client.py", line 152, in data_received
homeassistant | self._handle_command(Command(**msg))
homeassistant | File "/usr/local/lib/python3.12/site-packages/pyflichub/client.py", line 167, in _handle_command
homeassistant | self.buttons = [FlicButton(**button) for button in humps.decamelize(cmd.data)]
homeassistant | ^^^^^^^^^^^^^^^^^^^^
homeassistant | TypeError: FlicButton.__init__() got an unexpected keyword argument 'boot_id'
homeassistant | 2024-04-29 20:50:28.197 WARNING (MainThread) [pyflichub.client] Unable to decode received data
Let me know if you need more informations.
I'm having the same problem
2024-05-07 15:58:38.304 WARNING (MainThread) [pyflichub.client] FlicButton.init() got an unexpected keyword argument 'boot_id'
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pyflichub/client.py", line 152, in data_received
self._handle_command(Command(**msg))
File "/usr/local/lib/python3.12/site-packages/pyflichub/client.py", line 167, in _handle_command
self.buttons = [FlicButton(**button) for button in humps.decamelize(cmd.data)]
^^^^^^^^^^^^^^^^^^^^
TypeError: FlicButton.init() got an unexpected keyword argument 'boot_id'
2024-05-07 15:58:38.306 WARNING (MainThread) [pyflichub.client] Unable to decode received data
2024-05-07 15:58:44.348 WARNING (MainThread) [pyflichub.client] Waited for 'buttons' data for 10.0 secs.
2024-05-07 15:58:48.297 WARNING (MainThread) [pyflichub.client] Waited for 'buttons' data for 10.0 secs.
2024-05-07 15:58:53.359 WARNING (MainThread) [pyflichub.client] 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pyflichub/client.py", line 150, in data_received
self._handle_event(Event(**msg))
File "/usr/local/lib/python3.12/site-packages/pyflichub/client.py", line 183, in _handle_event
_LOGGER.debug(f"Button {button.name} was {event.action}")
^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
2024-05-07 15:58:53.361 WARNING (MainThread) [pyflichub.client] Unable to decode received data
2024-05-07 15:58:53.588 WARNING (MainThread) [pyflichub.client] 'NoneType' object has no attribute 'name'
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pyflichub/client.py", line 150, in data_received
self._handle_event(Event(**msg))
File "/usr/local/lib/python3.12/site-packages/pyflichub/client.py", line 183, in _handle_event
_LOGGER.debug(f"Button {button.name} was {event.action}")
^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
2024-05-07 15:58:53.590 WARNING (MainThread) [pyflichub.client] Unable to decode received data
Sorry for the delay. An update should be available in just a few minutes.
Thanks for the update, but it did not fix the problem for me. Should I delete the integration and start over or do something else ?