QuickSander / homebridge-http-curtain

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

Functional problem #19

Open GevaudanBeast opened 2 years ago

GevaudanBeast commented 2 years ago

Hello QuickSander,

I am encountering a problem : When I try to change the position of one of my roller shutters, the first press on the button (to open or close it completely) in the Home app produces no effect (the encoder wheel appears at the top right of the button ), I then have to press again to "cancel" my first request and start again for it to finally work. I don't have this problem, if I do a long press and set a specific percentage.

Here's a result from my logs that might be useful (but is irrelevant to when I'm using a roller shutter):

[3/30/2022, 08:44:27] [homebridge-http-lightbulb] This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
[3/30/2022, 08:44:27] [homebridge-http-curtain] This plugin slows down Homebridge. The read handler for the characteristic 'Current Position' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
[3/30/2022, 08:44:27] [homebridge-http-curtain] This plugin slows down Homebridge. The read handler for the characteristic 'Target Position' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.

A snippet of my config file:

{
            "name": "Porte",
            "notificationID": "X4VR3-4",
            "getCurrentPosUrl": {
                "url": "http://xxxx/api/core/ana/196642?ApiKey=xxxx&option=filter_state",
                "method": "GET"
            },
            "getCurrentPosRegEx": "\"value\"s*:s*([0-9]+)",
            "setTargetPosUrl": {
                "url": "http://xxxx/api/core/ana/196638?ApiKey=xxxx",
                "method": "PUT",
                "body": "{ \"virtual\":true, \"value\":%d }"
            },
            "getTargetPosUrl": {
                "url": "http://xxxx/api/core/ana/196642?ApiKey=xxxx&option=filter_state",
                "method": "GET"
            },
            "getTargetPosRegEx": "\"value\"s*:s*([0-9]+)",
            "pullInterval": 30000,
            "invertPosition": true,
            "accessory": "HttpCurtain"
        },

Thank for your help !