Logic Machine Forum
communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch (/showthread.php?tid=5888)



communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 13.02.2025

Morning everybody
I'm a beginner on wiser for knx. I want to read data sent from smartmeter 85A and then send instructions to an actuator interra 8CH depending on what i received from smartmeter 85A


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - admin - 13.02.2025

If both values are already mapped to group addresses then you need an event script attached to the meter data output group address.

This example will send true (ON) to 1/1/2 when the input value is larger than 100, false (OFF) otherwise.
Code:
value = event.getvalue()

if value > 100 then
  output = true
else
  output = false
end

grp.write('1/1/2', output)



RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 13.02.2025

(13.02.2025, 11:32)admin Wrote: If both values are already mapped to group addresses then you need an event script attached to the meter data output group address.

This example will send true (ON) to 1/1/2 when the input value is larger than 100, false (OFF) otherwise.
Code:
value = event.getvalue()

if value > 100 then
  output = true
else
  output = false
end

grp.write('1/1/2', output)

thanks for the reply

now, i just have programs in ETS application for smartmeter 85A (he give active power measured) and actuator. How to link all of them, so that they can send data each other ?


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Daniel - 13.02.2025

You must import ETS project to LM and then create event based script on your active power object, paste this script and change 1/1/2 to the actuator group


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Erwin van der Zwart - 13.02.2025

Also use grp.checkwrite() instead of grp.write() to avoid sending true or false to the bus over and over again when within range..


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 13.02.2025

(13.02.2025, 11:44)Daniel Wrote: You must import ETS project to LM and then create event based script on your active power object, paste this script and change 1/1/2 to the actuator group

if the group adress linked with smartmeter is '0/0/1', can i change the line "value = event.getvalue()" by "value = grp.getvalue('0/0/1')" ?


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Daniel - 13.02.2025

if the event script is created on group 0/0/1 then both commands are equal.


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 13.02.2025

   
(13.02.2025, 11:44)Daniel Wrote: You must import ETS project to LM and then create event based script on your active power object, paste this script and change 1/1/2 to the actuator group

here is the place to import ETS project ?

(13.02.2025, 13:34)Daniel Wrote: if the event script is created on group 0/0/1 then both commands are equal.

please, what is the next step to run the script ? how can i ensure "Active_power = event.getvalue()" will always read data from smartmeter ?


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Daniel - 13.02.2025

yes, each time your meter will send new value then the script will run. You can test it by selecting run script button.


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 13.02.2025

Now i run script with infinite loop and i don't know how to stop it


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Daniel - 13.02.2025

Disable script and reboot lm. Do not write to the same group which is triggering the script


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 14.02.2025

Thanks


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 18.02.2025

Hello everybody

Is this possible to make one script based event and one another resident, and share one variable in the both ?

I meant, share the same variable in the both ?


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Daniel - 18.02.2025

Use storage or virtual group.


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 18.02.2025

Please, can you be more explicit ?


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Daniel - 18.02.2025

Click on Storage in script helpers.


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 18.02.2025

Thanks
how to proceed if i want to talk with an solar inventer ?


RE: communication between wiser for knx, smartmeter 85A and actuator interra 8Ch - Fistel - 19.02.2025

I mean, i want to send and receive data packet with a solar energy system using modbus

Morning everyone