Jump to content

Plugin not adding all shades or scenes


Go to solution Solved by sjenkins,

Recommended Posts

Posted

I added the plugin and updated the gatewayip to my HD Powerview Gen 2's IP address as my single hub. After doing so it only adds one shade. Upon inspecting the log it looks like it is encountering an error on init of that first shade. It does not appear to process anymore after that. I tried with both the production and beta versions but the same error happens in both:

 

2024-11-02 04:07:17.525 Thread-3 (parameterHandler) udi_interface      ERROR    udi_interface:write: KeyError
2024-11-02 04:07:17.525 Thread-3 (parameterHandler) udi_interface      ERROR    udi_interface:write: :
2024-11-02 04:07:17.525 Thread-3 (parameterHandler) udi_interface      ERROR    udi_interface:write: 'capabilities'

 

I have attached the prod debug.log, the beta debug_2.log, and the shades and scenes dump. Any help would be greatly appreciated. My EISY is on the latest firmware as well. Let me know if I can provide any additional information. 

debug_2.log debug.log shades.txt scenes.txt

Posted

@zGuy981,

Thanks for including the all of the debug files ; I will take a look at it this afternoon, heading out for my daughter's hockey now.  I see where to look & may have a question or two.

Just to be clear it looks like you have four shades.  They seem all the same type can you verify what type they are? (tilt, roll, from bottom, from top, both)

Do you really have 18 rooms and 37 scenes defined in the app for these four shades?

Not saying this is the cause but if they are not all in use then some cleanup in the app may help.

Finally, are any of your scenes multi room scenes?

 

Posted (edited)

Thank you for getting back to me so quickly! Out of the 4 shades, 3 are both ways and the last is a slider, left to right. I do have 18 rooms as I am integrated with homekit, so they are populated on the homekit side but 30 are empty on the powerview side. The same goes for scenes between homekit/isy integration there are about equal multiroom/single shade scenes. Currently, I use network resource to IFTTT Powerview integration for a number of scenes to allow for limited integration. Let me know if I can help in any way and thanks again.

Edited by zGuy981
Posted

ok, found the issue.  

Your second shade in the list, 35640, can I verify that is the left/right shade?

It has a completely different json structure than the others (see below if you care).  The GEN-2 system did this the odd time & is a lot of what they cleaned up in Gen-3.  It has no "capabilities" reference & interestingly had a "motor" reference.  The capability number is what you use to tell what kind of shade you have (there are many).  I just need to set a "default" shade if one doesn't exist.  Likely should have that and a log I was doing that anyway, but the error does flag something wrong ; you might not have anyone let you know otherwise.

I will get my coffee made and go at this.  I'll let you know when I need you to test, likely in the beta first.

 

For those who might care beyond me below is the JSONs I am talking about:

Below is a "normal" shade (your other threee):

Quote

 {
      "id": 9303,
      "type": 8,
      "capabilities": 7,
      "batteryStatus": 3,
      "batteryStrength": 167,
      "roomId": 53427,
      "firmware": {
        "revision": 2,
        "subRevision": 1,
        "build": 2313,
        "index": 3
      },
      "name": "RGluaW5nIFJvb20gU2hhZGU=",
      "groupId": 28315,
      "signalStrength": 0,
      "smartPowerSupply": {
        "status": 0,
        "id": 0,
        "port": 0
      },
      "positions": {
        "position1": 0,
        "posKind2": 2,
        "position2": 0,
        "posKind1": 1
      }
    },
 

Below is your "Special" one (going to assume default type):

Quote

    {
      "id": 35640,
      "type": 26,
      "batteryStrength": 180,
      "batteryStatus": 4,
      "roomId": 31532,
      "groupId": 4497,
      "name": "TGl2aW5nIFJvb20gU2xpZGVy",
      "positions": {
        "posKind1": 1,
        "position1": 0
      },
      "firmware": {
        "revision": 1,
        "subRevision": 8,
        "build": 1944
      },
      "motor": {
        "revision": 0,
        "subRevision": 0,
        "build": 127
      },
      "smartPowerSupply": {
        "status": 0,
        "id": 0,
        "port": 0
      }
    },
 

 

Posted

Thank you for looking into this. That is correct 35640 firmware and motor info match the left to right slider info in the app. Thanks again!

Posted

No worries ; thank you for finding the bug.  I am treating this as a bug, I was depending on the variable being there and had no default if it wasn't ; my bad.

So on the beta store is v1.12.4,  I have checked it out locally but I have Gen-3, so would be great if you could check out and run especially this shade and make sure all is as it should be.

 

Posted

I tried the beta version and unfortunately, it had the same error. I uninstalled the previous version. I tried it twice the first time I used the slot I had been using and the second time a new slot. Both had the same capabilities error. I have attached the log. According to the details page, it is on 1.12.4. Please let me know if there is something else I can try.

debug.log

Posted

No worries; I’ll check tonight after hockey. Sometimes need to peel the onion a bit. I likely missed it in another spot. Thanks for the debug. 

  • Solution
Posted (edited)

@zGuy981 Ready for you to give it a try ; its in the beta area same version, just reinstall 1.12.4

 Appreciate your patience.  I missed a second occurrence in the shade update routine.

let me know.....

 

Edited by sjenkins

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...