You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`
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
The text was updated successfully, but these errors were encountered:
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 staysFalse
and there does not appear a mechanism for this to be setTrue
.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
inmanager.py
as an enum by thestrategy.convert(strategy_name, .......
which is expecting all lowercase words`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 handlertuya_sharing/strategy_repo/enum_.py
should be made. I trust theTuya/dev
will know better where to make this changeThe text was updated successfully, but these errors were encountered: