-
Compare last device update to variable timestamp
Ah yes, I see. Apparently there are two possible values but the eisy-ui does not allow you to choose the second one and defaults to the first So, I was able to use the AC to create the program: This one runs every hour. It doesn't really need to use the intermediate variables, but I used them to make sure it was working right.: Elapsed Time Check - [ID 00AB][Parent 00AA] If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then $System_Unix_Time = [Unix Date/Time (seconds)] $Last_Update_Time = 'YoLink / Motion Crossroad' Last device update Unix Timestamp $Last_Update_State = $System_Unix_Time $Last_Update_State -= $Last_Update_Time And I have another program that triggers when the $Last_Update_State is > the timeout value. I will be fixing the logic so it doesn't trigger on the first assignment. Thanks!
-
Compare last device update to variable timestamp
OK, so I was able to store the system unit time into an integer variable, but no matter what YOLINK device I select, it does not store a value for the last update into the variable - always zero. Is that a bug or am I doing something wrong..
-
Admin Console
Thanks, Guy, that got me access to the directory and I was able to confirm the location./var/isy/FILES/USER/WEB. Now I want to be able to upload the files directly from sftp in VSCODE, so I believe I have two options. 1. change the permissions on that directory using CHMOD so that I can access it without elevated credentials, or 2. remove the password for access using admin ALL=(ALL) NOPASSWD: /usr/libexec/sftp-server Any recommendation or anything I am missing?
-
Admin Console
I tried to access the files by SSH which I think are in the /var/isy/files/user/web directory but I got stopped with permission errors at the /isy directory level. So if there is not going to be an option to manage the user/web files in eisy-ui, how are they accessed using ssh?
-
Admin Console
I have a whole dashboard that is hosted on the web server. I needed to host it there to avoid cross domain scripting errors. I don't mind if it moves to another port, but I would really like it to remain viable. http://192.168.3.14:8080/USER/WEB/HV2.htm#
-
eisy-ui line spacing
OK Thanks, no problem. I can continue to use Stylus to get the compact version I like. For anyone else who is interested, this is my override css. But please don't complain if it breaks anything /* Override row height and CSS variables */ .MuiDataGrid-row { max-height: 24px !important; min-height: 24px !important; height: 24px !important; --height: 24px !important; } /* Adjust cell height and alignment to match */ .MuiDataGrid-cell { max-height: 24px !important; min-height: 24px !important; line-height: 24px !important; }
-
EISY column ajdustment
When you manually adjust the column width that way, another column resizes in the opposite direction in order to keep the entire grid 100% of the screen width. So this is probably not quite the ideal design, although it works well for the initial release. Ideally, you could have an option that sets each column to the largest item width plus some variable gutter width.
-
eisy-ui line spacing
I am getting more comfortable with the new UI - thanks for moving in this direction - I can see it is a lot of work! Under your work in process, I can see you mentioned customizing light and dark themes, etc. Are you also going to give the ability to adjust the line spacing? Right now the 36px spacing is way more than I need. I am currently overriding it using Stylus to 24px. Thanks, Andy
-
Admin Console
I saw the comment about Network Resources coming soon, thanks. But what is the plan for Web Server file transfers. Thanks
-
Compare last device update to variable timestamp
OK, I was trying to figure out how to tell if the last device update for a certain device was older than a certain amount of time. I know I could accomplish something like that by having each event start a program that waited some amount of time but I got to thinking, why can't I just check the device last update and compare it to either the system time or for example a variable unix timestamp. I don't think this works even though you can create an if statement in a program that looks like it should work: LastUpdate - [ID 00AF][Parent 0010] If 'YoLink / Motion Crossroad' Last device update < '$On_Minutes Unix Timestamp' Any ideas? I want for example to run a program at 8 am that will tell me if a device has not had an update in the last 24 hours.
-
Andy P started following Compare last device update to variable timestamp
-
insteon motion sensor
OK, so I assume you have a yolink hub and the yolink app. Go into the app, Settings - Profile - Account - Advanced Settings - User Access Credentials. Hit the + and create a new one, You will need the UAID and Secret Ket that it generates. Then go into the polyglot console and config the yolink plugin using those credentials.
-
Disabled Folders - Please explain
I have a folder called Away Random Lights. It has a condition based on a variable that I set with a keypad button. So when that button is on, the variable is set to 1 and all the programs in the folder are enabled. When I turn that button off, the variable goes to zero and all the programs are disabled. Makes it easy to set random lights as I go out the door and turn them back off when I come back in. Away Random Lights - [ID 0023][Parent 0001] Folder Conditions for 'Away Random Lights' If $State_Random is 1 Then Allow the programs in this folder to run. AND, in direct response to your other question, it is true that if you create a new folder with nothing in it, the right click will show you options for enable and disabled, but when you add a program to the folder, those options disappear. I consider this a bug, frankly. I can't think of any reason an empty folder would be enabled or disabled. Folder status should always be set by the folder conditions.
-
i3 Keypad Programming
I have several of those i3 keypads and went through multiple attempts at doing something logical. Similar I have scenes called bright, normal, cozy and off. In the end, I decided that trying to keep the keypad in sync with which scene was active would never work in a way that would make me happy. So I started over and decided to make the buttons momentary on. Which means when you press the button it sends and on, But then inside the scene, I turn that button off. So it turns on, sets the scene and then turns off. This means I end up with essentially no buttons on except during the moment I am setting the scene, except the load button will always reflect that load if it is controlled by that keypad, so I normally just use the top button to turn that individual light on and off. I know this isn't quite what you asked but maybe spark some idea.
-
After update, device types now end in "F"
OK< thanks, I adjusted the code to strip off the F and everything is working again! Appreciate the response. Thanks, Andy
-
After update, device types now end in "F"
My downstream programming broke and I found the reason is that the device names now have a 'F' after their name, like this - used to be yomotionsens and now it is yomotionsensF for some reason? <node flag="128" nodeDefId="yomotionsensF"> <address>n008_8b4c020013c921</address> <name>Motion Kitchen</name> <family instance="8">10</family> <hint>0.0.0.0</hint> <parent type="3">32793</parent> <type>0.0.0.0</type> <enabled>true</enabled> <deviceClass>0</deviceClass> <wattage>0</wattage> <dcPeriod>0</dcPeriod> <startDelay>0</startDelay> <endDelay>0</endDelay> <pnode>n008_8b4c020013c921</pnode> </node> Also true for <node flag="128" nodeDefId="yovibrasensF"> and <node flag="128" nodeDefId="yoleaksensF"> and <node flag="128" nodeDefId="yothsensF"> But not for <node flag="128" nodeDefId="yodoorsens"> It is not just in the admin console, it is also in the polyglot console Node Name 3 Address NodeDef Primary Node Hint Enabled Is Primary Delete Fan HVAC 1 8b4c0100097447 yovibrasensF 8b4c0100097447 0x00000000 true true
Andy P
Members
-
Joined
-
Last visited