Hey all,
I have a problem with my RGB LED from MagicHome. I flashed it with tasmota and I got it running and it worked well. I can control it from the Paper UI without any problems. But I get sometimes Problems on my sitemap. Sometimes it works and if I change something, rules for example, it doesn’t work correctly anymore.
The Colorpicker doesn’t send the correct values for the hsb color. The slider for the brightness jumps always to the middle after I changed it, but it sends the correct values. If I close the colorpicker window and open it again the colorpicker are always at color white and brightness 50%.
If I save my sitemaps file with a different name then I have in the file it works again, but of course all the other switches not. Do you know maybe more?
// mqtt.things
// RGB Controler
Thing topic rgb_led_bild "RGB Led Bild" @ "Jonas" {
Channels:
Type string : reachable "Erreichbar" [ stateTopic="stat/rgb_led_bild/LWT" ]
Type switch : power "Power" [ stateTopic="stat/rgb_led_bild/POWER", commandTopic="cmnd/rgb_led_bild/POWER" ]
Type dimmer : dimmer "Dimmer" [ stateTopic="stat/rgb_led_bild/RESULT", commandTopic="cmnd/rgb_led_bild/DIMMER", transformationPattern="JSONPATH:$.Dimmer" ]
Type colorHSB : colour "Farbe" [ stateTopic="stat/rgb_led_bild/RESULT", commandTopic="cmnd/rgb_led_bild/HSBColor", transformationPattern="JSONPATH:$.HSBColor" ]
Type number : rssi "WiFi Signalstärke" [ stateTopic="tele/rgb_led_bild/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
//mqtt items
//RGB Controler
// rgb led Bild
Group RGB_Led_Bild "LED Bild"
String RGB_Led_Bild_Reachable "Erreichbar: [%s]" (RGB_Led_Bild) {channel="mqtt:topic:mosquitto:rgb_led_bild:reachable"}
Switch RGB_Led_Bild_Power "Power: [%s]" (RGB_Led_Bild, Licht_power, Licht_hintergrund_power) {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"}
Number RGB_Led_Bild_Rssi "Wifi Signalstärke: [%d %%]" (RGB_Led_Bild) {channel="mqtt:topic:mosquitto:rgb_led_bild:rssi"}
//sitemap as hamburg.sitemap
sitemap hamburg label="WG" {
Frame label="Anwesenheit" {
Text item=Handy_Jonas_Online label="Jonas da? [Ja]" visibility=[Handy_Jonas_Online==ON] icon="man_1"
Text item=Handy_Jonas_Online label="Jonas da? [Nein]" visibility=[Handy_Jonas_Online==OFF] icon="man_1"
Switch item=gast_da label="Gast da?" mappings=[ON="Ja", OFF="Nein"] icon="man_1"
Switch item=Test_schalter
Switch item=Test_schalter2
}
Frame label="Licht" {
Switch item=Licht_alles label="Licht gesamt: [%s]" icon="light"
Switch item=Steckdose_schreibtisch_Power label="Schreibtisch: [%s]" icon="light"
Switch item=Steckdose_globus_Power label="Globus: [%s]" icon="light"
Switch item=Steckdose_stehlampe_Power label="Stehlampe: [%s]" icon="light"
Switch item=RGB_Led_Bild_Power label="Bild: [%s]" icon="light"
Colorpicker item=RGB_Led_Bild_Colour label="Bild Farbe:"
}
Frame label="Musik" {
Group item=Musik_Jonas
}
}