homebridge-http
homebridge-http copied to clipboard
Status_url
Hi, my status page looks like this:
WORKING or CHARGING
"status_on": "WORKING" "status_off": "CHARGING"
in the config.json will not work.
how can i handle this?
Homebridge tell me:
[Staubsauger] Switch received power http://192.168.178.9:6260/st.html state is currently NaN [Staubsauger] Setting power state to off [Staubsauger] HTTP set power function succeeded!
here is my config.json
"accessory": "Http", "name": "Staubsauger", "switchHandling": "realtime", "http_method": "GET", "on_url": "http://192.168.178.9:6260/json.cgi?%7b%22COMMAND%22:%22CLEAN_START%22%7d", "off_url": "http://192.168.178.9:6260/json.cgi?%7b%22COMMAND%22:%22HOMING%22%7d", "status_url": "http://192.168.178.9:6260/st.html", "status_on": "WORKING", "status_off": "CHARGING", "service": "Switch", "brightnessHandling": "no"
@matzZz To get it right, this config works for you? Do your power state is correct in Home or Eve App? How do I get the st.html? I only have the status.html with a lot more lines in it. Although in first line is Robot-state: CHARGING
No it will not work. The http plugin tells "state is currently NaN" Get I right that "status_on": "WORKING" tells the http plugin that WORKING means 1?
I wrote a separate status page. There is only one word on the page: WORKING, CHARGING, ...
@matzZz Any news on this? Did you get this plugin to reflect the status of your robot? I assume you are using an LG HomBot like I do. :) 👍
@matzZz Hallo, ich habe vergeblich überall gesucht wie ich das mit dem status hinkriegen kann, jedoch ohne Erfolg. Alles was ich machen will, ist dass sich der Status auch dann aktualisiert, wenn ich das ganze z.B. im Browser änder und nicht nur das der sich den letzten Status merkt den ich gesetzt habe. Bitte hilf mir