QuickSander / homebridge-http-curtain

Homebridge plugin to operate web based/http curtains with push position updates.
Other
2 stars 3 forks source link

Stuck on Opening... #17

Closed iKrushYou closed 2 years ago

iKrushYou commented 2 years ago

Hey, I just set this plugin up and it seems I can't get things 100% (ha)

Here is my config

      {
            "name": "Office Blinds",
            "notificationID": "my-http-curtain",
            "getCurrentPosUrl": {
                "url": "http://192.168.1.53/api/status",
                "method": "GET"
            },
            "getPositionStateUrl": {
                "method": "GET"
            },
            "setTargetPosUrl": {
                "url": "http://192.168.1.53/api/position?pct=%d",
                "method": "PUT"
            },
            "getTargetPosUrl": {
                "method": "GET"
            },
            "identifyUrl": {
                "method": "GET"
            },
            "pullInterval": 5000,
            "accessory": "HttpCurtain"
        }

When the curtain is open, the status API returns

curl http://192.168.1.53/api/status 
100

Which is what I believe the plugin is expecting. When closed, it returns 0. When I tap the blinds card to close it, the status immediately switches to "Closed" with no loading indicator. The open state never seems to complete though.

image
iKrushYou commented 2 years ago
image

Now it's reversed. Is there any sort of debug logging I can enable?

QuickSander commented 2 years ago

Hi, you could enable DEBUG logging in Homebridge's setting. This will aid me a lot in seeing what's going on. Since you do not specify a state retrieval and target position I need to see if the plugin correctly updates the cache.

QuickSander commented 2 years ago

The behaviour of HomeKit was: when targetPos != currentPos -> opening/closing. It would always ignore the state. I think that is still the case, but it would be nice if you can post the DEBUG logging. I myself namely let my curtain return all these variables and therefor are not struck by what you experience.

QuickSander commented 2 years ago

Please also remove all attributes that you do not use, I'm not sure yet, but supplying only "method" for certain properties might make the plugin think you specified an empty URL (while your intention is to ignore it).

QuickSander commented 2 years ago

No answer, closing issue.

iKrushYou commented 2 years ago

No answer, closing issue.

Hey, sorry I didn’t see the original comments only this one

my homebridge server actually just died so once I recover that I’ll do so report back