Jump to content

zerop

Members
  • Posts

    186
  • Joined

  • Last visited

Recent Profile Visitors

1143 profile views

zerop's Achievements

Member

Member (3/6)

9

Reputation

  1. Apologies. I'm using a rest command from Home Assistant to run a program on the ISY. That ISY program is what actually does the adjusting of the screen. I'd like to adjust the scene directly from Home Assistant and therefore not require a program on the ISY. So yes, I will still need the ISY but I don't want the ISY to be running/needing any programs.
  2. I've been using my ISY for over 10 years now and it has been my main automation system for that entire time. I'm transitioning over to Home Assistant (HA) Yellow. Most of my devices are still Insteon so I'm keeping my ISY but all the automation will be done through HA. One thing I'm having trouble with doing solely in HA and am looking for some help. Any ideas if what I'm trying to do is possible? I have a bathroom light switch called MasBathLight and an 8-button keypad called BedsideKeypad. I have a scene called MasterBathroomLights. In the scene I have both MasBathLight and BedsideKeypad as controllers. This enables me to turn on/off the bathroom light using MasBathLight which is a switch right as you walk into the bathroom, or using BedsideKeypad which is located right next to the bed. What I would like to do is when someone goes to sleep, adjust it so that whenever someone uses either switch (MasBathLight or BedsideKeypad) to turn on the lights, I'd like the lights to turn on to 15% only. To do this I need to adjust the following: In the scene MasterBathroomLights, adjust controller device MasBathLight for MasBathLight on-level of 15% and also in the same scene adjust controller device BedsideKeypad for MasBathLight on-level to 15% (MasBathLight is the load). The actual on-level of the scene MasterBathroomLights does not need to be adjusted as I never call that scene from anything. Here's what my program currently in the ISY looks like to do this. In 'MasBathLight' Set 'MasBathLight' to 15% in 0.1 seconds, 1 retry In 'BedsideKeypad' Set 'MasBathLight' to 15% in 0.1 seconds, 1 retry Any ideas how I can make these adjustments using an API rest command? I've found several examples online but none of them have worked. Some include using the node of the scene and the node of the controller such as rest/links/groups/<scene_node_id>/controllers/<controller_node_id>/responders/<responder_node_id>/update/cmd/DON/<on-level> or /rest/scenes/adjust/[controller_node_address]/[responder_node_address]/[level] My current work-around is that I have a program in my ISY to do the adjustment that I need and I use HA to call that program using an API Rest command.
  3. Just wanted to bump this up to the top. Anyone?
  4. Is there a way to +1 to a variable using the rest command? I use the following to set the variable to 2 and everything works fine. /rest/vars/set/1/18/2 I'd like to be able to increment the variable using the rest command. My current workaround is to have a program in the ISY that increments the variable ($VariableName += 1) in the "Then" part of a program and to use the rest command to run the program (/rest/programs/<programID>/runThen). I'd like to skip the program part. I've tried /rest/vars/set/1/18/+1 but that doesn't work.
  5. Why?
  6. Yes, it runs false for values of 0.500 and greater. That is exactly how I've fixed the problem. I set a variable equal to 'DarkSky / Forecast 0' Rain Today Inches first and then I run my other programs dependent upon that variable value rather than directly from the 'DarkSky / Forecast 0' Rain Today Inches node value.
  7. I did some testing by running (if) this program manually and changed the Rain Today is X.XXX Inches, 0.1" at a time. It ran true for all values between 0" - 0.499". RainL Copy Copy Copy - [ID 00F0][Parent 0069] If 'DarkSky / Forecast 0' Rain Today is 0.000 Inches Then $RainTodayAmount = 'DarkSky / Forecast 0' Rain Today Inches Else - No Actions - (To add one, press 'Action') I then tried this program and it ran true. RainL Copy Copy Copy Copy - [ID 00F1][Parent 0069] If 'DarkSky / Forecast 0' Rain Today is 0.000 Inches And 'DarkSky / Forecast 0' Rain Today >= 0.250 Inches Then $RainTodayAmount = 'DarkSky / Forecast 0' Rain Today Inches Else - No Actions - (To add one, press 'Action') But now I'm confused why this one ran false as the values used in this program were true in the first program above. RainLL Copy Copy - [ID 00EE][Parent 0069] If 'DarkSky / Forecast 0' Rain Today >= 0.250 Inches And 'DarkSky / Forecast 0' Rain Today < 0.400 Inches Then $RainTodayAmount = 'DarkSky / Forecast 0' Rain Today Inches Else - No Actions - (To add one, press 'Action')
  8. Yes, and vice versa. I tried both. One program that correctly runs false, changed only the values in the condition to equal the program that runs true and now that programs also runs true. I did it the other way also. For the program that incorrectly runs true, I changed only the values in the condition to equal the program that runs false and now it runs false. Maybe I'll start narrowing the range to see if I can figure out what the amount of rain fall it thinks is happening.
  9. Interestingly I think I had this same issue when I was using the OpenWeatherMap node before I tarted using the DarkSky node. I only used the OpenWeatherMap node for 2 days before it was decided it wasn't working and someone stated they would pull it from the PolyGlot Cloud store so I didn't get a chance to look into it further.
  10. There must be a bug somewhere because when I run (if) the program manually it runs true but yet the $RainAmountToday variable gets set to 0.000 That's just not possible. RainL - [ID 00D1][Parent 0119] If 'DarkSky / Forecast 0' Rain Today >= 0.400 Inches And 'DarkSky / Forecast 0' Rain Today < 0.550 Inches Then ScoreSet = 400 ScoreSubtract = 300 $RainToday = 1 $RainTodayAmount = 'DarkSky / Forecast 0' Rain Today Inches Else - No Actions - (To add one, press 'Action')
  11. All seven programs are in a folder, the folder has a state variable set to "0" usually. At the specified time the folder state variable is set to "1" and all 7 programs called to run (if) then the folder state variable is set back to "0" again. There is nothing else calling this program, I've check using the find/search. The program last run is consistent with when it is called to run as well as the $RainTodayAmount variable has been set to 0.00 at that same program call time. The $RainTodayAmount variable I put in there just for testing so it doesn't have an automatic reset. I have been manually adjusting it to different values each day and see when it changes and what it changes too.
  12. I don't have a program for 0" of rain so no. The seven programs I have are only if there IS rain I subtract some points from a variable. If there's no rain then I add points dependent upon that day's weather conditions.
  13. Yes, all the seven programs with different rainfall ranges has this line at the end.
  14. I've recently installed the DarkSky node for my new weather info as the climate module will be going away soon. It seems to be working fine. I have a series of programs that run late each night to check how much rain, if any there was that day. Depending on how much rain there was it adjusts a watering variable. Here's one of the programs (the one that is causing me trouble). RainL - [ID 00D1][Parent 0119] If 'DarkSky / Forecast 0' Rain Today >= 0.400 Inches And 'DarkSky / Forecast 0' Rain Today < 0.550 Inches Then ScoreSet = 400 ScoreSubtract = 300 $RainToday = 1 $RainTodayAmount = 'DarkSky / Forecast 0' Rain Today Inches Else - No Actions - (To add one, press 'Action') I have 7 programs exactly like this one but the range of rainfall is different for each. 0" - 0.1" another for 0.1" - 0.25" another for 0.25" - 0.4", etc. At a specific time at night I run (if) all 7 programs. There is no overlap in the conditions (see greater than equal to in example above) so only one of them should run true. For the past couple of nights this one program (example above) has run true even though there has been no rain. I even included the variable $RainTodayAmount just as a test to see what the ISY thinks the rain amount was. If this program runs true then the variable $RainTodayAmount should be between 0.4 and 0.55. I checked this morning and the variable is "0.00". I set the accuracy to 0.00. I tried deleting the program and recreating it from scratch. Same result. I searched all my other programs to make sure I wasn't calling this program from somewhere else...nothing. Why is this running true? If I run (if) it manually now it runs true even with the following weather info (see attached). ISY994i v.5.0.16
  15. zerop

    OpenWeatherMap Help

    On your advice I started over and I did not do step 4. I have weather data but it doesn't say if it's online. The fact that it's got data makes me think it is online. But I don't have any forecast info. Looks like just today's info. What does "Rain 1/3hr" and "Snow 1/3hr" mean?
×
×
  • Create New...