Page 4 of 6

Re: Easy Scripting App - Documentation/Example

Posted: 31 May 2020 23:19
by ridewithstyle
Hey there,

there is an app called valueovertaker, which does exactly what you are are looking for.

rws

Re: Easy Scripting App - Documentation/Example

Posted: 01 Jun 2020 00:51
by PoltoS
If you have two such scripts for both of the dimmers, it is an indirect loop.

18 changes => 5 is set to the same value and 5 is now changed => 18 is set to the same value,....

Re: Easy Scripting App - Documentation/Example

Posted: 01 Jun 2020 17:10
by Xan
ridewithstyle wrote:
31 May 2020 23:19
Hey there,

there is an app called valueovertaker, which does exactly what you are are looking for.

rws
That's perfect, thank you! I searched for "bind", "master", "slave", "entangle", "attach", and probably others. It looks like the author's first language is not English: I wouldn't use the phrase "overtaking" to mean this. Maybe "taking over" would apply. But it would be nice if some of those key words could end up in the description.

Re: Easy Scripting App - Documentation/Example

Posted: 01 Jun 2020 17:10
by Xan
PoltoS wrote:
01 Jun 2020 00:51
If you have two such scripts for both of the dimmers, it is an indirect loop.

18 changes => 5 is set to the same value and 5 is now changed => 18 is set to the same value,....
Well sure, that would be a loop. But I don't have that. Just the one script. It seems that it isn't possible to fetch the value of a dimmer in an event triggered by that dimmer.

Re: Easy Scripting App - Documentation/Example

Posted: 01 Jun 2020 18:50
by ridewithstyle
Xan wrote:
01 Jun 2020 17:10
ridewithstyle wrote:
31 May 2020 23:19
Hey there,

there is an app called valueovertaker, which does exactly what you are are looking for.

rws
That's perfect, thank you! I searched for "bind", "master", "slave", "entangle", "attach", and probably others. It looks like the author's first language is not English: I wouldn't use the phrase "overtaking" to mean this. Maybe "taking over" would apply. But it would be nice if some of those key words could end up in the description.
I set up a master dimmer as dummy device and then used value overtaker to muliply the settings to all instances. That way I don't have to worry about which device is master and which is not

Re: Easy Scripting App - Documentation/Example

Posted: 11 Oct 2020 22:44
by ridewithstyle
Hi there,

I just ran into an issue with triggering a script.

### ZWayVDev_zway_89-0-49-1 as temperature input trigger works fine. If I use ### ZWayVDev_zway_105-0-49-1, the script doesn't get triggered. I put both triggers into the script and no matter what I do, I can't get the 105 Trigger to work.

Any ideas? Is there a problem with three digit node ids?

Thanks and best regards,

rws

Re: Easy Scripting App - Documentation/Example

Posted: 13 Oct 2020 15:42
by ridewithstyle
update: ok, it's not the three digits, It tried to hook onto another sensor (ID104) to check if the script gets triggered and it does, triggering the sensor ID102 does not. I am out of ideas

Code: Select all

[2020-10-13 14:24:42.715] [I] [core] ---  ZWayVDev_zway_102-0-49-1 performCommand processing: {"0":"update","1":{}}
[2020-10-13 14:24:42.716] [I] [zway] Adding job: SensorMultilevel V5 Get
[2020-10-13 14:24:42.726] [D] [zway] SENDING (cb 0x43): ( 01 0B 00 13 66 04 31 04 01 00 05 43 F7 )
[2020-10-13 14:24:42.729] [D] [zway] RECEIVED ACK
[2020-10-13 14:24:42.732] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2020-10-13 14:24:42.733] [D] [zway] SENT ACK
[2020-10-13 14:24:42.733] [D] [zway] Delivered to Z-Wave stack
[2020-10-13 14:24:44.272] [D] [zway] RECEIVED: ( 01 18 00 13 43 00 00 9A 02 C4 7F 7F 7F 7F 01 01 03 53 1C 00 00 02 02 1C 66 DD )
[2020-10-13 14:24:44.273] [D] [zway] SENT ACK
[2020-10-13 14:24:44.273] [I] [zway] Job 0x13 (SensorMultilevel V5 Get): Delivered
[2020-10-13 14:24:44.273] [D] [zway] SendData Response with callback 0x43 received: received by recipient
[2020-10-13 14:24:44.273] [D] [zway] SETDATA devices.102.data.lastSendInternal = **********
[2020-10-13 14:24:44.273] [D] [zway] SETDATA devices.102.data.lastSend = 14264042 (0x00d9a6ea)
[2020-10-13 14:24:44.274] [D] [zway] Job 0x13 (SensorMultilevel V5 Get): success
[2020-10-13 14:24:44.274] [I] [zway] Waiting for job reply: SensorMultilevel V5 Get
[2020-10-13 14:24:44.346] [D] [zway] RECEIVED: ( 01 11 00 04 00 66 06 31 05 01 42 08 27 C4 00 02 1C 53 5B )
[2020-10-13 14:24:44.346] [D] [zway] SENT ACK
[2020-10-13 14:24:44.346] [D] [zway] SETDATA devices.102.data.lastReceived = 0 (0x00000000)
[2020-10-13 14:24:44.346] [D] [zway] Received reply on job (SensorMultilevel V5 Get)
[2020-10-13 14:24:44.347] [D] [zway] SETDATA devices.102.instances.0.commandClasses.49.data.1.deviceScale = 0 (0x00000000)
[2020-10-13 14:24:44.349] [D] [zway] SETDATA devices.102.instances.0.commandClasses.49.data.1.scaleString = "°C"
[2020-10-13 14:24:44.349] [D] [zway] SETDATA devices.102.instances.0.commandClasses.49.data.1.val = 20.870001
[2020-10-13 14:24:44.349] [D] [zway] SETDATA devices.102.instances.0.commandClasses.49.data.1 = Empty
[2020-10-13 14:24:46.455] [D] [zway] Job 0x13: deleted from queue
[2020-10-13 14:25:02.053] [D] [zway] Job 0x3b: deleted from queue
[2020-10-13 14:25:11.361] [I] [zway] Adding job: Get background noise level
[2020-10-13 14:25:11.370] [D] [zway] SENDING: ( 01 03 00 3B C7 )
[2020-10-13 14:25:11.371] [D] [zway] RECEIVED ACK
[2020-10-13 14:25:11.372] [D] [zway] RECEIVED: ( 01 05 01 3B AA AE C4 )
[2020-10-13 14:25:11.372] [D] [zway] SENT ACK
[2020-10-13 14:25:11.372] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel1 = 170 (0x000000aa)
[2020-10-13 14:25:11.372] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel2 = 174 (0x000000ae)
[2020-10-13 14:25:11.372] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel3 = 127 (0x0000007f)
[2020-10-13 14:25:11.372] [I] [zway] Job 0x3b (Get background noise level): RSSI Ch#1: -82 dBm, Ch#2: -82 dBm, Ch#3: invalid
[2020-10-13 14:25:11.372] [D] [zway] Job 0x3b (Get background noise level): success
[2020-10-13 14:25:11.373] [I] [zway] Removing job: Get background noise level
[2020-10-13 14:25:17.472] [I] [core] ---  ZWayVDev_zway_104-0-49-1 performCommand processing: {"0":"update","1":{}}
[2020-10-13 14:25:17.473] [I] [zway] Adding job: SensorMultilevel V5 Get
[2020-10-13 14:25:17.483] [D] [zway] SENDING (cb 0x44): ( 01 0B 00 13 68 04 31 04 01 00 05 44 FE )
[2020-10-13 14:25:17.485] [D] [zway] RECEIVED ACK
[2020-10-13 14:25:17.488] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2020-10-13 14:25:17.489] [D] [zway] SENT ACK
[2020-10-13 14:25:17.489] [D] [zway] Delivered to Z-Wave stack
[2020-10-13 14:25:18.918] [D] [zway] RECEIVED: ( 01 18 00 13 44 00 00 8E 01 CA 7F 7F 7F 7F 01 01 03 1C 00 00 00 02 02 1C 68 9E )
[2020-10-13 14:25:18.918] [D] [zway] SENT ACK
[2020-10-13 14:25:18.918] [I] [zway] Job 0x13 (SensorMultilevel V5 Get): Delivered
[2020-10-13 14:25:18.918] [D] [zway] SendData Response with callback 0x44 received: received by recipient
[2020-10-13 14:25:18.919] [D] [zway] SETDATA devices.104.data.lastSendInternal = **********
[2020-10-13 14:25:18.919] [D] [zway] SETDATA devices.104.data.lastSend = 14267371 (0x00d9b3eb)
[2020-10-13 14:25:18.919] [D] [zway] Job 0x13 (SensorMultilevel V5 Get): success
[2020-10-13 14:25:18.919] [I] [zway] Waiting for job reply: SensorMultilevel V5 Get
[2020-10-13 14:25:18.995] [D] [zway] RECEIVED: ( 01 10 00 04 00 68 06 31 05 01 42 08 7F CA 00 01 1C 52 )
[2020-10-13 14:25:18.995] [D] [zway] SENT ACK
[2020-10-13 14:25:18.995] [D] [zway] SETDATA devices.104.data.lastReceived = 0 (0x00000000)
[2020-10-13 14:25:18.996] [D] [zway] Received reply on job (SensorMultilevel V5 Get)
[2020-10-13 14:25:18.996] [D] [zway] SETDATA devices.104.instances.0.commandClasses.49.data.1.deviceScale = 0 (0x00000000)
[2020-10-13 14:25:18.997] [D] [zway] SETDATA devices.104.instances.0.commandClasses.49.data.1.scaleString = "°C"
[2020-10-13 14:25:18.997] [D] [zway] SETDATA devices.104.instances.0.commandClasses.49.data.1.val = 21.750000
[2020-10-13 14:25:18.997] [D] [zway] SETDATA devices.104.instances.0.commandClasses.49.data.1 = Empty
[2020-10-13 14:25:19.879] [I] [core] Schlafzimmer Thermostat Dad Mode starting <-- easy_scripting
[2020-10-13 14:25:19.881] [I] [core] Schlafzimmer Thermostat Dad Mode exiting
[edit]reboot seems to fix the issue at first, somehow something gets stuck in regular use. Could that be the "loop detection" malfunctioning?

Re: Easy Scripting App - Documentation/Example

Posted: 18 Oct 2020 12:37
by PoltoS
The old loop detection system had no final in try-except-final. So any error blocked work of EasyScripting. Fixed in v3.1.0 and upper

Re: Easy Scripting App - Documentation/Example

Posted: 23 Oct 2020 13:21
by captador
I understand event triggered script, but what if i want to call my easyscript from If-Then app like a scene. Is it only possible via a dummy scene and the script subscribing to it?

Re: Easy Scripting App - Documentation/Example

Posted: 24 Oct 2020 02:45
by PoltoS
Why to to that? You cave Code Device and JS Code app for this. If you want it because you like EasyScripting syntax helpers, yes, a dummy scene will be the solution. We can impove EasyScripting to add a checkbox to create a Dummy Scene right from the EasyScripting. Is it something worth doing?