azerty9971 / xtend_tuya

eXtend Tuya's integration
GNU General Public License v3.0
63 stars 7 forks source link

G30 Door Lock missing entities in HA #142

Open jackmanou opened 3 weeks ago

jackmanou commented 3 weeks ago

Hi,

I have downloaded the Xtend Tuya from HACS, but have failed to install the integration getting the below error:

" Config flow could not be loaded: {"message":"Invalid handler specified"} "

Even though all 3 devices are added through Xtend Tuya (lock, keypad, and bridge) their entities are not present. I am using HA through a new device from LinknLink the iSG. My HA core version is 2024.3.3, if this is helpful. Any ideas, if we can sort this out please, or what am I doing wrong?

Thanks a lot! Antonis

azerty9971 commented 3 weeks ago

Hello, Can you post your system logs ? ("Settings" -> "System" -> "Logs").

Thanks in advance, Azerty

jackmanou commented 3 weeks ago

Hello,

Thanks for the reply. I believe this is what you want (I am a newbie, of course, so I hope this is correct). I found two errors, here is one:

Logger: homeassistant.loader Source: loader.py:1025 First occurred: 13:57:27 (1 occurrences) Last logged: 13:57:27

Unexpected exception importing platform custom_components.xtend_tuya.config_flow Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/homeassistant/loader.py", line 1025, in _load_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/homeassistant/loader.py", line 1058, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1126, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/data/data/com.termux/files/home/.homeassistant/custom_components/xtend_tuya/init.py", line 16, in from .multi_manager.multi_manager import ( File "/data/data/com.termux/files/home/.homeassistant/custom_components/xtend_tuya/multi_manager/multi_manager.py", line 31, in from .shared.shared_classes import ( File "/data/data/com.termux/files/home/.homeassistant/custom_components/xtend_tuya/multi_manager/shared/shared_classes.py", line 49 type XTConfigEntry = ConfigEntry[HomeAssistantXTData] ^^^^^^^^^^^^^ SyntaxError: invalid syntax

and the second error:

Logger: homeassistant.config_entries Source: config_entries.py:2444 First occurred: 13:57:27 (1 occurrences) Last logged: 13:57:27

Error occurred loading flow for integration xtend_tuya: Exception importing custom_components.xtend_tuya.config_flow

azerty9971 commented 1 week ago

Hello, I just figured out what is happening, you are using the version 3.11 of Python.

Home Assistant requires the version 3.12, that's why you are seeing this error message...

What type of installation have you done?

Have a nice day, Azerty

jackmanou commented 1 week ago

Crap..

I am using Home Assistant through a device from LinknLink called iSG, which has a built-in Home Assistant through an APK file. (I need to check about the Python version and revert) When I had this issue, I was running Home Assistant version 2024.03. Now, we have been upgraded to 2024.11, and we are supposed to be upgrading monthly like everyone else. After the upgrade, I managed to find the missing entities (lock/unlock and I think all the sensors), however, the only problem remaining is the the unlock function through HA is not working.

I can change the auto-lock timer or lock the door when I press the button on HA, however when I click on the unlock button nothing is happening.

azerty9971 commented 1 week ago

no need to downgrade if it now works in 2024.11 ;)

For your lock issue, have you done the following steps: https://github.com/azerty9971/xtend_tuya/blob/main/docs/configure_locks.md

Have a nice day, Azerty

jackmanou commented 1 week ago

I did NOT know that !!

Thanks a lot!

Subscribed and will test this afternoon, appreciate the help

Best, Antonis

jackmanou commented 1 day ago

Sorry to come back again, but I did the steps as per the above link and subscribed to the service but with no luck.. Btw I am running version 3.12.3 of Python.

My next steps will be to delete my tuya developer account and try setting everything up from the beginning. Do you have any other ideas/tips as to why this is not working? My only problem here is the unlock function.

Thanks a lot in advance!

Best, Antonis