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
Specific URL call if a door sensor is open/close
Moderators: leecollings, remb0
-
- 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
i think what you are trying to do is really simple with a blocky:
see image for example https://snellejellep.stackstorage.com/s/bM1YhBMvfSrIMr3
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
- 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
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.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
Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
-
- 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
then i am really interested how you can call two http commands in that single field...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
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
- 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
snellejellep wrote:then i am really interested how you can call two http commands in that single field...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
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
Who is online
Users browsing this forum: No registered users and 1 guest