Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

KNX: Add RGB and Dimming Control #7438

Closed
11 tasks done
goofy79 opened this issue Jan 4, 2020 · 18 comments
Closed
11 tasks done

KNX: Add RGB and Dimming Control #7438

goofy79 opened this issue Jan 4, 2020 · 18 comments
Assignees
Labels
enhancement Type - Enhancement that will be worked on

Comments

@goofy79
Copy link

goofy79 commented Jan 4, 2020

PROBLEM DESCRIPTION

I think the KNX Settings for the RGB Module doesn't work ?
I have Arilux LC01 Modul with the Tasmota Version 8.1.0.
In the KNX Settings, i can choose KNX RX 1 - KNX RX 5
But it doesn't matter what data i send to the Inputs - the Color and the brightness
won't change.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in the docs
  • Searched the problem in the forum
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): Arilux LC01
  • Tasmota binary firmware version number used: 8.0.1
    • Pre-compiled
  • Flashing tools used: nodemcu pyflasher
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:

16:35:12 CMD: Backlog Template; Module; GPIO 255
16:35:12 RSL: RESULT = {"NAME":"Generic","GPIO":[255,255,255,255,255,255,255,255,255,255,255,255,255],"FLAG":15,"BASE":18}
16:35:12 RSL: RESULT = {"Module":{"37":"Arilux LC01"}}
16:35:12 RSL: RESULT = {"GPIO0":{"17":"Button1"},"GPIO1":{"0":"None"},"GPIO2":{"159":"ALux IrSel"},"GPIO3":{"0":"None"},"GPIO4":{"147":"ALux IrRcv"},"GPIO5":{"37":"PWM1"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"38":"PWM2"},"GPIO13":{"39":"PWM3"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"}}

  • Provide the output of this command: Status 0:
  STATUS 0 output here:

16:37:37 CMD: Status 0
16:37:37 RSL: STATUS = {"Status":{"Module":37,"FriendlyName":["Tasmota"],"Topic":"ARILUX_LC01","ButtonTopic":"0","Power":1,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
16:37:37 RSL: STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://thehackbox.org/tasmota/release/tasmota.bin","RestartReason":"External System","Uptime":"1T02:26:29","StartupUTC":"2020-01-03T13:11:08","Sleep":50,"CfgHolder":4617,"BootCount":6,"SaveCount":171,"SaveAddress":"F9000"}}
16:37:37 RSL: STATUS2 = {"StatusFWR":{"Version":"8.1.0.1(tasmota)","BuildDateTime":"2019.12.31 14:39:21","Boot":7,"Core":"2_6_1","SDK":"2.2.2-dev(38a443e)","Hardware":"ESP8285","CR":"366/699"}}
16:37:37 RSL: STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["FRITZ!Box Fon WLAN 7170",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["0A008001","2805C8000100060000005A00000000000000","00000000","00000000"]}}
16:37:37 RSL: STATUS4 = {"StatusMEM":{"ProgramSize":595,"Free":408,"Heap":22,"ProgramFlashSize":1024,"FlashSize":1024,"FlashChipId":"144051","FlashMode":3,"Features":["00000407","9FDAE397","043683A0","22B617CD","01001BC0","00007881"],"Drivers":"1,2,3,4,5,6,7,8,9,10,11,12,16,18,19,20,21,22,24,26,29","Sensors":"1,2,3,4,5,6,7,8,9,10,14,15,17,18,20,22,26,34"}}
16:37:37 RSL: STATUS5 = {"StatusNET":{"Hostname":"ARILUX_LC01-6912","IPAddress":"172.16.0.32","Gateway":"172.16.0.1","Subnetmask":"255.255.255.0","DNSServer":"172.16.0.1","Mac":"D8:F1:5B:86:FB:00","Webserver":2,"WifiConfig":4,"WifiPower":17.0}}
16:37:37 RSL: STATUS7 = {"StatusTIM":{"UTC":"Sat Jan 04 15:37:37 2020","Local":"Sat Jan 04 16:37:37 2020","StartDST":"Sun Mar 29 02:00:00 2020","EndDST":"Sun Oct 25 03:00:00 2020","Timezone":"+01:00","Sunrise":"08:43","Sunset":"17:06"}}
16:37:37 RSL: STATUS10 = {"StatusSNS":{"Time":"2020-01-04T16:37:37"}}
16:37:37 RSL: STATUS11 = {"StatusSTS":{"Time":"2020-01-04T16:37:37","Uptime":"1T02:26:29","UptimeSec":95189,"Heap":22,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":0,"POWER":"AN","Dimmer":89,"Color":"00E38F","HSBColor":"158,100,89","Channel":[0,89,56],"Scheme":0,"Fade":"AUS","Speed":1,"LedTable":"AN","Wifi":{"AP":1,"SSId":"FRITZ!Box Fon WLAN 7170","BSSId":"08:96:D7:57:F7:08","Channel":1,"RSSI":30,"Signal":-85,"LinkCount":3,"Downtime":"0T00:00:10"}}}

TO REPRODUCE

Set KNX Group Addresses with ETS - than set the Groupaddresses the receive Date an send any data to this Groupaddresses.
My Groupaddresses are
3/3/70 -> Output 1 On/Off (work)
3/3/71 -> KNX RX 1 (won't work with any data)
3/3/72 -> KNX RX 2 (won't work with any data)
3/3/73 -> KNX RX 3 (won't work with any data)
3/3/74 -> KNX RX 4 (won't work with any data)
3/3/75 -> KNX RX 5 (won't work with any data)

EXPECTED BEHAVIOUR

I expected that, if i send a value between 0-255 the the KNX RX 1-3 the Color of the RGB Stripe will change. So KNX RX 1 for Red - KNX RX 2 for Green - KNX RX 3 for Blue - KNX RX 4 maybe for brightness and KNX RX 5 for the last control.
So i can change the color with a string linke
0/0/255 for Blue
255/0/255 for Pink
and so on ...

I think the Values are there
16:43:56 RSL: RESULT = {"POWER":"AN","Dimmer":89,"Color":"00E38F","HSBColor":"158,100,89","Channel":[0,89,56]}
the only thing to do is, to set the received values from the KNX objects to the right variables, isn't it ?

SCREENSHOTS

Bildschirmfoto 2020-01-04 um 16 57 58

Bildschirmfoto 2020-01-04 um 16 59 36

Bildschirmfoto 2020-01-04 um 16 45 41

Bildschirmfoto 2020-01-04 um 16 46 39

ADDITIONAL CONTEXT

nothing at the moment

(Please, remember to close the issue when the problem has been addressed)

@ascillato
Copy link
Contributor

ascillato commented Jan 4, 2020

KnxRx slots are meant to be used with rules. See wiki and docs at KNX chapter on how to use knx rules triggers. If you send the color separated in channels, you should be able to set rules to use them and set the colors in Tasmota.

If the command you are sending is the DPT for color, it is not supported by now.

@goofy79
Copy link
Author

goofy79 commented Jan 5, 2020

Ok - is this planed ?
i tried

rule1 1
rule1 on event#knxrx_val1 do Var1 %value% endon
rule1 + on event#knxrx_val2 do Var2 %value% endon
rule1 + on event#knxrx_val3 do Var3 %value% endon
rule1 + on event#knxrx_val5 do Dimmer %value% endon
rule1 + on Var1#State do Color1 %Var1%,%Var2%,%Var3% endon
rule1 + on Var2#State do Color1 %Var1%,%Var2%,%Var3% endon
rule1 + on Var3#State do Color1 %Var1%,%Var2%,%Var3% endon
18:38:52 KNX: Received from 3.3.71 Command Write: 41943.04 to KNX RX 1
18:38:52 RSL: stat/tasmota/RESULT = {"Event":"Done"}
18:38:53 RUL: EVENT#KNXRX_VAL1 performs "var1 41943.0"
18:38:53 RSL: stat/tasmota/RESULT = {"Var1":"41943.0"}
18:38:53 RUL: VAR1#STATE performs "Color1 41943.0,10.24,41943.0"
18:38:53 RSL: stat/tasmota/RESULT = {"POWER":"ON","Dimmer":84,"Color":"215,71,215","HSBColor":"300,95,84","Channel":[84,4,84]}

But i send for example the Value 100 to the Object and 41943 / 215 arrives ?
If i send 10 - 10,96 (10) arrives / if i send 50 - 327.68 arrives ?

18:40:34 RUL: EVENT#KNXRX_VAL2 performs "var2 327.68"
18:40:34 RSL: stat/tasmota/RESULT = {"Var2":"327.68"}
18:40:34 RUL: VAR2#STATE performs "Color1 41943.0,327.68,41943.0"
18:40:34 RSL: stat/tasmota/RESULT = {"POWER":"ON","Dimmer":84,"Color":"215,71,215","HSBColor":"300,67,84","Channel":[84,28,84]}

Whats wrong with my rule ?
Thank you so much

@ascillato2
Copy link
Collaborator

ascillato2 commented Jan 5, 2020

Hi, yes, it is planned to be added. I have to find some time to do it.

About your rule. Your rule is ok. The issue is the DPT your KNX system is using to send that value that is not what Tasmota expects. Try to change the DPT. If you can't you will have to wait until Color DPT support is added to the Tasmota KNX driver.

@ascillato2 ascillato2 changed the title Arilux LCO1 - RGB with KNX RGB with KNX Jan 5, 2020
@ascillato2 ascillato2 added the enhancement Type - Enhancement that will be worked on label Jan 5, 2020
@goofy79
Copy link
Author

goofy79 commented Jan 5, 2020

can you tell me what kind of DPT the Tasmota driver expected ?
Actual i send 5.005 Decimal (0-255)

@ascillato2
Copy link
Collaborator

ascillato2 commented Jan 5, 2020

Yes, sorry, Tasmota expects DPT 9 (2 bytes float) for recepted values. I have to add that information to the docs. Thanks.

@goofy79
Copy link
Author

goofy79 commented Jan 5, 2020

puh, that's heavy - to convert a 0-255 RGB value in KNX to a 2 Byte Float.
my Visu send, for example, a 1-Byte value per Color

Bildschirmfoto 2020-01-05 um 19 00 31

perfect will be, if you can set the datatype for receiving ^^

PS: if you need somebody to test - feel free to write 👍

@JohannesRegner
Copy link

Hi, i have the same problem! I'm using an Gira X1 KNX Visua Server, and tryed to change the color via GUI, but i can only switch on/off.
I think, the problem is the same as @goofy79 described ...

if you need any support/testing, I can also help!

@githubtzzz

This comment has been minimized.

@ascillato

This comment has been minimized.

@githubtzzz

This comment has been minimized.

@ascillato2

This comment has been minimized.

@ascillato2
Copy link
Collaborator

From #8084, also add Dimming control.

@fluppie
Copy link

fluppie commented Sep 1, 2020

+1 I was also looking for this func. I can switch the LED strip on and off, but also want to regulate the brightness with the KNX switches.

@JackyKNX
Copy link

+1 more ;) Is there any chance to get it soon ?

@jpirnay
Copy link

jpirnay commented Oct 26, 2020

+1, I do have some tasmota driven LED strips that would definitely benefit from this!

@edvandreas
Copy link

+1, I would also like to get this implemented

@ascillato2 ascillato2 added the work in progress Action - Work in progress label Nov 26, 2020
@Jaegerstefan
Copy link

+1 It would be really helpful to get this working.

@eldi0s
Copy link

eldi0s commented Mar 8, 2021

Definitely +1

I wonder how DPT9 could make it while DPT5 did not ;-)

@ascillato2 ascillato2 changed the title RGB with KNX RGB and Dimming with KNX Mar 11, 2021
@ascillato2 ascillato2 removed the work in progress Action - Work in progress label Apr 14, 2021
@ascillato2 ascillato2 changed the title RGB and Dimming with KNX KNX: Add RGB and Dimming Control Apr 14, 2021
Repository owner locked and limited conversation to collaborators Apr 14, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement Type - Enhancement that will be worked on
Projects
None yet
Development

No branches or pull requests