Turn Off a "Sensor"

Posted on
Wed Jan 17, 2018 11:15 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Turn Off a "Sensor"

I use a few Fibaro Universal sensors in my HA setup. On some occasions one of them will stick with Status "On". I want to run a turn "Off" if still "On" after x seconds which I should be able to do easily :) . However due to it being a sensor you can't turn it "On" or "Off" in the conventional way you would with a device. But strangely it can be switched within Indigo Touch. Am I missing something obvious?? Can I do the same via an Indigo action?

Posted on
Wed Jan 17, 2018 11:16 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Turn Off a "Sensor"

They can't be turned on or off traditionally only through the device list UI, you can still turn them on and off via an action group. I do the same thing, in fact I have almost the same sensor and I'll use a trigger to turn it off (you can also configure the "off" setting via the devices ZWave config too).

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Jan 17, 2018 11:19 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Turn Off a "Sensor"

Here's the Py code to turn them off by the way:

Code: Select all
indigo.sensor.setOnState(YOURSENSORID, value=False)

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Jan 17, 2018 11:32 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Turn Off a "Sensor"

Thanks for the Py code.
Colorado4Wheeler wrote:
you can still turn them on and off via an action group.
I don't see how I can do this.. :oops:

Posted on
Wed Jan 17, 2018 11:40 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Turn Off a "Sensor"

I meant via Py code, so running a server script.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Jan 17, 2018 11:48 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Turn Off a "Sensor"

And doing it via the settings (your Fibaro motion sensor may be slightly different):
Attachments
Screen Shot 2018-01-17 at 10.47.12 AM.png
Screen Shot 2018-01-17 at 10.47.12 AM.png (186.12 KiB) Viewed 1589 times

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Jan 17, 2018 11:55 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Turn Off a "Sensor"

OK I understand the action group now!
I have the same motion sensors also both the universal sensor is different.
Thanks.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests