• 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
How to integrate sensors and actors on a non Rpi system?
#1
Hi,
a few Days ago I've replaced my homemade remote light-switching-solution with pilight.
I'm quite happy with this step.
Im running pilight on an atom box in my basement. What would be the way to add sensors and actors to the setup, since i can't use the gpio that the box doesn't has Smile

I'm fine to hook the sensors and actors (relays basically) to another arduino, write the code to read from these sensors and flip the relays.

it seems the program-protocol is the way to go to implement my actors, but how to i get my sensor-readings into pilight?

Thanks, schorsch
 
Reply
#2
Have a look at the generic_weather device protocol, as well as the pilight API. You could write scripts that run on your external GPIO hardware and report the data from the sensors to pilight using the API and a generic_weather device.
 
Reply
#3
The generic_weather API looks like it fit my needs, Thanks.

The program-protocol isn't exactly what i'll need, i could use it but maybe there is a better way.

As sayed, i like to flip some relays with an arduino and have their state shown like any other switch in pilight.

the program-protocol does actually more then is should for my usecase.
all i need is a start and a stop command. no checking for a given program.
i've hackt together a script that changes it's name, so its pilight-relay1-on or pilight-relay1-off so that the program-protocol can watch for a process called pilight-pelay1-on to display the state, but that feels wrong.

is there a protocol i'm missing that behavies like a generic remote switch but instead of sending via a transmitter is runs commands?

Thanks so long, schorsch
 
Reply
#4
You could have a look at this Github repositry , especially the webswitch protocol for pilight. I created it to control my watering- and surveillance systems running outside my pilight environment.

N.B. You must have the current manually installed development version of pilight in order to be able to compile the protocol module.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Recommondation for contact sensors MorfelPi 0 81 04-07-2019, 12:54 AM
Last Post: MorfelPi
  System update from pilight v7 to pilight v8 chrisch30 6 1,550 01-09-2018, 07:20 PM
Last Post: curlymo
  Charts for temperature sensors? Dergo 3 705 01-01-2018, 08:13 PM
Last Post: curlymo
  Motion Sensors... (KAKU, Trust...), what now? haboku 1 542 09-27-2017, 02:26 PM
Last Post: pilino1234
  EV1527 based contact and motion sensors meloen 85 35,858 05-16-2016, 09:12 PM
Last Post: mvasi90
  System without DIP switch Trainer 31 7,170 12-29-2015, 10:00 AM
Last Post: pilino1234
Question 433 Temp/Humi Sensors laubi 6 3,725 10-17-2015, 07:35 PM
Last Post: miguipda
  Intergrate pilight in a existing custom demotica system Pimmetje 0 1,087 04-04-2015, 04:38 PM
Last Post: Pimmetje

Forum Jump:


Browsing: 1 Guest(s)