Specific URL call if a door sensor is open/close

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jafel
Posts: 1
Joined: Tuesday 03 April 2018 14:24
Target OS: -
Domoticz version:
Contact:

Specific URL call if a door sensor is open/close

Post by jafel »

Hi,

First of all: domotic is a very cool software for xiaomi sensors, great!

I wanted to do the following thing:

If a door opens/closes i want to call a url from my server. For example:

If the door #1 is open, then call http://myserver.com/script.php?door=1&status=1

So the script and the variables door=1 and status=1 must be individual.

I tried to do this with the notifications http, but there i can only add a description, not an url? How can i realise that?

Thanks for your answer!
Jason
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Specific URL call if a door sensor is open/close

Post by snellejellep »

i think what you are trying to do is really simple with a blocky:
see image for example https://snellejellep.stackstorage.com/s/bM1YhBMvfSrIMr3
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Specific URL call if a door sensor is open/close

Post by philchillbill »

snellejellep wrote:i think what you are trying to do is really simple with a blocky:
see image for example https://snellejellep.stackstorage.com/s/bM1YhBMvfSrIMr3
You could just put the http:// in the on/off actions field for the corresponding switch in Domoticz. That’s also how Sonoffs are switched using Domoticz.


Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Specific URL call if a door sensor is open/close

Post by snellejellep »

philchillbill wrote: Wednesday 04 April 2018 18:23
You could just put the http:// in the on/off actions field for the corresponding switch in Domoticz. That’s also how Sonoffs are switched using Domoticz.


Sent from my iPhone using Tapatalk
then i am really interested how you can call two http commands in that single field...
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Specific URL call if a door sensor is open/close

Post by philchillbill »

snellejellep wrote:
philchillbill wrote: Wednesday 04 April 2018 18:23
You could just put the http:// in the on/off actions field for the corresponding switch in Domoticz. That’s also how Sonoffs are switched using Domoticz.


Sent from my iPhone using Tapatalk
then i am really interested how you can call two http commands in that single field...

Wrap them in a 2-line bash file with 2 curl statements.


Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest