Jim P
Members-
Posts
70 -
Joined
-
Last visited
Jim P's Achievements
-
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?
-
Are you asking about battery status for z-wave devices?
-
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.