Beta and Pre-Release (Public) > UI6 Discussion

Can I set/change modes from a scene?

(1/2) > >>

sirpinky:
Hi guys,
I am wondering, is there anyway to change the current preset mode (home, away, night, vacation) from a scene?
Maybe using luup code?

Tell you why, the only reasons I am not using these modes and using my own scenes are:
1. I would like to auto-arm night at 10pm everyday
2. I would like to auto-disarm 7am every morning
3. I would like to auto-disarm if the front door is unlocked using a correct PIN
4. I would like to use a keyfob to control arm, disarm or arm night

Because of the above, I am using scenes to control my alarm system.
If there is a way for me to change the mode from a scene, I would start using these modes which are pretty simple and cool.

I searched everywhere but couldn't find any mention on this.

Thanks in advance,

RexBeckett:
House modes are documented here.

The Lua to set the mode is:


--- Code: ---luup.call_action('urn:micasaverde-com:serviceId:HomeAutomationGateway1', 'SetHouseMode', { Mode=<newmode> }, 0)
--- End code ---

Replace <newmode> with values from 1 to 4 where:

          1 = Home
          2 = Away
          3 = Night
          4 = Vacation

RichardTSchaefer:
The next version of PLEG also exposes this as an action from the advanced tab of the PLEG device.

Jamr:

--- Quote from: sirpinky on October 31, 2014, 11:21:39 am ---Hi guys,
I am wondering, is there anyway to change the current preset mode (home, away, night, vacation) from a scene?
Maybe using luup code?

Tell you why, the only reasons I am not using these modes and using my own scenes are:
1. I would like to auto-arm night at 10pm everyday
2. I would like to auto-disarm 7am every morning
3. I would like to auto-disarm if the front door is unlocked using a correct PIN
4. I would like to use a keyfob to control arm, disarm or arm night

Because of the above, I am using scenes to control my alarm system.
If there is a way for me to change the mode from a scene, I would start using these modes which are pretty simple and cool.

I searched everywhere but couldn't find any mention on this.

Thanks in advance,

--- End quote ---

If you set a scene to change daily at set times, which is what I am assuming you are doing here. If you leave the home for a longer length of time like an extended weekend or a long vacation, won't the scene change your "Vacation" mode and defeat the purpose of the that mode?
How do you plan to overcome this?
Is there a way to set a scene to not change modes if you select a certain mode like vacation mode?

Jamr:

--- Quote from: RexBeckett on November 01, 2014, 05:10:00 am ---House modes are documented here.

The Lua to set the mode is:


--- Code: ---luup.call_action('urn:micasaverde-com:serviceId:HomeAutomationGateway1', 'SetHouseMode', { Mode=<newmode> }, 0)
--- End code ---

Replace <newmode> with values from 1 to 4 where:

          1 = Home
          2 = Away
          3 = Night
          4 = Vacation

--- End quote ---

Worked great. Thanks.

Navigation

[0] Message Index

[#] Next page

Go to full version