Replies: 2 comments 8 replies
-
@MatzeBo, I'll be very surprised if the plugin is the problem. The memory usage should be quite low. More likely, the problem is your mygekko interface/controller being terribly slow to respond, which can't receive so many simultaneous requests, but let's confirm that first.
Create a script called #!/bin/bash
# or, set this to some other value you prefer for testing, like 100
POS="P99"
echo "Wohnen Fenster starting..."
curl -s "http://mygekko/api/v1/var/blinds/item0/scmd/set?value=${POS}&username=admin&password=password" && echo "Wohnen Fenster done!" &
## repeat as needed, e.g., for all blinds
echo "Blind 2 starting..."
curl -s "http://mygekko/api/v1/var/blinds/item0/scmd/set?value=${POS}&username=admin&password=password" && echo "Blind 2 done!" &
## add more commands here
wait
Save the script, and type You will be able to tell now what the problem is and where it happens.
{
"motion_up_time": 11000,
"motion_down_time": 10000,
"trigger_stop_at_boundaries": false,
"position_jsonata": "$round(100 - $number($split(';')[1]))",
"unique_serial": false,
"name": "Wohnen Fenster",
"response_lag": 0,
"success_codes": [200, 204],
"http_options": {
"method": "GET",
"headers": {},
"time": true
},
"position_url": "http://mygekko/api/v1/var/blinds/item0/sumstate/status/value?username=admin&password=password",
"position_interval": 15000,
"up_url": "http://mygekko/api/v1/var/blinds/item0/scmd/set?value=%%POS%%&username=admin&password=password",
"down_url": "http://mygekko/api/v1/var/blinds/item0/scmd/set?value=%%POS%%&username=admin&password=password",
"stop_url": "http://mygekko/api/v1/var/blinds/item0/scmd/set?value=0&username=admin&password=password",
"map_send_jsonata": "$join(['P',$string($round(100 - $number($)))])",
"accessory": "BlindsHTTP",
"show_stop_button": false,
"retry_delay": 2000,
"use_same_url_for_stop": false,
"max_http_attempts": 5,
"verbose": true,
"show_toggle_button": false
}, |
Beta Was this translation helpful? Give feedback.
-
Thanks @MatzeBo, I reviewed everything and didn't see any issues at least upon initial review. The behavior seems reasonable, <500 ms typically for responses. If there was a lag, you would expect to see it in the timestamps or returned responses. What makes you believe that there is a problem with this plugin? E.g., what kind of memory or CPU usage are you seeing and are you certain it's only attributable to this plugin? Also, what is your version of homebridge and node? |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I use the plug-in to control 14 shutters. These are controlled by a smart home controller called myGekko. The interface looks like this:
"blinds": { "item0": { "name": "Wohnen Fenster", "sumstate": { "value": "State[-2=Hold_down|-1=Down|0=Stop|1=Up|2=Hold_up];Position[%];Angle[°];SumState[0=Ok|1=ManualOff|2=ManualOn|3=Locked|4=Alarm];SlatRotationArea[°]", "type": "STRING", "permission": "READ", "index": 200000 }, "scmd": { "value": "-2|-1|0|1|2|T|P55.4|S32.4 (Hold_down|Down|Stop|Up|Hold_up|Toggle|Position|Angle)", "type": "STRING", "permission": "WRITE", "index": 200001 }
Configured in Homebridge, the shutters are as follows:
{ "motion_up_time": 11000, "motion_down_time": 10000, "trigger_stop_at_boundaries": false, "position_jsonata": "$round(100 - $number($split(';')[1]))", "unique_serial": false, "name": "Wohnen Fenster", "position_url": "http://mygekko/api/v1/var/blinds/item0/sumstate/status/value?username=admin&password=password", "up_url": "http://mygekko/api/v1/var/blinds/item0/scmd/set?value=%%POS%%&username=admin&password=password", "response_lag": 0, "success_codes": [ 200, 204 ], "http_options": { "method": "GET", "headers": {} }, "position_interval": 15000, }, "down_url": "http://mygekko/api/v1/var/blinds/item0/scmd/set?value=%%POS%%&username=admin&password=password", "stop_url": "http://mygekko/api/v1/var/blinds/item0/scmd/set?value=0&username=admin&password=password", "map_send_jsonata": "$join(['P',$string($round(100 - $number($)))])", "accessory": "BlindsHTTP", "show_stop_button": false, "retry_delay": 2000, "use_same_url_for_stop": false, "max_http_attempts": 5, "verbose": false, "show_toggle_button": false },
The control of the roller shutters works flawlessly. But the plugin slows down my Raspberrypi 3B + extremely with 14 shutters. Is there a possibility to improve the performance? I've already tried sub bridges. But that kills my memory.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions