Announcement

Collapse
No announcement yet.

WLED/mcsMQTT - HSTouch integration

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    I setup a test with Segment 0 with 0 to 9. Segment 1 with 0 to 5 and Segment 2 with 6 to 9 on WLED 0.12.0. I controlled Segment 1 from HS Devices. First the color picker. Then twice with the Hue control. In all cases I obtained the expected JSON and RGB/HSB conversions. The first line is command sent from HS. The next four lines are the response from WLED with which the HS color and HSB slider devices were updated. I did the evaluation using HS3 plugin on both HS3 and HS4 with the same result. I do not now have the JSON communication in the debug log. I was using VS Debugger to capture it. I added the JSON command and response t the debug in the attached it if you continue to have issue.

    Code:
    Segment 1 color to blue HSB = [COLOR=#0000ff]240,100,100[/COLOR]
    "{""on"":true,""bri"":250,""transition"":7,""ps"":3,""pl "":-1,""ccnf"":{""min"":1,""max"":5,""time"":12},""nl"":{""on"": false,""dur"":60,""fade"":true,""mode"":1,""tbri"":0,""rem"" :-1},""udpn"":{""send"":false,""recv"":true},""lor"":0,""mains eg"":0,""seg"":[
    {""id"":0,""start"":0,""stop"":9,""len"":9,""grp"":1,""spc"" :0,""on"":true,""bri"":255,""col"":[[28,255,8],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false},
    {""id"":1,""start"":0,""stop"":5,""len"":5,""grp"":1,""spc"" :0,""on"":true,""bri"":127,""col"":[[[COLOR=#0000ff]0,0,255[/COLOR]],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false},
    {""id"":2,""start"":5,""stop"":9,""len"":4,""grp"":1,""spc"" :0,""on"":true,""bri"":255,""col"":[[28,255,8],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false}]}"
    
    Segment 1 hue to 360 (red) RGB = [COLOR=#c0392b]255,0,0 HSB = 0,100,100[/COLOR]
    "{""on"":true,""bri"":250,""transition"":7,""ps"":3,""pl "":-1,""ccnf"":{""min"":1,""max"":5,""time"":12},""nl"":{""on"": false,""dur"":60,""fade"":true,""mode"":1,""tbri"":0,""rem"" :-1},""udpn"":{""send"":false,""recv"":true},""lor"":0,""mains eg"":0,""seg"":[
    {""id"":0,""start"":0,""stop"":9,""len"":9,""grp"":1,""spc"" :0,""on"":true,""bri"":255,""col"":[[28,255,8],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false},
    {""id"":1,""start"":0,""stop"":5,""len"":5,""grp"":1,""spc"" :0,""on"":true,""bri"":127,""col"":[[[COLOR=#c0392b]255,0,0[/COLOR]],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false},
    {""id"":2,""start"":5,""stop"":9,""len"":4,""grp"":1,""spc"" :0,""on"":true,""bri"":255,""col"":[[28,255,8],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false}]}"
    
    Segment 1 hue to 188 (cyan) [COLOR=#3498db]RGB = 0, 221, 255 HSB = 188, 100, 100[/COLOR]
    "{""on"":true,""bri"":250,""transition"":7,""ps"":3,""pl "":-1,""ccnf"":{""min"":1,""max"":5,""time"":12},""nl"":{""on"": false,""dur"":60,""fade"":true,""mode"":1,""tbri"":0,""rem"" :-1},""udpn"":{""send"":false,""recv"":true},""lor"":0,""mains eg"":0,""seg"":[
    {""id"":0,""start"":0,""stop"":9,""len"":9,""grp"":1,""spc"" :0,""on"":true,""bri"":255,""col"":[[28,255,8],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false},
    {""id"":1,""start"":0,""stop"":5,""len"":5,""grp"":1,""spc"" :0,""on"":true,""bri"":127,""col"":[[[COLOR=#3498db]0,221,255[/COLOR]],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false},
    {""id"":2,""start"":5,""stop"":9,""len"":4,""grp"":1,""spc"" :0,""on"":true,""bri"":255,""col"":[[28,255,8],[0,0,0],[0,0,0]],""fx"":0,""sx"":128,""ix"":128,""pal"":0,""sel"":true,""rev "":false,""mi"":false}]}"
    Click image for larger version  Name:	Capture2.PNG Views:	0 Size:	36.2 KB ID:	1509321

    Click image for larger version  Name:	Capture1.PNG Views:	0 Size:	37.1 KB ID:	1509322

    Click image for larger version  Name:	Capture.PNG Views:	0 Size:	13.2 KB ID:	1509323

    Comment


      #47
      Thx,
      Debug log sent to your email address.

      WLED1 and WLED2 configured with 3 segments each;

      Comment


        #48
        The errors in the log are due to not having the IP entered on the Local Page, WLED tab. Since segment are not supported by MQTT in WLED a REST communication is needed and this communication requires an IP. I suspect you had the IP's entered earlier but they became lost somehow. I tried to replicate them being lost but could not.

        I did make some updates to get a consistent HS device naming conventions for full and segments. I also put the check in for a missing IP and wrote to the HS log if it is missing. Most of the effort on the update was to properly create the sliders when reconstructing missing devices from the database. They are a special case where there is no MQTT topic for the sliders as they are only a conversion from the color topic.

        Let me know if the attached helps. Most important though is to have the IP entered on the Local page.
        Attached Files

        Comment


          #49
          that was it.. IP's were missing.
          Not sure when, but I probably deleted the fields while troubleshooting

          Thx for the additional HS logging;
          Would you mind confirming what the HS log message would look like?; I have a script scrubbing the log daily for keywords ("error", "warning", etc.) ; Will ensure the McsMQTT error messages are captured just in case.

          Will finalize testing this week as I need to deploy a few more strips.

          Absolutely love the flexibility WLED offers along with McsMQTT and addressable Leds.

          Thx again.
          Cheers.

          Yann

          Comment


            #50
            "Unable to send WLED command to xxxxxx because no IP associated with this WLED device."

            It will only show up for Segment commands. Full strips use MQTT commands.

            Comment

            Working...
            X