jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

Configurazione non riuscita #149

Closed alfonsomainardi closed 1 year ago

alfonsomainardi commented 1 year ago

MI escono questi errori:

[546782238784] Error handling message: Unable to find service freeathome.dump (unknown_error) from 2.118.160.158 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36) 15:08:43 – (ERRORE) Home Assistant WebSocket API websocket_api script: Error executing script. Service not found for call_service at pos 1: Unable to find service freeathome.dump 15:08:43 – (ERRORE) helpers/script.py Error setting up entry 192.168.1.102 for freeathome 15:03:59 – (ERRORE) Busch Jaeger/ABB Free@Home (integrazione personalizzata) - il messaggio si è verificato per la prima volta alle 14:51:48 e compare 3 volte Connection with SysAP lost 15:03:47 – (AVVISO) Busch Jaeger/ABB Free@Home (integrazione personalizzata) Unexpected exception 15:03:47 – (ERRORE) Busch Jaeger/ABB Free@Home (integrazione personalizzata)

alfonsomainardi1989 commented 1 year ago

Logger: homeassistant.config_entries Source: custom_components/freeathome/fah/pfreeathome.py:712 Integration: Busch Jaeger/ABB Free@Home (documentation) First occurred: 19:07:07 (1 occurrences) Last logged: 19:07:07

Error setting up entry 192.168.1.102 for freeathome Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/freeathome/init.py", line 77, in async_setup_entry await sysap.find_devices() File "/config/custom_components/freeathome/fah/pfreeathome.py", line 897, in find_devices await self.xmpp.find_devices(self._use_room_names) File "/config/custom_components/freeathome/fah/pfreeathome.py", line 712, in find_devices filter_mask = int(option.get('mask'), 16) # e.g. '00000001' -> 0x00000001 AttributeError: 'NoneType' object has no attribute 'get'

alfonsomainardi1989 commented 1 year ago

helpme!

jheling commented 1 year ago

Hello, there seems to be something wrong with a pushbutton/switch in your system. Can you make a dump of your devices as described in the 'Dumping free@home configuration' in the debugging section of the homepage?

alfonsomainardi1989 commented 1 year ago

I tried it doesn't come out in the services help me understand thank you very much

alfonsomainardi1989 commented 1 year ago

Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:150 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 16:55:27 (8 occurrences) Last logged: 18:11:44

[546953511120] Error handling message: Unable to find service freeathome.dump (unknown_error) from 2.118.160.158 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36) [546951725744] Error handling message: Unable to find service freeathome.dump (unknown_error) from 2.118.160.174 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36)

alfonsomainardi1989 commented 1 year ago

2023-01-10 19:27:11.742 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration freeathome which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-10 19:27:36.891 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.102 for freeathome File "/config/custom_components/freeathome/init.py", line 77, in async_setup_entry File "/config/custom_components/freeathome/fah/pfreeathome.py", line 897, in find_devices File "/config/custom_components/freeathome/fah/pfreeathome.py", line 712, in find_devices 2023-01-10 19:27:50.585 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548019377712] Error handling message: Service freeathomedump.xml does not match format . for dictionary value @ data['sequence'][0]['service']. Got 'freeathomedump.xml' (invalid_format) from 192.168.1.105 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36) 2023-01-10 19:27:59.741 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548019377712] Error handling message: Service freeathomedump<192.168.1.102>.xml does not match format . for dictionary value @ data['sequence'][0]['service']. Got 'freeathomedump<192.168.1.102>.xml' (invalid_format) from 192.168.1.105 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36) 2023-01-10 19:28:04.485 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548019377712] Error handling message: Service freeathomedump<192.168.1.102>.xml does not match format . for dictionary value @ data['sequence'][0]['service']. Got 'freeathomedump<192.168.1.102>.xml' (invalid_format) from 192.168.1.105 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36)

jheling commented 1 year ago

ok, the error starts in the source fah/pfreeathome.py at line 712. Can you add a new line in this source so that the code around line 712 looks like this:

                    option = channel_selector_parameter.find("./valueEnum/option[@key='{}']".format(parameter_value))
                    # Get filter mask from mask attribute
                    if option is not None: 
                        filter_mask = int(option.get('mask'), 16) # e.g. '00000001' -> 0x00000001

to the original line 712 there are 4 spaces added.

alfonsomainardi1989 commented 1 year ago

thanks, can someone help me because I'm not so practical thanks to whoever will help me

alfonsomainardi1989 commented 1 year ago

mi restituisce questo errore

Errore Impossibile caricare il flusso di configurazione: {"message":"Invalid handler specified"}

alfonsomainardi1989 commented 1 year ago

I tried like you said it doesn't work! if you can help me, greetings.

jheling commented 1 year ago

Hello, i have edited your pull request. Can you try this new version?

alfonsomainardi1989 commented 1 year ago

ok

alfonsomainardi1989 commented 1 year ago

ho provato a sostituire ma nnt solito errore:

Errore Impossibile caricare il flusso di configurazione: {"message":"Invalid handler specified"}

jheling commented 1 year ago

Can you show the traceback of this error?

alfonsomainardi1989 commented 1 year ago

tt ok funziona! grazie mille

jheling commented 1 year ago

ok, good luck with your installation