Hoping someone can assist me in getting the rest of the functionality working on a Tuya based motion switch.
Link to yaml I’m trying to get working. I grabbed everything from a config I found on Reddit, but only relay (datapoint 1) and turning white LED off (datapoint 15) is working). Motion doesn’t work for on or off. Here is what the Tuya module advertises:
18:59:37][C][lt.component:013]: LibreTiny:
[18:59:37][C][lt.component:014]: Version: v1.5.1 on generic-bk7231n-qfn32-tuya, compiled at Sep 4 2024 10:49:43, GCC 10.3.1 (-O1)
[18:59:37][C][lt.component:015]: Loglevel: 3
[18:59:37][C][tuya:041]: Tuya:
[18:59:37][C][tuya:056]: Datapoint 1: switch (value: OFF)
[18:59:37][C][tuya:062]: Datapoint 14: enum (value: 0)
[18:59:37][C][tuya:062]: Datapoint 15: enum (value: 2)
[18:59:37][C][tuya:056]: Datapoint 43: switch (value: ON)
[18:59:37][C][tuya:062]: Datapoint 44: enum (value: 0)
[18:59:37][C][tuya:062]: Datapoint 45: enum (value: 0)
[18:59:37][C][tuya:056]: Datapoint 46: switch (value: ON)
[18:59:37][C][tuya:062]: Datapoint 47: enum (value: 0)
[18:59:37][C][tuya:062]: Datapoint 48: enum (value: 1)
[18:59:37][C][tuya:058]: Datapoint 49: int value (value: 34)
[18:59:37][C][tuya:058]: Datapoint 101: int value (value: 0)
[18:59:37][C][tuya:058]: Datapoint 102: int value (value: 0)
[18:59:37][C][tuya:054]: Datapoint 103: raw (value: 00)
[18:59:37][C][tuya:074]: Product: '{"p":"vd5jgg8vgdbaqerq","v":"1.0.0","m":2}'
If the RAW datapoint 103 has the sensor data in there, could a lambda be used to populate a sensor?
TIA