Skip to content

Support config params for XT5 and light fixes#1375

Open
Nyaran wants to merge 3 commits intoAlexxIT:masterfrom
Nyaran:master
Open

Support config params for XT5 and light fixes#1375
Nyaran wants to merge 3 commits intoAlexxIT:masterfrom
Nyaran:master

Conversation

@Nyaran
Copy link
Copy Markdown

@Nyaran Nyaran commented Apr 1, 2024

feat: Support configs for XT5

  • Network indicator [LED]
  • Vibration [XToggleNum]
  • On/Off/Preview sound and light effects [XT5Select]
  • On/Off state indicator (color and position) [XT5LightStatusLight]

Also, two fixes:

  • fix: Fix XT5Light warning [(<class 'custom_components.sonoff.light.XT5Light'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3
  • fix: Fix XLightL1 incomplete statement

Nyaran added 3 commits April 2, 2024 01:30
 - Network indicator [LED]
 - Vibration [XToggleNum]
 - On/Off/Preview sound and light effects [XT5Select]
 - On/Off state indicator (color and position) [XT5LightStatusLight]
…5Light'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3]
@AlexxIT
Copy link
Copy Markdown
Owner

AlexxIT commented Apr 8, 2024

The code design is very different from what is in the repository. It needs to be rewritten. I'll take a look at it when I get a time.

@Nyaran
Copy link
Copy Markdown
Author

Nyaran commented Apr 9, 2024

Hi,

I tried to make the new entities as much reusable as possible, but sure, it can be modified to fit better with the repository. If you give me some clues, I can try to work on it

@AlexxIT
Copy link
Copy Markdown
Owner

AlexxIT commented Apr 15, 2024

Specs description are very different.

@swas
Copy link
Copy Markdown

swas commented Jul 30, 2025

Any news on this topic?

@pisanvs I have seen that you have been working in Motor Mode for this smart switch (#1587)
Is it possible to review these features for the switch?

Thanks a lot!

@pisanvs
Copy link
Copy Markdown
Contributor

pisanvs commented Aug 4, 2025

Hi @swas,

What features would you like me to review specifically? I'm willing to work on this soon, the changes might be better suited for a new PR though. Let me know!

@swas
Copy link
Copy Markdown

swas commented Aug 4, 2025

Hello @pisanvs!

I'm interested in these features mentioned in this ticket: #1524
LED Control: Allow setting LED color, brightness, and patterns for visual alerts.

Speaker Use: Enable playback of doorbell sounds or audio files on the switch speaker.

Vibration Motor: Allow control over the vibration motor for tactile alerts.

@pisanvs
Copy link
Copy Markdown
Contributor

pisanvs commented Aug 4, 2025

Understood. For the LEDs, we can only possibly modify the ephemeral effects of specific triggers (on, off, curtain up&down), at least those are the fields exposed by the sonoff API.

For the speaker, the bell and alarm sounds are already available for triggering remotely, there is no way (as I understand it) to upload other audio files.

As for the vibration motor, I doubt there's a way to trigger it remotely. We can only configure it to be triggered along with the above mentioned effects.

These are the device diagnostics for my switch, where the modifiable fields are exposed. Anything that is not included here cannot be changed, unless the firmware is modified.

I don't think modifying aesthetic parameters (like the aforementioned effects) is within the scope of this project, as it usually is done once during setup using ewelink, but if it fits within the scope (cc: @AlexxIT) I'd be happy to add them.

@AlexxIT AlexxIT self-assigned this Aug 7, 2025
@msavazzi
Copy link
Copy Markdown

msavazzi commented Jan 1, 2026

@AlexxIT I'm moving from TX3 to T5 models and having the ability to change the color, use all of them as a bell would be really great.
The devices are correctly detected (you're great!) but some of the options are disabled:
image

If you can look into this and evolve it... it would be really great!

thanks
M

@AlexxIT AlexxIT removed their assignment Mar 5, 2026
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.

5 participants