homebridge-http icon indicating copy to clipboard operation
homebridge-http copied to clipboard

Status_url

Open matzZz opened this issue 7 years ago • 5 comments

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?

matzZz avatar Aug 18 '17 17:08 matzZz

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 avatar Aug 21 '17 20:08 matzZz

@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

DJay-X avatar Aug 22 '17 16:08 DJay-X

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 avatar Aug 22 '17 21:08 matzZz

@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. :) 👍

DJay-X avatar Jan 15 '18 17:01 DJay-X

@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

eneski avatar Mar 16 '18 19:03 eneski