• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rest-API kaku_contact
#1
Hi,
I'm trying to control pilight via REST-API for a device with kaku_contact protocol.
Code:
http://192.168.2.210:5001/send?protocol=kaku_contact&opened=1&id=2761728&unit=1

Unfortunatly this is failing.

If I do this via pilight-send, there is an ERROR (this protocol is not supported or doesn't support sending).

Is there a reasonable way, to implement sending? Should I change the protocol-file archtech-contact.c?

Thx
wupperpi
 
Reply
#2
The error says it all. Contact devices don't support sending.
 
Reply
#3
(12-07-2018, 02:15 PM)curlymo Wrote: The error says it all. Contact devices don't support sending.

For sure. The aim is, to update the contact-status by Node-Red using the tcp-out Node. And this is because the contact-sender is too far from a reiceiver so that an ESP works as an extender.
 
Reply
#4
(12-07-2018, 02:24 PM)wupperpi Wrote:
(12-07-2018, 02:15 PM)curlymo Wrote: The error says it all. Contact devices don't support sending.

For sure. The aim is, to update the contact-status by Node-Red using the tcp-out Node. And this is because the contact-sender is too far from a reiceiver so that an ESP works as an extender.
Ay, ay, I tracked false. pilight-control may be the choice
 
Reply
#5
Sorry for asking again, but it doesn't work for me
This is working fine.
Code:
pilight-control -d=SwitchA -s=off

This is not working .
Code:
pilight-control -d=Contact011 -s=opened
The response is
Code:
ERROR: failed to control Contact011

I've no idea to go on.
Need a hint, please
 
Reply
#6
As i said before, contact devices are readonly. You cannot manually switch them. The only way is to mimic contact device codes with pilight-send using the raw pulse streams.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  nodered / Rest-API wupperpi 1 600 07-06-2018, 02:06 PM
Last Post: wupperpi
  REST API no systemcode supported Scarala 4 924 11-21-2017, 01:36 PM
Last Post: Scarala
  vers.6 vs 7 -- improved REST API? gneandr 5 2,418 07-28-2015, 08:50 PM
Last Post: gneandr
  API -- usable with REST / Authentication (v.5.0) gneandr 7 5,860 07-25-2014, 10:42 PM
Last Post: gneandr

Forum Jump:


Browsing: 1 Guest(s)