Position Update #54
-
Hallo Zusammen,
Wenn ich die Position_url selber aufrufe erscheinen je die werte aus der Logo z.B. "50" oder "89". Grüße Hello everybody,
If I call the Position_url myself, the values from the logo appear e.g. "50" or "89". greetings PS: Sorry for my bad English |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi Karl, From my testing, the problem is as you stated here:
However, I think jsonata can help here, even though your response isn't JSON. You can review the section on I experimented a bit with your case, can you try adding this to your config and see if it solves the issue? "position_jsonata": "$number($)", |
Beta Was this translation helpful? Give feedback.
-
Yes, I'll be curious if it works with the other version I provided. Glad you solved it for the time being, but would still be useful for troubleshooting.
As you've noted, this is controlled by HomeKit/Homebridge and it polls position_url at some frequency. I'm not sure exactly when this is, but it also will have something to do with how often you 'refresh' it by going into the page with that icon. I've added to the issues (#55) a new feature request which could support a periodic polling for more frequent updating in these cases. |
Beta Was this translation helpful? Give feedback.
-
the other Version is Working. |
Beta Was this translation helpful? Give feedback.
the other Version
"position_jsonata": "$replace($, '\"', '')",
with the URL
"position_url": "http://192.000.0.000:xxxx/rest/devices/789/attributes/2/valueText",
is Working.