Systemmode change turns all lights on
Posted: Thu 18 Jul 2013, 08:24
Hi,
I've been working with systemmodes for a while now (away systemmode detection when leaving the house).
I have two systemmodes for now, Away and Default. The Default systemmode is set up as followed. Devices have a schedule which is set to always on if a datasource is set to On (wall switches), allowing the wall switchs to turn on/off the light like your normal average switch. In the Away systemmode most devices don't have a schedule resulting in turning off the lights and keep them off regardless the state of the datasources (switches).
When I change from Default to Away, lights that were on turn off (I have also written a plugin that turns the datasources to Off as well) and are unable to turn on again by the wall switches because of the lack of schedules. This works as expected.
Now when I change from Away to Default, the schedules are enabled again (while the datasources are still all set to Off). And somehow this results in turning on all devices (and I mean all devices with a schedule). When SK is done turning on all the devices (and the Telldus Duo is done sending the signals), it starts to turn off all of the devices again as I would expect in the beginning.
Now my question is, why is SK turning on all the devices while there's no reason it should do that because all the datasources (which the schedules depend on) are still set to Off?
Cheers
I've been working with systemmodes for a while now (away systemmode detection when leaving the house).
I have two systemmodes for now, Away and Default. The Default systemmode is set up as followed. Devices have a schedule which is set to always on if a datasource is set to On (wall switches), allowing the wall switchs to turn on/off the light like your normal average switch. In the Away systemmode most devices don't have a schedule resulting in turning off the lights and keep them off regardless the state of the datasources (switches).
When I change from Default to Away, lights that were on turn off (I have also written a plugin that turns the datasources to Off as well) and are unable to turn on again by the wall switches because of the lack of schedules. This works as expected.
Now when I change from Away to Default, the schedules are enabled again (while the datasources are still all set to Off). And somehow this results in turning on all devices (and I mean all devices with a schedule). When SK is done turning on all the devices (and the Telldus Duo is done sending the signals), it starts to turn off all of the devices again as I would expect in the beginning.
Now my question is, why is SK turning on all the devices while there's no reason it should do that because all the datasources (which the schedules depend on) are still set to Off?
Cheers
