sbooke Posted March 31 Posted March 31 Anybody know what the programing content might be to put a motion sensor on a time of day schedule and to turn on a specific scene during that time frame. Thanks Quote
Guy Lavoie Posted March 31 Posted March 31 (edited) I have a similar program, for turning on a video fireplace if motion is detected between certain hours in the morning. It looks like this: Ambiance turn on if MS morning - [ID 0037][Parent 0048] If From 7:30:00AM To 9:30:00AM (same day) And 'MS LR-Sensor' is switched On And $s_fireplace_already_on is 0 Then $s_fireplace_already_on = 1 ...trigger fireplace on commands... Else - No Actions - (To add one, press 'Action') The $s_fireplace_already_on state variable is a flag to prevent it from triggering twice on the same day. It gets reset to 0 during the night. I might add that if you use a flag variable like I did, then put the statement setting it to a new value as your last Then statement. I edited out some commands from my actual program for clarity. Edited March 31 by Guy Lavoie Quote
Geddy Posted March 31 Posted March 31 On 3/31/2025 at 2:53 PM, sbooke said: programing content might be to put a motion sensor on a time of day schedule and to turn on a specific scene during that time frame Expand Best bet is like @Guy Lavoie has is for the program to only be true during the time you want the scene to run AND when there is motion. Do you have a program you're trying to troubleshoot or starting from scratch? If you have an existing program you want some help with please be sure to include that in your post by right clicking the program, selecting "Copy to clipboard" then pasting in the port as text so that others can help edit/alter the program easily. Screen shots aren't as easy to help edit. Quote
sbooke Posted March 31 Author Posted March 31 I am starting from scratch. from what i can find, this is not intuitive. the fire place example is just to turn on once and then off. i would like the following: Motion sensor to turn a scene or a controller on and off during a time period. The real live example is to turn on the lights in the bathroom for 5 minutes every time motion is detected during the day only. ( we don't want the lights to come on in the middle of the night) I get how to add the motion sensor to a scene to control the scene on and off. I cant figure out how to make the motion sensor turn on and off a scene/controller during a period. Help is appreciated. Quote
Guy Lavoie Posted March 31 Posted March 31 Well it's essentially the same program, but with an additional time period and then an off statement. I have several motion sensors that are used like that. No variable is used to control it otherwise. MS basement kitchen - [ID 001B][Parent 006A] If From 5:00:00PM To 10:30:00PM (same day) And 'MS basement kitchen' is switched On Then Set 'basement kitchen light' On Wait 5 minutes Set 'basement kitchen light' Off Else - No Actions - (To add one, press 'Action') Quote
sbooke Posted March 31 Author Posted March 31 I have tried this which does not work MS works in a scene as a controller, but not in programs Options for MS are factory defaults Quote
Guy Lavoie Posted March 31 Posted March 31 Try control instead of status for the motion sensor. Also, how are the jumpers set? Quote
sbooke Posted Wednesday at 09:06 PM Author Posted Wednesday at 09:06 PM Control did not work what jumpers? Quote
Guy Lavoie Posted Wednesday at 09:36 PM Posted Wednesday at 09:36 PM On 4/2/2025 at 9:06 PM, sbooke said: Control did not work what jumpers? Expand In the motion sensors, inside the battery compartment. Quote
Brian H Posted Wednesday at 10:14 PM Posted Wednesday at 10:14 PM (edited) Some versions may not have the Jumper Header. Just two solder pads where it was mounted on the PC board. In the early manuals. Was to set the reduction in sensing field. Jumper On is reduced sensitivity. The small jumper block was many times on one of the two pins on the PCB. Some have used the power connector in them to run them on an external USB power supply. They are supposed to not have to go into the power saving mode on an external supply. Edited Wednesday at 10:38 PM by Brian H Add something. Quote
IndyMike Posted Thursday at 11:48 AM Posted Thursday at 11:48 AM On 3/31/2025 at 10:03 PM, sbooke said: I have tried this which does not work MS works in a scene as a controller, but not in programs Options for MS are factory defaults Expand @sbooke, if your motion sensor CAN trigger a scene but CAN'T trigger a program: Your PLM can't hear the device Your PLM isn't programmed to listen to the device You have too many link records in the PLM Open the Event viewer to @Level3 and activate the motion sensor. You should see communication similar to the following (with your device address). If you do not see any activity, check your PLM link record count and review the following thread: https://forum.universal-devices.com/topic/45014-motion-sensor-only-works-in-scenes-not-programs/ Thu 04/03/2025 07:42:31 : [INST-SRX ] 02 50 4A.6F.65 00.00.01 CF 11 01 LTONRR (01) Thu 04/03/2025 07:42:31 : [Std-Group ] 4A.6F.65-->Group=1, Max Hops=3, Hops Left=3 Thu 04/03/2025 07:42:31 : [D2D EVENT ] Event [4A 6F 65 1] [DON] [1] uom=0 prec=-1 Thu 04/03/2025 07:42:31 : [ 4A 6F 65 1] DON 1 3 Quote
sbooke Posted Saturday at 07:05 PM Author Posted Saturday at 07:05 PM ok thanks Motion does not show up in the event view after a trigger. I only have 48 links I am going to bale on using motion in programs, to much trouble Quote
Guy Lavoie Posted Saturday at 07:18 PM Posted Saturday at 07:18 PM Don't give up. You just need to learn a few basics. Start with a simple program that just increments a variable. Look for the "control" event instead of status. Like this: MS entrance on - [ID 009F][Parent 006A] If 'MS Entrance-Sensor' is switched On (notice "is switched" instead of status, because I used control) Then $s_Entrance_ms = +1 Else - No Actions - (To add one, press 'Action') Quote
gregkinney Posted Saturday at 08:35 PM Posted Saturday at 08:35 PM @sbooke I just went through this exact same issue. My ISY also said I had 44, or 28, or 109 links. I deleted the motion sensor and related program, deleted a very large scene to reduce the link count to see if it was too many links, then added back the motion sensor. Tried a program and all worked well. 1 Quote
IndyMike Posted Saturday at 09:03 PM Posted Saturday at 09:03 PM (edited) On 4/5/2025 at 7:05 PM, sbooke said: ok thanks Motion does not show up in the event view after a trigger. I only have 48 links I am going to bale on using motion in programs, to much trouble Expand @sbooke, 48 links is VERY few and somewhat doubtful. I single Keypadlinc with a few scenes can consume 20 link records. If you can't see the motion sensor communication in the Event viewer, your program WILL NOT trigger. The PLM either does not have the correct link records (programmed incorrectly) or the link record is outside of the range the PLM can access. The last condition (link record outside the access range) is what @gregkinney encountered. As he indicated, deleting scenes can help reduce things below the 1024 1000 link limit. If you believe that you have nowhere near that # of devices/links (I also don't), please post back. If you have recently upgraded (Polisy to Eisy, etc) it's possible that something went South, and you don't have the correct links in the PLM. It is also possible that your PLM is having issues and is loosing it's links records. Let us know the vintage (date code/rev level). Edited 18 hours ago by IndyMike Quote
Guy Lavoie Posted Saturday at 09:05 PM Posted Saturday at 09:05 PM I've been seeing this mention of excessive links a lot recently, in various forum threads. I realize that the PLM supports up to 1000 links, but how many devices or scenes does it take to get there? I have a moderately sized system and if I go view the PLM link table, I get 367, so nothing to worry about. Maybe this is something we need to check every now and then. Quote
IndyMike Posted 17 hours ago Posted 17 hours ago The link limit has been around in various forms since the start of Insteon. The original 2412S PLM had more memory, but had issues utilizing higher addresses - presumed to be due to speed limitations. There is a fair amount of Smartlabs documentation stating that the 2413S PLM supports 2000 links. Per the following, both @Brian H and @ELA verified that actual hardware from 2017 only supported 1000 links (https://forum.universal-devices.com/topic/24278-anyone-have-a-recent-2413s-plm/). Like you, I have a link count in the middle 300's. That's with ~66 Insteon devices. At one time I had roughly 2x that number and I was pushing the limit. It's interesting to note that PLM memory utilization isn't all that efficient. When devices are deleted, the memory isn't necessarily reclaimed. As I mentioned in a previous thread, I recently "recovered" 150 link records by performing a "restore modem". Finally, the Link Table Read function can be rather intermittent for some giving wildly different counts. The actual reading is performed by a PLM function "Get Next All Link Record". Unfortunately, during certain communication events, the PLM can loose track of where it is in the read process. I can normally get good PLM table reads in the early morning, but others have real issues getting consistent results. As I'm writing this my family is moving around tripping the various motion sensors upstairs. My link table counts are - 178, 919, 263, and 473. None of these are correct. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.