
Jim P
Members-
Posts
70 -
Joined
-
Last visited
Everything posted by Jim P
-
I haven't done any X10 with my UD devices, but I do remember there is no status info returned for X-10 devices and the best you can do is set an integer or state variable based on the command you send to the X10 device. This isn't a sure thing as you can never know if the X10 device responded to the command or not. That being said my lighting that I controlled with X10 was adequate for my needs and worked well enough for what I needed. If I remember my Oscelot ran programs basically like a ladder logic program going from line or row 1 sequentially through each row of logic commands. Where UD devices are able to run specific rows or programs based on other programs... ie. program b is able to run if or then sections of program a or what ever program you want to call.
-
Changed to text and email was all in text... Changed back to html and it is back as it was before. Strange....
-
I copied both emails back to my mail server and they both look the same on the web server side but neither are correct.. no issue to me .. this is just for info.. both show up as pictured above on my email ...
-
I have this customization for a weather status output to an email notification. ( text at the bottom) The first pic is output from July 12 the second in July 13 .. I have not changed anything with this notification... I am at a loss as what happened??? <!Doctype html/> <style> body { background-color:cornflowerblue; } p { text-align: center; color: red; } .item1 { grid-area: Temperature; color: red;} .item2 { grid-area: Humidity; color: red;} .item3 { grid-area: DewPoint; color: red;} .item4 { grid-area: Pressure; color: red;} .item5 { grid-area: WindDirection; color: red;} .item6 { grid-area: WindSpeed; color: red;} .item7 { grid-area: Visibility; color: red;} .item8 { grid-area: ClimateConditions; color: red;} .item9 { grid-area: Alert; color: red;} .item10 { grid-area: AlertStatus; color: red;} .item11 { grid-area: AlertType; color: red;} .item12 { grid-area: AlertCategory; color: red;} .item13 { grid-area: AlertSeverity; color: red;} .item14 { grid-area: AlertUrgencyy; color: red;} .item15 { grid-area: AlertCertainty; color: red;} .grid-container { display: grid; grid-template: 'Temperature Humidity DewPoint' 'Pressure WindDirection WindSpeed' 'Visibility ClimateConditions Alert' 'AlertStatus AlertType AlertCategory' 'AlertSeverity AlertUrgency AlertCertainty'; grid-gap: 10px padding: 10px } .grid-container >div { text-align: center; padding: 10px 0; font-size: 30px; } </style> <body> <h1><center> Weather Status </center></h1> <div class="grid-container"> <fieldset><legend>Temperature</legend> <div class="item1"><center>${sys.node.n003_controller.CLITEMP}</center></div></fieldset> <fieldset><legend>Humidity</legend> <div class="item2"><center>${sys.node.n003_controller.CLIHUM}</div></fieldset> <fieldset><legend>Dew Point</legend> <div class="item3"><center>${sys.node.n003_controller.DEWPT}</center></div></fieldset> <fieldset><legend>Pressure</legend> <div class="item4"><center>${sys.node.n003_controller.BARPRES}</center></div></fieldset> <fieldset><legend>Wind Direction</legend> <div class="item5"><center>${sys.node.n003_controller.WINDDIR}</center></div></fieldset> <fieldset><legend>Wind Speed</legend> <div class="item6"><center>${sys.node.n003_controller.SPEED}</center></div></fieldset> <fieldset><legend>Visibility</legend> <div class="item7"><center>${sys.node.n003_controller.DISTANC}</center></div></fieldset> <fieldset><legend>Climate Conditions</legend> <div class="item8"><center>${sys.node.n003_controller.GV13}</center></div></fieldset> <fieldset><legend>Alert</legend> <div class="item9"><center>${sys.node.n003_controller.GV21}</center></div></fieldset> <fieldset><legend>Alert Status</legend> <div class="item10"><center>${sys.node.n003_controller.GV22}</center></div></fieldset> <fieldset><legend>Alert Type</legend> <div class="item11"><center>${sys.node.n003_controller.GV23}</center></div></fieldset> <fieldset><legend>Alert Category</legend> <div class="item12"><center>${sys.node.n003_controller.GV24}</center></div></fieldset> <fieldset><legend>Alert Severity</legend> <div class="item13"><center>${sys.node.n003_controller.GV25}</div></fieldset> <fieldset><legend>Alert Urgency</legend> <div class="item14"><center>${sys.node.n003_controller.GV26}</center></div></fieldset> <fieldset><legend>Alert Certainty</legend> <div class="item15"><center>${sys.node.n003_controller.GV27}</center></div></fieldset> </div> </body>
-
The actual status changes are detected. The program that generates the email originally checked the status of the iolinc which must have reported wrong as other programs that report the actual status changes are recorded fine. ..
-
Since we are talking about garage door open detection... Last week at 8:03 PM for 4 or 5 nights I received an email stating my garage door was open. My garage door app said it was closed. GarageOpenAtNight - [ID 004F][Parent 0016] If Time is 8:00:00PM And 'Garage Closed Status' Status is Off Then Run Program 'Garage Open Alert' (Then Path) Else - No Actions - (To add one, press 'Action') This program sounds alarm if Garage Door is open at 08:00 PM I changed to checking the variable for the device status and this works.. GarageOpenAtNight - [ID 004F][Parent 0016] If Time is 8:00:00PM And $iGarage.Closed.Status is 0 Then Run Program 'Garage Open Alert' (Then Path) Else - No Actions - (To add one, press 'Action') This program sounds alarm if Garage Door is open at 08:00 PM I don't think I have changed this program for a very long time, so I was wondering if anyone else has seen something like this? Device is a 2450 IOLinc v41 . Didn't mean to hop this thread but is was kind of in the ball park and I am not too worried about this as I usually set an integer variable when a control changes a status... I was more curious about why after at least 3 years I would start seeing something with this. Maybe the IOLinc is getting querky about it's status?
-
Here is one of mine..... Date = ${sys.date} Time = ${sys.time} Sunrise = ${sys.sunrise} Sunset = ${sys.sunset} Program Name ${sys.program.#.name} Program Status ${sys.program.#.status} Alert Alert Details ${alert.details} Alert Event ${alert.event} Alert Date ${alert.date} Alert Time ${alert.time} Sys Node # Name ${sys.node.#.name} # Addr ${sys.node.#.addr} Sys Group # Name ${sys.group.#.name} # Addr ${sys.group.#.addr} Category ${alert.category} Type ${alert.type} Action ${alert.action} control ${alert.control} sVacant = ${var.2.4} sMotionOn = ${var.2.5} sMotionOff = ${var.2.6} iVacant = ${var.1.28} iMvacant = ${var.1.13} iVacation = ${var.1.30} iGarageAlertStatus = ${var.1.37} iDeparture = ${var.1.39} LeakDetectorWet = ${var.1.17} 1 - Kitchen, 2 - GuestHalfBath, 3 - GuestBathroom, 4 - MasterBathroom Living Room Motion ${var.1.40} Hall Motion ${var.1.42} Garage Closed ${var.1.41} AdjustedGarageClosed ${var.1.50} Program = ${var.1.47} ${sys.program.#.status} ${alert.category} ${alert.details}
-
If switch C is on it doesn't matter what happens to switch B ??? You only mentioned the program not being true based on Switch A and Switch B during time constraints. Does it change things if you From To time is the first statement?
-
Binary values to store status of devices - unable to get &= to work
Jim P replied to Jim P's topic in IoX Program Support
I use similar logic to determine when all of my motion detectors are in a particular state, but what I was trying to do was to use a binary variable as a storage for 8 devices and attempting to parse out the 1 bits for 'on' status for specific devices.. Just an exercise for me mostly , but since I can't see how to parse out each bit without a separate program for each device.. I will simply use a status variable for each device and a program to parse out which device is which ... No worries thanks for the assistance but I will just drop back and punt. .. The Logic AND &= does work, but variables are not strictly binary so you can get decimal results which makes it easier for me to just drop this for now and go old school ... Close this as I don't see a need to continue this discussion... -
Binary values to store status of devices - unable to get &= to work
Jim P replied to Jim P's topic in IoX Program Support
The cookbook is fairly vague about it as well... I guess the driving force for me is having to have eight programs simply to check status of devices... I will keep on chugging though.. -
Binary values to store status of devices - unable to get &= to work
Jim P replied to Jim P's topic in IoX Program Support
I really was just experimenting with the logical & = as identified in the cookbook .. if I have to I can just do the simple =+ or =- methods.. ( it may just be my not remembering my logic training from 50 years ago as well ) In simple terms.. rather than having a separate variable and separate program to identify the status of a device... such as: If device1 turns on then iDevice1 variable = 1 if device1 turns on then iDevice2 variable = 1 .... I was thinking I could do something like this: If device1 turns on then iBinaryVariable &= 1 if device2 turns on then iBinaryVariable &= 10 ... device3 the iBinaryVariable &= 100 And for device off status .... iBinaryVariable &= -1 ... , - 10 , -100 etc.. So I could verify many devices status using a single variable ... I haven't worked out using a single program to determine device status by checking bit status... 1011 = bit 4 device on, bit 2 device on, bit 1 device on ... I have no real justification for doing it this way, but it is a good training for me -
From the ' Cookbook ' And(binary) $x&=a If 'LivingRoomLight' Status is On Then $iblights &= 100 Else $iblights &= -100 Doesn't work ? I am basically wanting to have a variable represent the status of 4 or more lights so: given iBLights variable If device1 is switched on then add 1 to iBLIghts if device2 is switched on the add 10 to iBlights With applicable if device1 is switched off the add -1 to iBLights etc... Any ideas as what I am doing wrong?
-
You should be able to reset these devices to factory settings and still use them as normal manual switches.. This might save you some work.. Should a switch not work after this then pursue replacement. You should be able to tell what switches you have by removing the switch cover plate if you can't tell. Those that look like light switches with a small white led on the bottom may be locked up and by pulling the led cover out an 1/8 inch or so then pushing it back may allow it to function again. If you want to automate I have a ISY 994 that works that you can have for the price of shipping. You would need to purchase a PLM module to use it though.. The 994 is no longer supported, but for a simple home automation controller should work for you.
-
Smart Plug,DOGAIN Zigbee Smart Plugs Outlet Works with ST and Echo Plus Hub Voice Control Compatible with Alexa and The Google Assistant (Hub Required)(2 Pack) https://www.amazon.com/DOGAIN-SmartThings-Compatible-Assistant-Required/dp/B08G46WWBB/ref=sr_1_1_pp?keywords=smart+plug&qid=1699711279&s=lamps-light&sr=1-1 Works well.. I do have an issue where this plug is turning off every 40 minutes or so. I do not have any programs that turn it off... I created a sVariable to flag when it turned off and to immediately turn it back on until I can figure out why it is turning off.. I linked my second switch to see if it also turns off after 40 minutes or so and it does. My program fix works to ' keep it on ' so I am ok with this. I selected these because of their size being small enough to plug in to an outlet on my porch. This outlet has the spring loaded covers you have to open in order to plug a device in to them, but since mine are far enough under the porch roof they are protected from all but a rain storm with heavy winds blowing directly toward my front door.
-
Thank You all , the 3.2.2 fixed it all !!!!
-
I tried ping and the install failed as before. Is there a way to clear everything and simply start over ? I only have two node servers installed and it would not be a big deal to start from scratch.
-
I tried again this may be usefull ... PG3x Version 3.2.1 Status: Connected Frontend Version: 3.2.1 IoX Version: 5.6.4 Connected Uptime: 2 Hour(s) 18 Minute(s) 31 Second(s) (c) 2023 UDI Getting Started 8/17/2023, 17:24:21 [pg3] info: [00:0d:b9:59:3a:d0_4] :: Creating Nodeserver 'Ring' 8/17/2023, 17:24:21 [pg3] warn: Store entry for devMode is invalid: null 8/17/2023, 17:24:21 [pg3] error: createNS: SqliteError: table nodeserver has no column named requestId at Database.prepare (/var/polyglot/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21) at Object.add (/var/polyglot/node_modules/@universaldevices/pg3x/lib/models/nodeserver.js:287:6) at Object.createNs (/var/polyglot/node_modules/@universaldevices/pg3x/lib/services/nodeservers.js:177:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
-
When I attempt to install the Ring Node Server I get a red error that states: Node Server Install of undefined failed with message: table nodeserver has no column named requestid ???
-
I set a variable.. ivacation = 1 after 12 hours of no motion detected on any of my motion detectors. My Vacation folder in enabled when ever ivacation = 1 . Pretty simple and works well.
-
Sometimes after an update. I could not ping my polisy by name until I used the full name.. polisy.whatever ... I added my network name in my router setting for domain and now I can ping polisy.whaterver with no issues.
-
Ok thanks... I will investigate this... What I was thinking is that if a program's if statements are false and there is no else clause, then there would be minimal utilization of cpu process time. So along those lines if the From To clause was false with no else actions then that program would use little resources... I will do more investigating...
-
I would think that if the schedule time range is not true that nothing should run???? Since it is an IF AND statement doesn't both have to be true for the THEN section to run??? So I can't see how the THEN section should ever run if the time was not between 10PM and 5 AM the next day???
-
This program ran at 7:05 AM this morning. LRLAMPOFF10 - [ID 003B][Parent 0057] If From 10:00:00PM To 5:00:00AM (next day) And 'Living Room Lamp' Status is On Then Wait 10 minutes Set 'Living Room Lamp' Off Else - No Actions - (To add one, press 'Action') SUMMARY shows it ran at 07:05 AM Status is false
-
Schedule as trigger for program?
Jim P replied to Jim P's topic in New user? Having trouble? Start here
Thanks larryllix I seldom have a need to use parenthesis .. and frankly forgot they were available .... The great thing about getting old is that you get the learn so much every day .... even if you learned it yesterday !!!!