- Platform information:
- Hardware: Proxmox VM
- OS: Debian
- Java Runtime Environment: zulu 8
- openHAB version: openHAB 2.5.4 Release Build
- Issue of the topic:
Hi everybody,
I try to use one MagicHome LED Stripe, which I flashed with Tasmota, in openHab. The Thing, Items and sitemaps look like the following:
Thing topic rgb_led_bild "RGB Led Bild" @ "Jonas" {
Channels:
Type switch : power "Power" [ stateTopic="Haus/Erdgeschoss/Wohnzimmer/LEDBand/stat/POWER", commandTopic="Haus/Erdgeschoss/Wohnzimmer/LEDBand/cmnd/POWER" ]
Type dimmer : dimmer "Dimmer" [ stateTopic="Haus/Erdgeschoss/Wohnzimmer/LEDBand/stat/RESULT", commandTopic="Haus/Erdgeschoss/Wohnzimmer/LEDBand/cmnd/DIMMER", transformationPattern="JSONPATH:$.Dimmer" ]
Type colorHSB : colour "Farbe" [ stateTopic="Haus/Erdgeschoss/Wohnzimmer/LEDBand/stat/RESULT", commandTopic="Haus/Erdgeschoss/Wohnzimmer/LEDBand/cmnd/HSBColor", transformationPattern="JSONPATH:$.HSBColor" ]
}
Group RGB_Led_Bild "LED Bild"
Switch RGB_Led_Bild_Power "Power: [%s]" (RGB_Led_Bild) {channel="mqtt:topic:mosquitto:rgb_led_bild:power"}
Dimmer RGB_Led_Bild_Dimmer "Dimmer:" (RGB_Led_Bild) {channel="mqtt:topic:mosquitto:rgb_led_bild:dimmer"}
Color RGB_Led_Bild_Colour "Farbe:" (RGB_Led_Bild) {channel="mqtt:topic:mosquitto:rgb_led_bild:colour"}
Switch item=RGB_Led_Bild_Power label="LEDBand: [%s]" icon="light"
Colorpicker item=RGB_Led_Bild_Colour label="Bild Farbe:"
Default item=RGB_Led_Bild_Dimmer label="Dimmer:"
It looks like
When I am changing the slider in the colorpicker, the brightness of the LEDs is changing, but the slider is jumping back to 50%.
When I afterwards change the color, then the color of the led is changed but with the dimmervalue 50, even if the old color had 100 (but because the slider jumped to 50)
Procedure:
LEDs set to red in Tasmota
16:33:50 MQT: Haus/Erdgeschoss/Wohnzimmer/LEDBand/stat/RESULT = {"POWER":"ON","Dimmer":100,"Color":"FF0004","HSBColor":"359,100,100","Channel":[100,0,2]}
refresh basicui, colorpicker has the color red and slider on 100. Dimmer value in basicui is 100 as well.
I change the colorpicker to blue and the LED colors are changing. Dimmer stays 100 %
16:37:26 MQT: Haus/Erdgeschoss/Wohnzimmer/LEDBand/stat/RESULT = {"POWER":"ON","Dimmer":100,"Color":"0314FF","HSBColor":"236,99,100","Channel":[1,8,100]}
I now close the colorpicker and open it again, now the selected color is white (leds still blue). The slider below the colorpicker is 50%. The Slider of the Dimmer still 100%
I change the value again to blue
16:38:32 MQT: Haus/Erdgeschoss/Wohnzimmer/LEDBand/stat/RESULT = {"POWER":"ON","Dimmer":50,"Color":"070D80","HSBColor":"237,95,50","Channel":[3,5,50]}
and the slider to nearly 75%
16:38:34 MQT: Haus/Erdgeschoss/Wohnzimmer/LEDBand/stat/RESULT = {"POWER":"ON","Dimmer":78,"Color":"0A14C7","HSBColor":"237,95,78","Channel":[4,8,78]}
As you can see the dimmer was moved to 50 percent, even if the brightness was not changed.
The second command where i change the brightness is committed correct to tasmota, but basicui is resetting it to 50
So I have 2 problems
- Sometimes when i open the colorrpicker it is set to white
- brigthness is set to 50%
I can see the following in the log:
2020-05-05 18:28:15.752 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path ‘$.Dimmer’ in ‘{“POWER”:“OFF”}’
2020-05-05 18:28:15.753 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path ‘$.HSBColor’ in ‘{“POWER”:“OFF”}’
Is it related to the topic Haus/Erdgeschoss/Wohnzimmer/LEDBand/stat/RESULT?
Should I change it to tele? I have seen that I can create 2 channels in thing and then use both channels in item. Does it make sense here?
I’m looking forward if here is somebody who can help me.
Best regards
Eric