[X] Does the device work using the Home Assistant Tuya Cloud component?
[X] Is this device connected to another local integration, including Home Assistant and any other tools?
[X] The devices are within the same HA subnet, and they get discovered automatically when I add them
What happened?
The lock shows the status as open/closed inverted.
In the image, Open Or Close (DP 8) and Door Status (DP 47) both are "Closed", but the "Open Or Close" has been mapped as lock entity type and show inverted status. I believe that this issue only occurs with "lock" entity.
I tried to map both datapoint 8, 47 and 2 others that have the same status and they all show inverted when the entity is of type lock, but as sensor or binary_sensor shows correctly.
Home Assistant (DP 8 configured as LOCK entity):
Home Assistant (DP 8 configured as BINARY_SENSOR, device_class LOCK):
Both templates are in "steps do reproduce"...
Tuya cloud:
Note: I know that this and other Tuya locks do not allow remote opening and closing, due to the type of security used in the device, but I would like at least the device to be shown with the correct status in Home Assistant to allow using this information in some automations.
LocalTuya Version
2024.7.0
Home Assistant Version
2024.8.2
Environment
What happened?
The lock shows the status as open/closed inverted.
In the image, Open Or Close (DP 8) and Door Status (DP 47) both are "Closed", but the "Open Or Close" has been mapped as lock entity type and show inverted status. I believe that this issue only occurs with "lock" entity.
I tried to map both datapoint 8, 47 and 2 others that have the same status and they all show inverted when the entity is of type lock, but as sensor or binary_sensor shows correctly.
Home Assistant (DP 8 configured as LOCK entity):
Home Assistant (DP 8 configured as BINARY_SENSOR, device_class LOCK):
Both templates are in "steps do reproduce"...
Tuya cloud:
Note: I know that this and other Tuya locks do not allow remote opening and closing, due to the type of security used in the device, but I would like at least the device to be shown with the correct status in Home Assistant to allow using this information in some automations.
Steps to reproduce.
Template for LOCK entity in DP 8 (inverted): Lock_Intelbras_IFR7001.yaml.txt
Template for BINARY_SENSOR in DP 8 (correct): Lock_Intelbras_IFR7001_2.yaml.txt
Note: Change the file name removing ".txt" at the end!
Relevant log output
Diagnostics information.
No response