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

Newkaku dimming not working properly with Home Assistant #121

Open
cateatingbird opened this issue Nov 9, 2024 · 0 comments
Open

Newkaku dimming not working properly with Home Assistant #121

cateatingbird opened this issue Nov 9, 2024 · 0 comments

Comments

@cateatingbird
Copy link

Hi

I utilize the Sonoff RF Bridge with the RFLink32 image for this device. I control my 433MHz devices using Home Assistant (HA) through the Sonoff Bridge. All my devices operate on the Newkaku protocol ([Plugin_003.cpp]). The on/off switches works perfectly. However, when sending dimming commands from HA, the behavior is somewhat erratic (for instance, when using the dimming slider in HA). I've verified the approximate percentage signal sent from HA and its corresponding signal received at the RF bridge. It's important to note that the Newkaku protocol has 15 dimming levels.
1% = 00
7% = 01
13% = 02
20% = 03
27% = 04
33% = 05
40% = 06
47% = 07
53% = 08
60% = 09
67% = 00
73% = 01
80% = 02
87% = 03
93% = 04
100% = 05

On the other hand, if I manually send codes via MQTT to the RF bridge using HEX codes, it works fine (the first column is the code sent to the bridge, the second column is the reply from the bridge):
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
a = 10
b = 11
c = 12
d = 13
e = 14
f = 15
(For info, codes sent look like this as an example: 10;NewKaku;ID=00b23dea;SWITCH=4;SET_LEVEL=a; )

However, Home Assistant does not send hex code to the RF bridge. The optimal solution might be to modify the RFLink32 code so that it correctly interprets the code sent from Home Assistant. I have attempted to review parts of the code, but lack the expertise to determine the necessary corrections. Could someone guide me in the right direction? Thank you.

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

No branches or pull requests

1 participant