This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

communication between wiser for knx, smartmeter 85A and actuator interra 8Ch
#1
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
Reply
#2
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)
Reply
#3
(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 ?
Reply
#4
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
------------------------------
Ctrl+F5
Reply
#5
Also use grp.checkwrite() instead of grp.write() to avoid sending true or false to the bus over and over again when within range..
Reply
#6
(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')" ?
Reply
#7
if the event script is created on group 0/0/1 then both commands are equal.
------------------------------
Ctrl+F5
Reply
#8
   
(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 ?
Reply
#9
yes, each time your meter will send new value then the script will run. You can test it by selecting run script button.
------------------------------
Ctrl+F5
Reply
#10
Now i run script with infinite loop and i don't know how to stop it
Reply
#11
Disable script and reboot lm. Do not write to the same group which is triggering the script
------------------------------
Ctrl+F5
Reply
#12
Thanks
Reply
#13
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 ?
Reply
#14
Use storage or virtual group.
------------------------------
Ctrl+F5
Reply
#15
Please, can you be more explicit ?
Reply
#16
Click on Storage in script helpers.
------------------------------
Ctrl+F5
Reply
#17
Thanks
how to proceed if i want to talk with an solar inventer ?
Reply
#18
I mean, i want to send and receive data packet with a solar energy system using modbus

Morning everyone
Reply


Forum Jump: