bathroom light / fan control ms13-fibaro

Forum over Homeseer scripts (DUTCH forum)

Moderators: TANE, Ruud

Post Reply
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

bathroom light / fan control ms13-fibaro

Post by mrqnapper »

I have an event in HSpro which I use to keep the bathroom light on during the time someone is in the bathroom. So the light is switched on in the hall, when entering the bathroom (build in Fibaro switch), when entering the bathroom the MS13 sensor sense motion and send an ON signal. During the stay in the bathroom this will continue giving input for homeseer and my occupation event:

Code: Select all

Trigger:
MS13 sensor changed to on
Action:
Remove delayed device action for (fibaro switch) f8
Device Command: Switch f8 off after a delay of 15 minutes
Using this for some time, it now seems that it's not working as intended. As shown below in the log file, after 15 minutes the light will be off, regardless if you are still standing under the shower or not!!
Also the movement is triggered by the MS13 without any problem. Now it seems that the "Remove delayed device action" is not triggered in time, before the Device command is executed!

Code: Select all

16-1-2013 9:41:12 	X10 Received 	F3 (Boven Badkamer Sensor MS13 Badkamer) F On
16-1-2013 9:41:12 	RFXCOM 	(RecRxChar) receiver #1 packet: 20906F08F7
16-1-2013 9:41:12 	Event 	Event Trigger "Badkamer licht uit geen beweging"
16-1-2013 9:41:20 	RFXCOM 	(processX10) cmd received:F3 On
16-1-2013 9:41:20 	X10 Received 	F3 (Boven Badkamer Sensor MS13 Badkamer) F On
16-1-2013 9:41:20 	RFXCOM 	(RecRxChar) receiver #1 packet: 20906F08F7
16-1-2013 9:41:22 	Device Update 	Device: Boven Kantoor Bewegings sensor Everspring Status set to OFF/CLOSED/NO MOTION
16-1-2013 9:41:29 	RFXCOM 	(processX10) cmd received:F3 On
16-1-2013 9:41:29 	X10 Received 	F3 (Boven Badkamer Sensor MS13 Badkamer) F On
16-1-2013 9:41:29 	RFXCOM 	(RecRxChar) receiver #1 packet: 20906F08F7
16-1-2013 9:41:36 	RFXCOM 	(processX10) cmd received:F3 On
16-1-2013 9:41:36 	X10 Received 	F3 (Boven Badkamer Sensor MS13 Badkamer) F On
16-1-2013 9:41:36 	RFXCOM 	(RecRxChar) receiver #1 packet: 20906F08F7
etc, etc, etc,
Than after 15 minutes (the delay time from my event).:

Code: Select all

16-1-2013 9:56:10 	X10 Received 	F3 (Boven Badkamer Sensor MS13 Badkamer) F On
16-1-2013 9:56:10 	RFXCOM 	(RecRxChar) receiver #1 packet: 20906F08F7
16-1-2013 9:56:12 	Event 	Event Trigger "Child 8 Switch Binary (delayed action)"
16-1-2013 9:56:12 	Device Control 	Device: Boven Badkamer Child 8 Switch Binary (Q13) OFF
16-1-2013 9:56:12 	Event 	Deleting event after run: "Delayed Actions Child 8 Switch Binary (delayed action)"
16-1-2013 9:56:19 	RFXCOM 	(processX10) cmd received:F3 On
16-1-2013 9:56:19 	X10 Received 	F3 (Boven Badkamer Sensor MS13 Badkamer) F On
16-1-2013 9:56:19 	RFXCOM 	(RecRxChar) receiver #1 packet: 20906F08F7
16-1-2013 9:56:26 	RFXCOM 	(processX10) cmd received:F3 On
16-1-2013 9:56:26 	X10 Received 	F3 (Boven Badkamer Sensor MS13 Badkamer) F On
16-1-2013 9:56:26 	RFXCOM 	(RecRxChar) receiver #1 packet: 20906F08F7
16-1-2013 9:56:35 	RFXCOM 	(processX10) cmd received:F3 On
etc, etc, etc, 
So what's wrong here? I'have got some complaints from the family :)

Wiechert.
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: bathroom light / fan control ms13-fibaro

Post by AshaiRey »

Try to give a off to the MS13 device after you have removed the delayed event.
HS don't get an OFF state so probaly the event won't trigger again.

Use hs.setdevice(<ms13>, 3) in the event as script. (3 = off if i am right)
ps, command could be wrong because i have no example here. Will update this later tonight.
Bram
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: bathroom light / fan control ms13-fibaro

Post by mrqnapper »

Bram, Thanks for the quick reply. I will try your solution. Since the ms13 is F3 in my set-up I suppose it will be hs.setdevice(<f3>, 3) then isn't it?

Wiechert
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: bathroom light / fan control ms13-fibaro

Post by AshaiRey »

Try adding an extra line to your event that start a script.
Fill in hs.SetDeviceStatus ("F3", 3)
Bram
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: bathroom light / fan control ms13-fibaro

Post by mrqnapper »

With your help it seems to work now. Thanks a lot.

W.
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: bathroom light / fan control ms13-fibaro

Post by AshaiRey »

If a MS13 is involved then this is how usualy configure it.
Please note that i use the day/night sensor of a different MS13. That sensor is the MS13 that is closest to my RFXCom antenna. If it's dark at that location then it's dark enough in every other room too. :)
ms13.GIF
ms13.GIF (18.01 KiB) Viewed 7344 times
Bram
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: bathroom light / fan control ms13-fibaro

Post by mrqnapper »

This is how I have it for now. Why is the 20 seconds waiting time?
badezimmer.tiff
badezimmer.tiff (50.94 KiB) Viewed 7339 times
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: bathroom light / fan control ms13-fibaro

Post by AshaiRey »

Your image isn't shown

The 20 sec. delay is just a value i picked.
If the MS13 goes ON then by default it will send and OFF 1 minute after the last ON
The event is set that it can not retrigger within 30 seconds
The event need a reset of the timer within 15 minutes to keep the light ON.
I want to prevent that the server is getting very busy with just this event.
Based on this i thought 20 seconds is a good value :-)
Bram
Post Reply

Return to “Homeseer Scripts Forum”