Everything posted by jfai
-
Subroutines with no Call Stack - how?
These kinds of discussions pop up every now and then. The ISY programming language is not a general-purpose procedural language. Rather, the collection of ISY programs implement a finite state machine, where the IF conditions trigger state transitions and the statements in programs describe the actions when a transition is triggered.
-
Program execution order in IoX
The undefined order of execution of lines of the Then/Else clauses would cause a support nightmare. I have never noticed any ISY program behaving like this, nor did I notice any documentation stating that the execution order of lines of Then/Else is undefined.😯
-
Program execution order in IoX
A statement like "the order of execution is not defined" in the documentation of systems is common in event queue implementations (and multi-threaded processing implementations). If the programmer writes a finite state machine (IoX programs basically form a finite state machine) where the same event causes two different outcomes, that state machine is in fact a pseudo-random generator. To make the outcome deterministic, something else (another condition) needs to control the outcome. This additional condition could be specific to the system implementation (and therefore obscure) or explicitly added to the finite state machine by the programmer. Personally, I prefer to have full control over the finite state machine, so that it works independent of any particular implementation.
-
PG3 ELK Node server 3.10.15
Dev version -> alpha release -> beta release (to select users) -> production release.
-
Automating Somfy blinds with URTSII need RS-232???? Or Bond??
For the range tests with the Bond Pro, I used the local API with Network Resources. I would have added the Bond local API to my Node JS server and replace the Somfy MyLinks, but we sold the house before I got the chance.
-
Automating Somfy blinds with URTSII need RS-232???? Or Bond??
No, I'm not using the node server.
-
Automating Somfy blinds with URTSII need RS-232???? Or Bond??
I'd recommend the Bond (Pro) bridge for RTS motors - hands down. Range was enough for ~60 ft in a single-story house from one end of the house to the other. It would most likely reach further. Note: I have no first-hand experience with the Z-Wave motors.
-
Anyone use Zwave device thermostat to control underfloor electric heating? Like in a bath room
Replace the non-GFCI breaker with a GFCI breaker. You also need to ensure that the floor covering temperature does not exceed the covering-specific maximum temperature, e.g. 82 F for anything but tiles/stone (104 F). This requires a floor sensor embedded in the heater substrate. There aren't many thermostats that have inputs for floor temperature probes.
-
Ring Node server
I've been using Ring cameras to detect motion and doorbell activation long before the Ring Node server was created on Polyglot Cloud. This method still works. 1. Add the “Ring” skill to Alexa and say “Alexa, discover devices”. This will list all Ring cameras and the video doorbells as Alexa devices. 2. Using the ISY Portal, expose an ISY state variable to Alexa as a light. An Alexa light device can be set to a specific percentage value, which sets the state variable to the percentage value. 3. Use Alexa routines to set the percentage value of the light device corresponding to actions on the cameras (motion at camera X, doorbell button press, ...). 4. Write ISY programs that use the state variable as trigger.
-
Netgear Armor hates Polisy
Remove all port-forwarding rules from the router. Incoming WAN IP traffic should not reach your Polisy.
-
Somfy Node Server
Is there any information about the recommended distance from the bridge device to a Somfy RTS motor?
-
Z-Wave Node ID issue
It could be done using alias-to-ZID mapping. In your ISY programs, you would only use the aliases for Z-Wave devices. The ISY would use the mapping table to translate between the alias and the Z-Wave id. Then, when a device is assigned a new id, you would need to change the id in the mapping table as an additional administration step, leaving the alias the same.
-
100 Packages to Update?
I see ... you're running Polyglot version 3 (alpha). My comments apply to version 2.
-
100 Packages to Update?
Open the Dashboard from the Polisy webserver, e.g. https://192.168.0.18/dashboard. Then select System > Update Polisy. This works with all major web browsers (well, I haven't tested all of them, but I know it works with Edge and Samsung Internet. The U/I was implemented with Angular, so it should work with all major web browsers)
-
100 Packages to Update?
If your Polisy has fairly recent FreeBSD and udx versions (less than 9 months old or so), my experience is that the "Update Polisy" menu entry in the Polisy UI is working well. The update script will do a reboot as necessary, otherwise only the updated services are restarted. If you want to know what's going on during the update, you can follow the system log. SSH into Polisy, then: tail -n 50 -f /var/log/messages Note: The SSH connection will be terminated when the Polisy is rebooted.
-
Using Disabled Program Status for UD Mobile Node
Hopefully, a disabled program remains out of the evaluation queue. I am disabling programs because I want them ignored completely. I think what Jimbo is requesting should be done with a different program calculation mode, something meaning "evaluating but not executing". So we'd have "enabled", "disabled", "evaluating".
-
problem getting a simple program to work
Great - but why are you testing 15:xx times when your ISY thinks it's after 16:00?
-
problem getting a simple program to work
OK, there is something else going on. I noticed on your screen shot, that your ISY time is 16:14:08, yet you're testing with times in the 15th hour. Are your time zone settings correct, i.e., is the local time shown at the top of the Admin Console window correct?
-
problem getting a simple program to work
Did you ensure that the ON time is in the future when you pressed the 'Save Changes' button? If the ON time has already passed when you save the program, nothing will happen.
-
problem getting a simple program to work
Did you save the program? In the screen shot, it doesn't look like you pressed the 'Saved Changes' button...
-
problem getting a simple program to work
Yes, it should have turned on exactly at the specified time (it won't turn on once the clock time has passed). You did click Save Changes, right? Can you turn the device on from the Main tab by selecting the device in the list and click the ON or FAST ON button? (the exact button label depends on the specific device). You don't need two programs: you can turn it on in the Then branch and turn it off in the Else branch as per my first response. But first, ensure that you can turn the device on and off using the Admin Console::Main tab.
-
problem getting a simple program to work
That program will turn the air bubbler on at 13:35 (only if the device status is off). After that, only the Else branch will evaluate. Suggestions: 1. Remove the status check - it's superfluous. If the device status is already ON, turning on again doesn't matter. 2. You need to add a TURN OFF command to the Else branch. Else will execute at 13:40.
-
ISY 5.1.1 Is Now Available
Today is not the day I've set aside time for arguments with my ISY friends. Suffice to say that byte-order has to be considered whenever data is serialized to an external transport, like a file or network socket. It is always best to use one of the standard network byte-orders when writing and reading. But you have to choose a byte order on the transport medium and stick to it. There are tons of discussions about this subject, e.g., When does Endianness become a factor?
-
ISY 5.1.1 Is Now Available
Actually, if you're exchanging binary data, there's nothing any higher-level language compiler can do to help you with the endian conversion...
-
Can’t connect to Polisy on iPad?
Angular's browser compatibility Angular supports the two most recent major versions of iOS and Safari.