[asterisk-dev] res_sensors (getting asterisk to control the world ; ) )
David Bowerman
david.bowerman at gmail.com
Sat Sep 8 22:09:07 CDT 2007
Hi all,
Ive been working on a project to add i/o controller (home automation)
support to asterisk so you can do things like switch on and off
devices and sense the state of them from within the dialplan.
Its mainly based around this
http://www.elexol.com/IO_Modules/Ether_IO_24.php i/o controller, but
the approach i've taken is a modular one so its easy to add different
controllers. X-10, CBUS etc etc.
There is a core module (res_sensors) which implements the core
functionallity and exposes an api to the hardware drivers.
res_sensor_elxeio24 implements the hardware and comms specific
functionallity for the elexol module.
res_sensor_test implements a controller entirely in software for
testing purposes.
The elexol module itself looks like a bunch of switches and relays.
therefore in the dialplan you can do something like
s,1,SensorGet(smoke-alarm, variable). based on variable you can do
whatever you like, maybe SensorSet(water, On)... this is silly i know,
but you get the idea.
The core module also implements the concept of 'watching sensors
asynchronously'. This means that you can get asterisk to 'watch the
state' of a sensor, and if it changes, enter the dialplan at a context
and extension. it may make a call, send a jabber message, or indeed
use SensorSet() to do something else.
Obviously i want to contribute this to asterisk and im a couple of
days away from posting a patch.
I have some questions though...
1. Is this something that should be part of Asterisk?
2. Is it asterisk mainline, or addons? (Im thinking addons, though
there are no licensing issues, it just seems like and add-on to me)
3. Any other ideas?
cheers
dave
More information about the asterisk-dev
mailing list