I have several scenes that trigger when the house mode changes from Away to Home on a Vera Plus running the latest 1.7.4001 firmware. I use an external Geofence to run a Return scene when I re-enter the geofence - the Return scene simply sets the House Mode to Home using the House Modes plugin. The problem I am seeing is that setting the house mode to Home triggers the scenes but they won’t run because the house mode is not yet home (1), is it still away (2). In other words, the house mode plugin changes the mode that triggers the scenes BEFORE the house mode is actually changed.
If you examine the log below, you see the following:
[ol][li]External request to run Return scene (due to luup http request when entering Geofence) - OK[/li]
[li]House Mode plugin device 17 changes from 2 (Away) to 1 (Home) as a result of Return scene running - OK[/li]
[li]Several scenes are triggered due to the House Mode change? - OK[/li]
[li]Scenes 1, 8 and 18 do not run because they “think” that the House Mode is 2 (Away) and not 1 (Home) - WRONG / BUG?
[/li]
[li]Device 17 Job 9299 to set house mode completes - OK[/li][/ol]
Either I am missing something pretty basic or this is a bug where scenes configured to trigger on House Mode change to Home are triggered before the value of the House Mode plugin actually changes to from Away to Home. Anyone know a good way to work around it?
08 01/08/19 19:18:37.343 JobHandler_LuaUPnP::HandleActionRequest device: 0 service: urn:micasaverde-com:serviceId:HomeAutomationGateway1 action: ^[[36;1mRunScene^[[0m <0x728f7520>
08 01/08/19 19:18:37.343 JobHandler_LuaUPnP::HandleActionRequest argument action=RunScene <0x728f7520>
08 01/08/19 19:18:37.344 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1 <0x728f7520>
08 01/08/19 19:18:37.344 JobHandler_LuaUPnP::HandleActionRequest argument SceneNum=14 <0x728f7520>
08 01/08/19 19:18:37.344 Scene::RunScene running 14 Return <0x728f7520>
08 01/08/19 19:18:37.349 JobHandler_LuaUPnP::HandleActionRequest device: 17 service: urn:micasaverde-com:serviceId:HouseModes1 action: ^[[36;1mSetHMode^[[0m <0x728f7520>
08 01/08/19 19:18:37.349 JobHandler_LuaUPnP::HandleActionRequest argument newHModeValue=1 <0x728f7520>
06 01/08/19 19:18:37.363 Device_Variable::m_szValue_set device: 17 service: urn:micasaverde-com:serviceId:HouseModes1 variable: ^[[35;1mHMode^[[0m was: 2 now: 1 #hooks: 8 upnp: 0 skip: 0 v:0x1004820/NONE duplicate:0 <0x775c8320>
07 01/08/19 19:18:37.363 Event::Evaluate 1 scene Sunset-50m Lighting wrong house mode 2 repeat 0/0 <0x775c8320>
07 01/08/19 19:18:37.363 Event::Evaluate 9 scene Sunset+20m Evening Lighting wrong house mode 2 repeat 0/0 <0x775c8320>
07 01/08/19 19:18:37.364 Event::Evaluate 13 scene HVAC @Sleep is false repeat 0/0 <0x775c8320>
07 01/08/19 19:18:37.364 Event::Evaluate 14 scene HVAC @Wake/Home is true users: allow:1 <0x775c8320>
08 01/08/19 19:18:37.364 Scene::RunScene running 21 HVAC @Wake/Home <0x775c8320>
08 01/08/19 19:18:37.364 JobHandler_LuaUPnP::HandleActionRequest device: 9 service: urn:upnp-org:serviceId:TemperatureSetpoint1_Heat action: ^[[36;1mSetCurrentSetpoint^[[0m <0x775c8320>
08 01/08/19 19:18:37.365 JobHandler_LuaUPnP::HandleActionRequest argument NewCurrentSetpoint=73 <0x775c8320>
08 01/08/19 19:18:37.366 JobHandler_LuaUPnP::HandleActionRequest device: 9 service: urn:upnp-org:serviceId:TemperatureSetpoint1_Cool action: ^[[36;1mSetCurrentSetpoint^[[0m <0x775c8320>
08 01/08/19 19:18:37.366 JobHandler_LuaUPnP::HandleActionRequest argument NewCurrentSetpoint=74 <0x775c8320>
08 01/08/19 19:18:37.367 JobHandler_LuaUPnP::HandleActionRequest device: 7 service: urn:upnp-org:serviceId:TemperatureSetpoint1_Heat action: ^[[36;1mSetCurrentSetpoint^[[0m <0x775c8320>
08 01/08/19 19:18:37.367 JobHandler_LuaUPnP::HandleActionRequest argument NewCurrentSetpoint=72 <0x775c8320>
08 01/08/19 19:18:37.368 JobHandler_LuaUPnP::HandleActionRequest device: 7 service: urn:upnp-org:serviceId:TemperatureSetpoint1_Cool action: ^[[36;1mSetCurrentSetpoint^[[0m <0x775c8320>
08 01/08/19 19:18:37.368 JobHandler_LuaUPnP::HandleActionRequest argument NewCurrentSetpoint=74 <0x775c8320>
07 01/08/19 19:18:37.369 Event::Evaluate 17 scene Palm Christmas OFF is false repeat 0/0 <0x775c8320>
07 01/08/19 19:18:37.369 Event::Evaluate 18 scene Sunset-20m Lighting wrong house mode 2 repeat 0/0 <0x775c8320>
07 01/08/19 19:18:37.370 Event::Evaluate 19 scene Ground-Level @night is true users: allow:1 <0x775c8320>
08 01/08/19 19:18:37.370 Scene::RunScene running 27 Ground-Level @night <0x775c8320>
08 01/08/19 19:18:37.370 JobHandler_LuaUPnP::HandleActionRequest device: 101 service: urn:upnp-org:serviceId:Dimming1 action: ^[[36;1mSetLoadLevelTarget^[[0m <0x775c8320>
08 01/08/19 19:18:37.370 JobHandler_LuaUPnP::HandleActionRequest argument newLoadlevelTarget=15 <0x775c8320>
06 01/08/19 19:18:37.371 Device_Variable::m_szValue_set device: 101 service: urn:upnp-org:serviceId:Dimming1 variable: ^[[35;1mLoadLevelTarget^[[0m was: 0 now: 15 #hooks: 0 upnp: 0 skip: 0 v:0xfd6e30/NONE duplicate:0 <0x775c8320>
01 01/08/19 19:18:37.373 ^[[31;1mluup_log:20: SensorMqtt plugin: Device: 17 Variable: HMode Value 2 => 1^[[0m <0x775c8320>
01 01/08/19 19:18:37.376 ^[[31;1mluup_log:20: SensorMqtt plugin: Publish MQTT message on topic: Vera/50000796/HouseModes1/17 with value:{"DeviceId":17,"DeviceName":"House Modes Plugin","DeviceType":"urn:schemas-micasaverde-com:device:HouseModes:1","HMode":1,"OldHMode":2,"RoomId":0,"Roo
06 01/08/19 19:18:37.378 Device_Variable::m_szValue_set device: 20 service: urn:upnp-sensor-mqtt-se:serviceId:SensorMqtt1 variable: ^[[35;1mmqttLastMessage^[[0m was: {"Payload":{"Alias":87,"City":"Wrightsville Beach","DeviceId":87,"DeviceName":"Landscape 1-4","DeviceType":"urn:schemas-
08 01/08/19 19:18:37.379 JobHandler_LuaUPnP::HandleActionRequest device: 0 service: urn:micasaverde-com:serviceId:HomeAutomationGateway1 action: ^[[36;1mSetHouseMode^[[0m <0x775c8320>
08 01/08/19 19:18:37.379 JobHandler_LuaUPnP::HandleActionRequest argument Mode=1 <0x775c8320>
06 01/08/19 19:18:37.380 Device_Variable::m_szValue_set device: 46 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: ^[[35;1mArmed^[[0m was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xcb82a8/NONE duplicate:0 <0x775c8320>
06 01/08/19 19:18:37.381 Device_Variable::m_szValue_set device: 56 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: ^[[35;1mArmed^[[0m was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xcb82a8/NONE duplicate:0 <0x775c8320>
06 01/08/19 19:18:37.382 Device_Variable::m_szValue_set device: 52 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: ^[[35;1mArmed^[[0m was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xcb82a8/NONE duplicate:0 <0x775c8320>
06 01/08/19 19:18:37.383 Device_Variable::m_szValue_set device: 41 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: ^[[35;1mArmed^[[0m was: 1 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xcb82a8/NONE duplicate:0 <0x775c8320>
06 01/08/19 19:18:37.385 Device_Variable::m_szValue_set device: 17 service: urn:micasaverde-com:serviceId:HouseModes1 variable: ^[[35;1mMessage^[[0m was: now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x775c8320>
04 01/08/19 19:18:37.386 <Job ID="9299" Name="" Device="17" Created="2019-01-08 19:18:37" Started="2019-01-08 19:18:37" Completed="2019-01-08 19:18:37" Duration="0.35969000" Runtime="0.23410000" Status="Successful" LastNote=""/> <0x775c8320>