Hello,
I am using domoticz stable, version 2024 -1 on a raspberry pi. ( in a docker container) and can't figure out how to add a door sensor to my environment:
When i am using sensortype=248 api call goes ok,
curl "http://192.168.XX.XX:8080/json.htm?type ... =248&devic
esubtype="73"&switch=11"
{
"idx" : "79",
"status" : "OK",
"title" : "CreateVirtualSensor"
when i am using sensortype=244 ( correct switch type according https://www.domoticz.com/wiki/Developin ... vice_Types)
curl "http://192.168.XX.XX:8080/json.htm?type ... =244&devic
esubtype="73"&switch=11"
{
"status" : "ERR"
}
Why does this not work?
thanks in advance!
Kind regards,
create door contact via api
Moderators: leecollings, remb0
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
-
- Posts: 1
- Joined: Saturday 27 April 2024 19:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest