Skip to content

(probably) Wrong/missing datapoints on SFL02-Z-1 and SFL02-Z-2 (Moes Star Feather) #11173

@maacaron

Description

@maacaron

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:
Image
and 4 gang switch:
Image
Image
Image
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)})],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions