Comments (3)
There should be a logentry. Can you post it for open and close?
from homebridge-http-webhooks.
I placed 3 different objects:
a) pushbutton to open
b) pushbutton to close
c) lockemechanisms to do both
if I use a) or b) the commands are properly executed and the status on c) is updated
if I use c) using the same url in a) or b) for closing or opening only the closing one is executed.
please find following the config and logs:
`"pushbuttons": [
{
"id": "a_centr",
"name": "Open",
"push_url": "http://localhost:8080/?objectId=1&Name=open&Value=1",
"push_method": "GET"
},
{
"id": "c_centr",
"name": "Close",
"push_url": "http://localhost:8080/?objectId=1&Name=close&Value=1",
"push_method": "GET"
}
],`
AND
"lockmechanisms": [{ "id": "closemec", "name": "centralizzata", "close_url": "http://localhost:8080/?objectId=1&Name=close&Value=1", "close_method": "GET", "open_url": "http://localhost:8080/?objectId=1&Name=open&Value=1", "open_method": "GET" }],
The log if I use a) or b) is:
`
++++++++ FROM CLOSED STATUS ++++++
[2/1/2019, 3:11:39 PM] [HttpWebHooks] Push buttons state change for 'a_centr'...
[2/1/2019, 3:11:40 PM] [HttpWebHooks] Request to 'http://localhost:8080/?objectId=1&Name=open&Value=1' finished with status code '200' and body 'sent query string: {
"objectId": "1",
"Name": "open",
"propValue": "1"
}
[2/1/2019, 3:11:41 PM] [HttpWebHooks] Change Target Lock State for locking to '0'.
[2/1/2019, 3:11:41 PM] [HttpWebHooks] Change Current Lock State for locking to '0'.
++++++++ FROM OPEN STATUS ++++++
[2/1/2019, 3:11:49 PM] [HttpWebHooks] Push buttons state change for 'c_centr'...
[2/1/2019, 3:11:50 PM] [HttpWebHooks] Request to 'http://localhost:8080/?objectId=1&Name=close&Value=1' finished with status code '200' and body 'sent query string: {
"objectId": "1",
"Name": "close",
"propValue": "1"
}
[2/1/2019, 3:11:51 PM] [HttpWebHooks] Change Target Lock State for locking to '1'.
[2/1/2019, 3:11:51 PM] [HttpWebHooks] Change Current Lock State for locking to '1'.
`
If I use c) the result is:
`
++++++++ FROM OPEN to CLOSE STATUS ++++++
[2/1/2019, 3:11:12 PM] [HttpWebHooks] Target Lock State for 'closemec'...
[2/1/2019, 3:11:13 PM] [HttpWebHooks] Request to 'http://localhost:8080/?objectId=1&Name=close&Value=1' finished with status code '200' and body 'sent query string: {
"objectId": "1",
"Name": "close",
"propValue": "1"
}
[2/1/2019, 3:11:14 PM] [HttpWebHooks] Change Target Lock State for locking to '1'.
[2/1/2019, 3:11:14 PM] [HttpWebHooks] Change Current Lock State for locking to '1'.
++++++++ FROM CLOSE to OPEN STATUS ++++++
[2/1/2019, 3:11:20 PM] [HttpWebHooks] Target Lock State for 'closemec'...
[2/1/2019, 3:11:20 PM] [HttpWebHooks] Request to 'http://localhost:8080/?objectId=1&Name=close&Value=1' finished with status code '200' and body 'sent query string: {
"objectId": "1",
"Name": "close",
"propValue": "1"
}
`
The service that updates from physical loc towards webhooks is obviously the same, the problem is that regardless the state set to 1 the lockemechanisms script sends always the "close" command.
R
from homebridge-http-webhooks.
fixed with 0.0.45
from homebridge-http-webhooks.
Related Issues (20)
- Occupancy Sensor abort autoRelease, if new occupancy is detected HOT 2
- Security system current state should not be set automatically HOT 1
- Unable to configure newly-installed plugin or create accessories HOT 10
- Log Output for Occupancy Sensor HOT 1
- Add "off" delay for push button HOT 1
- Can not retrieve Thermostat values HOT 3
- Celcius vs Fahrenheit Issue HOT 1
- Adding Toggle capability
- Fan state errors HOT 4
- Thermostat: "minTemp", "maxTemp" and "minStep" not supported HOT 1
- Feature Request: Adding Accessory Type "Electricity Meter" - or appending Outlet
- characteristic was supplied illegal value: null!
- no temperature in sensor device HOT 1
- Adding switch or pushbutton causes errors HOT 2
- Contact sensor always false HOT 12
- Feature request: RGB light bulbs
- Question: How to set state in Homekit for a switch HOT 4
- Optional setting to stop logging incoming HTTP requests. HOT 1
- Triggering via URL request will not work!
- Race condition with Auto Release and Homebridge restarts HOT 1
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-webhooks.