Comments (4)
Have you any other information about your web service. It seems that your http server doesn't respond in time (or isn't accessible at all).
How long does it take until the error appears? Does it appear immediately when your toggle your switch to on?
from homebridge-http-switch.
Any updates regarding your problem?
from homebridge-http-switch.
Hi Supereg, I have an config issue as well I would like to read out the state from an xml :
This is written in the XML:
TCW181B-CM 00:04:A3:AA:21:40 TCW181B-CM 3.07 Status Gara CLOSED 0 Hoftor OFF 2.0 Garage OFF 1.5 Haustür OFF 2.0 Licht OFF 2.5 OFF 2.0 OFF 2.0 OFF 2.0 OFF 1.0
I would like the part were it says closed or open to be interpreted. The commands to open the garage via http works fine! Hope to get support from you! The xml can be found via http://192.168.1.9/status.xml
I have tried with this config:
"accessory": "HTTP-SWITCH",
"name": "Garagentor",
"checkStatus": "polling",
"pollingInterval": 10000,
"statusUrl": "http://192.168.1.9/status.xml",
"statusRegex": "^.off.: CLOSED.*$",
"switchType": "stateless",
"timeout": 500,
"onUrl": "http://192.168.1.9/status.xml?pl2=1",
"httpMethod": "GET"
from homebridge-http-switch.
I'm not quite sure which part of your XML should represent the garage state. But your 'statusRegex' should first of all be named statusPattern
and secondly you encoring that your given string will begin with ('^') and end with the given pattern ('$'). So assuming that the status is represented at the part Status Gara CLOSED
you could just write Status Gar OPEN
if the switch should be turned on when this string is contained in the response.
from homebridge-http-switch.
Related Issues (20)
- Authentication Problem HOT 1
- Another StatusPattern help request HOT 1
- Error on Stateful switch. HOT 1
- Sending JSON body HOT 2
- Regex or Statuspattern bug? Full details and tests inside. Please help. HOT 1
- statusPattern not working as expected HOT 1
- Allow service type declarations in the accessory definition stubs
- Support custom HTTP method on `statusUrl`
- HowTo: Sending JSON via ntfy.sh HOT 2
- HowTo: to send a Curl API Request HOT 2
- Request for Help with POST HOT 5
- Homebridge UI support
- WWW-authentication issue HOT 6
- Turning on one switch change status of another HOT 1
- Add Multi-Switch Device HOT 2
- StatusPattern Help for Reolink Camera
- Keep getting `Error 422` upon setting switch state HOT 3
- Toggle Switch Auto-OFF
- Hikvision (DS-KD8003) Door lock trigger
- Please implement a “Fire and return quickly” option HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-http-switch.