-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
I have at home 2 different light switches from Moes - Moes Star Feather 1 gang (SFL02-Z-1) and 4 gang (SFL02-Z-4). I found that 4 gang has option the same as wifi versions in app - Indicator Status - which can be set to off/relay/invert. In off mode backlight is off, in relay backlight lights brighter when relay is on, darker when off, and in invert mode it lights brighter when off and darker when on. I wanted to do the same in 1 gang but there is no option in exposed functions.
1 gang switch:

and 4 gang switch:



I found in code that there is a difference between 1/2 gang and 3/4 gang.
Can someone verify it? I don't have a possibility to test datapoints by myself :(
1 gang:
no line with exposing indicator status:
https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/moes.ts#L404
tuyaDatapoints has indicator_mode not indicator_status and different value
https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/moes.ts#L423
[37, "indicator_mode", tuya.valueConverterBasic.lookup({none: 0, relay: 1, pos: 2})],
4 gang (here it works):
exposing: https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/moes.ts#L634
exposes.enum("indicator_status", ea.ALL, ["Off", "Relay", "Invert"]).withDescription("Indicator status"),
tuyaDatapoints: https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/moes.ts#L669
[37, "indicator_status", tuya.valueConverterBasic.lookup({off: tuya.enum(0), Relay: tuya.enum(1), Invert: tuya.enum(2)})],