Shelly Binding

i send you PM With the details you requested, Thank you

I did a quick one, check out the latest DEV build 2.5.11

not working

hm, there’s nothing I can do.
Auto-ColoT is enabled.
added the heartbeat channel to all shelly 2.5.
all of them work without problems.

one of them as example:

2020-11-27 22:23:45.028 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:23:32.000+0100 to 2020-11-27T22:23:45.000+0100

2020-11-27 22:23:59.971 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:23:45.000+0100 to 2020-11-27T22:23:59.000+0100

2020-11-27 22:24:15.022 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:23:59.000+0100 to 2020-11-27T22:24:15.000+0100

2020-11-27 22:24:30.022 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:24:15.000+0100 to 2020-11-27T22:24:30.000+0100

2020-11-27 22:24:32.963 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:24:30.000+0100 to 2020-11-27T22:24:32.000+0100

2020-11-27 22:24:33.218 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:24:32.000+0100 to 2020-11-27T22:24:33.000+0100

2020-11-27 22:24:45.038 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:24:33.000+0100 to 2020-11-27T22:24:45.000+0100

2020-11-27 22:25:00.023 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:24:45.000+0100 to 2020-11-27T22:25:00.000+0100

2020-11-27 22:25:15.025 [vent.ItemStateChangedEvent] - OG_BAD_Licht_DeviceHeartBeat changed from 2020-11-27T22:25:00.000+0100 to 2020-11-27T22:25:15.000+0100

sorry, but I have no idea how to solve this.
like i said… all the other shellys work without any problems.

this is already the first step - device is discovered and you can add it
please provide a DEBUG log of the initialization

please provide a DEBUG log and make sure to use build 2.5.11-SNAPSHOT

Latest DEV build: 2.5.11 - 3.0.0 - README - Installation - Firmware Index - Firmware Archive - API Doc

send you PM

RGBW2 Shelly and CCT Stripes

Markus, many thanks for your great shelly binding!

Is it possible to add a CCT (if you want to control LED stripes where you only can change white color (cc/cw)) functionality to the binding for rgbw2 dimmer?
The dimmer itself does not provide this feature.
With this functionality we would be able to control 2 seperate CCT LED stripes per rgbw2 dimmer.

Hi, is there any progress regarding shelly 1L?

You can create a rule for cct
I have a dimmer for warm cold color and one for brightness.
Just a little maths in the rule.

rule "convert ww cw" 
when 
Item thpwarmkalt changed or //dimmer for warm-cold
Item thphell changed //dimmer for brightness 
then 
var tmp = (100 - (thpwarmkalt.state as Number))//thpwarmkalt = warm
var tmp2 = (thpwarmkalt.state as Number)
if ((thphell.state as Number) == 0) {
thpkwhelligkeit.sendCommand (0) //channel 1 cw
thpwwhelligkeit.sendCommand (0) //channel2 ww
}
else {
tmp = Math::round ((tmp / 100 * (thphell.state as Number)).intValue)  //tmp = kalt
tmp2 = Math::round ((tmp2 / 100 * (thphell.state as Number)).intValue) //tmp2 = warm
thpkwhelligkeit.sendCommand (tmp)
thpwwhelligkeit.sendCommand (tmp2)
}
end

Check the updated build

What is a CCT? What is the logic/requirement?
Note: the is an issue pending to have a white channel in RGB mode, but I suppose that’s not what you are looking for

Did you saw that there is an advance channel white? Please try this. I think it would make sense to make it a standard channel

CCT are LED Stripes where you can change the color from cold white to warm white. Shelly RGBW2 can work with RGB LEDs and with pure white LEDs, but not with white LEDs where you can change the white color. Similiar to RGB LEDs (where you adjust brightness per channel (red, green, blue)) you need to adjust brightness of two channels (ww - warmwhite and cw - coldwhite) to achieve the desired white color.
The problem is that shelly rgbw2 is lacking this feature and you have to write quite some lines of rules in openhab. Maybe it is possible to create a thing for this?

Sorry, I still don’t get it
I see

thpkwhelligkeit.sendCommand (tmp)
thpwwhelligkeit.sendCommand (tmp2)

that means writing 2 values to the same channel.
what should be binding exactly do?

@Baschtlwaschtl Please show your item definitions

Hi Baschtl,
many thanks. I was thinking about this the same way. That saved to my a few hours of writing and testing as I am not yet comfortable with rules language

LED stripes have three cables: DC, 1 for warmwhite, 1 for coldwhite (comparable to color LEDs where you have 4 cables - DC,r,g,b.
it is just a matter of setting the brightness of each channel (i.e. cable) to get the desired white color.
Shelly Duo is working like this

Those are two different items
thpkwhelligkeit.sendCommand (tmp)
thpwwhelligkeit.sendCommand (tmp2)

one for coldwhite, one for warmwhite.
you need to connect 2 cables out of the 4 channels shelly rgbw2 provides.
in other words, you can attach max. 2 different CCT LED stripes to a rgbw2 shelly

Oliver is right.
Rgbw2 controller in 4 white channel mode.
Here I use channel 1 for cold white and channel 2 for the warm white.
But I don’t want to change the brightness of warm and cold.
I want a dimmer for the white color and the brightness.

thpkwhelligkeit is channel 1
thpwwhelligkeit is channel 2

If any questions I will answer tomorrow.

I checked now and it works, thank you very much