Support config params for XT5 and light fixes#1375
Support config params for XT5 and light fixes#1375Nyaran wants to merge 3 commits intoAlexxIT:masterfrom
Conversation
- 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]
|
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. |
|
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 |
|
Specs description are very different. |
|
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! |
|
Hello @pisanvs! I'm interested in these features mentioned in this ticket: #1524 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. |
|
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 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. If you can look into this and evolve it... it would be really great! thanks |

feat: Support configs for XT5
Also, two fixes: