News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Use device status in the scenario

Started by nite_man, August 27, 2010, 10:42:08 AM

Previous topic - Next topic

nite_man

Hi,

I'm trying to create a scenario which uses some device status in the condition. For example, I have X10 switch and motion sensor. I'd like to switch ON light when the sensor is tripped (it's easy) and switch is OFF. I checked the advanced scenario editor but didn't find possibility to add desired device status there. Maybe I missed something?

Any help will be very appreciated.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

Marie.O

Can't really help, but what is the problem sending the ON command even if it already is ON?
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

totallymaxed

Quote from: nite_man on August 27, 2010, 10:42:08 AM
Hi,

I'm trying to create a scenario which uses some device status in the condition. For example, I have X10 switch and motion sensor. I'd like to switch ON light when the sensor is tripped (it's easy) and switch is OFF. I checked the advanced scenario editor but didn't find possibility to add desired device status there. Maybe I missed something?

Any help will be very appreciated.


In the Advanced Scenario Editor you need to test the state of the sensor device and then take an action based on true/false - we sometimes use the state of a motion camera to do exactly that. you just need to find the right device to test against - it does work (very well).

All the best


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

nite_man

QuoteCan't really help, but what is the problem sending the ON command even if it already is ON?
In the most cases yes, it doesn't matter. But if the device uses one command to switch ON and OFF? Like TV, for example. Or another possible case if you'd like to check the status not just tripped sensor but plus status of some other sensor.
QuoteIn the Advanced Scenario Editor you need to test the state of the sensor device and then take an action based on true/false - we sometimes use the state of a motion camera to do exactly that. you just need to find the right device to test against - it does work (very well).
I tried but didn't find anything like that. Maybe for motion camera it's possible but about simple devices like switch, dimmer, sensor etc?
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

totallymaxed

Quote from: nite_man on August 27, 2010, 01:04:06 PM
QuoteCan't really help, but what is the problem sending the ON command even if it already is ON?
In the most cases yes, it doesn't matter. But if the device uses one command to switch ON and OFF? Like TV, for example. Or another possible case if you'd like to check the status not just tripped sensor but plus status of some other sensor.
QuoteIn the Advanced Scenario Editor you need to test the state of the sensor device and then take an action based on true/false - we sometimes use the state of a motion camera to do exactly that. you just need to find the right device to test against - it does work (very well).
I tried but didn't find anything like that. Maybe for motion camera it's possible but about simple devices like switch, dimmer, sensor etc?


Try 'Respond to events' in the left hand menu of Web Admin. Then select the 'Movement is Detected' event from the 'Event' menu. Noe select the right hand drop down of the 'What device?' section and select your PIR motion detector or Motion IP Camera etc etc etc.

All the best


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

Marie.O

totallymaxed,

could you create a sample wiki page detailing how to integrate the state of a light into a respond to event scenario?
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

nite_man

#6


Let me explain what I meant with that screenshot. As you may see it's possible to specify status for the main device - motion detector in our case. Also it's possible to add some other devices in the event condition. But you cannot add the status or value for that device, i.e. ON, or OFF, or dimmer level.
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]