Closed jimboca closed 1 year ago
The node export is bi-directional:
We send a ‘pc’ (lowercase) X10 message to Elk when the status of the node changes (i.e. whenever ST changes for the node)
When we receive a ‘PC’ (uppercase) message from Elk, we send a DON or DOF to the matching node (if there is one) depending on the lightLevel in the PC command o If the 4th value in the PC message (the ‘transaction ID’) is 10 then we do not send a command because it is just a status response from Elk. o We do NOT send the command if the target node has an ST value and it would be different than what the command would be sending (i.e. if the command is DON 100 and the node ST value = 100 then the DON would not be sent)
Here is an example of an Elk export file (in the ISY the file is always /CONF/ELKXPRT.XML):
id – Maps to an X10 address (e.g. id=3 is “A03”)
name – The address of an ISY node or group
This is the function we use to convert an id to an X10 address:
/**
@return True if successful, False if ix not in valid range of 1..256 / bool udElkConvertToElkX10Id(int elkId, char elkX10Id) { if (elkId < 1 || elkId > 256 || elkX10Id == NULL) { if (elkX10Id) *elkX10Id = '\0'; return false; }
char hc = ((elkId - 1) / 16) + 'A'; int uc = ((elkId-1) % 16) + 1; sprintf(elkX10Id,"%c%2.2d",hc,uc); return true; }
@mkohanim How do you determine which "Lights" get put in the export file? Since there is a limit of 256 won't some people hit that limit?
@Jimbo @.***>
In the Admin Console, the customers can pick and choose what gets exported.
With kind regards,
Michel Kohanim CEO
(p) 818.631.0333 http://www.universal-devices.comhttp://www.universal-devices.com/
From: Jimbo.Automates @.> Sent: Sunday, September 25, 2022 3:19 PM To: UniversalDevicesInc-PG3/udi-poly-ELK @.> Cc: Michel Kohanim @.>; Mention @.> Subject: Re: [UniversalDevicesInc-PG3/udi-poly-ELK] Support ELK Export (Issue #67)
@mkohanimhttps://github.com/mkohanim How do you determine which "Lights" get put in the export file? Since there is a limit of 256 won't some people hit that limit?
— Reply to this email directly, view it on GitHubhttps://github.com/UniversalDevicesInc-PG3/udi-poly-ELK/issues/67#issuecomment-1257290987, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADMVJPLBWUELAKB2B4DOXRDWADFURANCNFSM5L5DQNFQ. You are receiving this because you were mentioned.Message ID: @.**@.>>
@mkohanim Thanks, yes, I just found it. Can we add a new property on a node similar to the "Spoken" property? Like ElkId ? Otherwise I would have to show every device on the NS config page and allow user to set a ID, I can't do something as fancy as the Java page to add/remove devices. Or I could just allow user to manually add a device on the NS config page and use the device id.
@mkohanim Currently the NS takes any "Lights" that are defined in the Elk and creates a "Light" Node on the ISY, so currently the customer could put that light in a scene to control other devices on the ISY. Do you think that would accomplish what is desired?
Including @Chris @.***>. I think it could be as easy as an xml mapping file.
With kind regards,
Michel Kohanim CEO
(p) 818.631.0333 http://www.universal-devices.comhttp://www.universal-devices.com/
From: Jimbo.Automates @.> Sent: Sunday, September 25, 2022 3:39 PM To: UniversalDevicesInc-PG3/udi-poly-ELK @.> Cc: Michel Kohanim @.>; Mention @.> Subject: Re: [UniversalDevicesInc-PG3/udi-poly-ELK] Support ELK Export (Issue #67)
Thanks, yes, I just found it. Can we add a new property on a node similar to the "Spoken" property? Like ElkId ? Otherwise I would have to show every device on the NS config page and allow user to set a ID, I can't do something as fancy as the Java page to add/remove devices. Or I could just allow user to manually add a device on the NS config page and use the device id.
— Reply to this email directly, view it on GitHubhttps://github.com/UniversalDevicesInc-PG3/udi-poly-ELK/issues/67#issuecomment-1257294236, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADMVJPLHETTAW7PX4ZSZTWTWADH7NANCNFSM5L5DQNFQ. You are receiving this because you were mentioned.Message ID: @.**@.>>
Hi Jimbo,
I think having them enter a text file with the list of nodes is not painful. No very many people use this function and they can always use Admin Console | Tools | Topology or /rest/nodes and delete those they don’t need.
With kind regards, Michel Kohanim
From: Jimbo Automates [jimbo.automates@gmail.com](mailto:jimbo.automates@gmail.com) Sent: Wednesday, January 18, 2023 11:02 AM To: Michel Kohanim [michel@universal-devices.com](mailto:michel@universal-devices.com) Subject: Re: FW: [Ticket #20237] Mark Thomas | 994i to eisy migration modules?
Hey Michel,
I need some way to set an ID or something on the nodes so we know which ones to export, otherwise I could have node server config options which force user to enter node addresses in a list, which would be painful?
As @mkohanim said above, I'll look into a txt file, but I have no way to convert a txt file, so likely will have to add custom config params. But then I need a way to export that file from PG3 to read into the ELK, we could store it in the custom config directory and have @bpaauwe add a way to export it?
@mkohanim, can you just add back the Export Lighting to the ISY? That would be the best :)
Can you also attached a full copy of the export file so I have a good example since I don't have an ISY 994 running anymore?
@Jimbo @.***>, it's not that simple as the codebase has completely changed so it's not a simple add back.
With kind regards,
Michel Kohanim
(p) 818.631.0333 http://www.universal-devices.com
From: Jimbo.Automates @.> Sent: Saturday, February 4, 2023 1:25:10 PM To: UniversalDevicesInc-PG3/udi-poly-ELK @.> Cc: Michel Kohanim @.>; Mention @.> Subject: Re: [UniversalDevicesInc-PG3/udi-poly-ELK] Support ELK Export (Issue #67)
@mkohanimhttps://github.com/mkohanim, can you just add back the Export Lighting to the ISY? That would be the best :)
Can you also attached a full copy of the export file so I have a good example since I don't have an ISY 994 running anymore?
— Reply to this email directly, view it on GitHubhttps://github.com/UniversalDevicesInc-PG3/udi-poly-ELK/issues/67#issuecomment-1416853544, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADMVJPN3JQDB3BYISQN4AR3WV3CLNANCNFSM5L5DQNFQ. You are receiving this because you were mentioned.Message ID: @.***>
Ok, bummer, would make it easier for users and me 🙂
I can imagine … I just looked, and the “selective” export requires the ELK module which makes rather impossible to do.
With kind regards,
Michel Kohanim CEO
(p) 818.631.0333 http://www.universal-devices.comhttp://www.universal-devices.com/
From: Jimbo.Automates @.> Sent: Sunday, February 5, 2023 2:26 PM To: UniversalDevicesInc-PG3/udi-poly-ELK @.> Cc: Michel Kohanim @.>; Mention @.> Subject: Re: [UniversalDevicesInc-PG3/udi-poly-ELK] Support ELK Export (Issue #67)
Ok, bummer, would make it easier for users and me 🙂
— Reply to this email directly, view it on GitHubhttps://github.com/UniversalDevicesInc-PG3/udi-poly-ELK/issues/67#issuecomment-1418281697, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADMVJPML3LHHDKX33JPAIZLWWASGRANCNFSM5L5DQNFQ. You are receiving this because you were mentioned.Message ID: @.**@.>>
This feature is of interest to me, I had a few automations in my ELK that were linked to Insteon devices when I was using my 994i. It has been challenging to make them work reliably using the programs on the EISY.
Released as 3.7.0
From: Michel: The main question is whether or not you can translate their commands into ISY commands. In short, the issue is not an export. The issue is converting their direct lighting commands to ISY.