Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HomeAssistant Tuya integrations show Arlec GridConnect BLE devices as unavailable (OFFLINE) #8

Open
auphof opened this issue Feb 13, 2024 · 0 comments

Comments

@auphof
Copy link

auphof commented Feb 13, 2024

In Homeassistant with the Arlec Grid Connect Smart Home Sensor Kit (BLE PIR Motion detection and Window/Door Contact sensors) they are functionally registered to the Tuya(Smartlife App). The sensors are also registering in the homeassistant Tuya integration, but remain unavailable, with no state change or battery voltage indication. Enabling the debug logging show that the integration is receiving the reports from the sensors.

Debugging the Homeassistant integration show the device.online state stays False and there does not appear a mechanism for this to be set True.

Fixing the device.online (See PR being submitted) then the PIR Detect works in HomeAssistant but it fails to Clear. The msg data for for the PIR's comes in as CapWords and gets handled by the _on_device_report in manager.py as an enum by the strategy.convert(strategy_name, ....... which is expecting all lowercase words`
image

The PR being submitted presents a workaround, patching the enumMappingMap received from the api call at initialization. I am not familiar with all the Tuya devices but maybe a change to the enum stratergy handler tuya_sharing/strategy_repo/enum_.py should be made. I trust the Tuya/dev will know better where to make this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant