Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable LED management in the 41E2PBSWMZ/356PB2MBTZ 2AX switch #5637

Merged
merged 5 commits into from
Apr 9, 2023

Conversation

linkedupbits
Copy link
Contributor

@linkedupbits linkedupbits commented Apr 7, 2023

This PR enables the ability to manage the switch's internal LED state.
Fixes #5635
(Thanks @DanielNagy for the sample code)

Passes lint

z2m evidence

switch's internal LED state.
fixes Koenkk#5635
(Thanks @DanielNagy for the sample code)
Already present in extend.switch
- 41EPBDWCLMZ/354PBDMBTZ (Dimmer)
- 41E10PBSWMZ-VW (10AX switch)
as suggested by @DanielNagy
Renamed switchIndicator to indicator_mode
Renamed enum descriptions
Refactored enum exposes into reusable function
@DanielNagy
Copy link
Contributor

DanielNagy commented Apr 8, 2023

@Koenkk fyi, those 4 led indication state names were taken from the Clipsal app directly. Your on/off replacement suggestions are rather confusing.

@Koenkk
Copy link
Owner

Koenkk commented Apr 9, 2023

@DanielNagy I agree, reverted it.

@Koenkk Koenkk merged commit baaef5d into Koenkk:master Apr 9, 2023
@Koenkk
Copy link
Owner

Koenkk commented Apr 9, 2023

Thanks @DanielNagy @linkedupbits !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

schneider_electric.js - Adding support for switch LED control
3 participants