• 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:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Motion Sensors... (KAKU, Trust...), what now?
#1
Hi people!

I'm new to this and already ordered the 433mhz TX and RX stuff from the pilight shop to replace the too-short-range I bought from a chinese store.

At the moment I've been able to receive the On signal from the motion sensor, and the Off which triggers once it doesn't detect movement for a time lapse.

But, what now? I can add the protocol, IDs, units and stuff to the config.json, but how can I read the values when motion is triggered? Does pilight has something implemented for that which I haven't seen yet?

What I'm doing now is launching a PHP script embedding the API protocol via sockets (there's a sample somewhere in here), parse the resulting string which pilight returns (a huge string, due to the detection of several protocols), and use another PHP to return 0 or 1 if the signal's state is ON or OFF. I can call the URL in Homebridge every few seconds to ask for the motion status.

But I think that must be something lighter or easier or it wouldn't have sense to add a motion sensor to the config file.

What I'm missing guys??

THANKS FOR BEING THERE! I'm learning a lot since I began with this a month ago with my poor linux and electronics skills. Smile
 
Reply
#2
http://manual.pilight.org/eventing.html is probably what you're looking for Big Grin
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Recommondation for contact sensors MorfelPi 0 124 04-07-2019, 12:54 AM
Last Post: MorfelPi
  Unable to get pilight working with kaku APA3-1500r MuadDev 0 518 02-11-2018, 03:51 PM
Last Post: MuadDev
  Charts for temperature sensors? Dergo 3 787 01-01-2018, 08:13 PM
Last Post: curlymo
  KAKU ALED-2009/ALED-2709 martijnhv 1 769 05-18-2017, 08:55 PM
Last Post: pilino1234
Lightbulb pilight not picking up KaKu remote presses rajd 13 4,803 02-07-2017, 02:22 PM
Last Post: wo_rasp
  KaKu ATMT-502 remote & pilight? rajd 4 1,685 11-30-2016, 05:05 PM
Last Post: rajd
  kaku amst-606 limited range dicenl 5 1,556 11-16-2016, 07:51 PM
Last Post: dicenl
  Getting started with 433mhz / Kaku / Arduino nano rajd 0 1,332 10-25-2016, 11:30 PM
Last Post: rajd
  KaKu YCT-102 remote unit and id Blacklight 2 1,461 08-14-2016, 08:02 PM
Last Post: Blacklight
  EV1527 based contact and motion sensors meloen 85 37,127 05-16-2016, 09:12 PM
Last Post: mvasi90

Forum Jump:


Browsing: 1 Guest(s)