SpaceLogic KNX Forum
Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.
Link copied. Please paste this link to share this article on your social media post.
hello
Script help 🙂
I want to make an action if any objects with a defined tag changed to a specific value.
for example, I want to turn On the fan if any light with a tag bath is on.
best regards,
Link copied. Please paste this link to share this article on your social media post.
Hey Nasser,
maybe the attached one will help. You just need to adapt the "Output" object which is was requested as 8Bit.
Link copied. Please paste this link to share this article on your social media post.
Hey Nasser,
maybe the attached one will help. You just need to adapt the "Output" object which is was requested as 8Bit.
Link copied. Please paste this link to share this article on your social media post.
thank you @Thomas_Rohde direct to the point 🙂
appreciate your help
do you have advanced manual or documents regarding Lua Programming in Spacelynk?
If there ar something more advanced than "AN046_Programming_in_Lua_with_spaceLYnk"
regards,
Link copied. Please paste this link to share this article on your social media post.
IF I want to do more functions like
if all true
or
if all false
regards,
Link copied. Please paste this link to share this article on your social media post.
Hello Nasser,
unfortuntely we do not have any more advanced description/manual/guide/training.
From a certain level it is kind of learning from script to script.
When you struggle at some point feel free to raise your questions here because in this case others can learn/participate too.
Link copied. Please paste this link to share this article on your social media post.
I make a counter to do
if all false
take a look @Thomas_Rohde
count =0
Link copied. Please paste this link to share this article on your social media post.
Hello Nasser,
according to "IF I want to do more functions like, if all true / if all false"
instead of using the tags you can do it as well "by foot". Means you can address all the needed GAs directly within the script.
As shown in the AN046 page 31 (Chapter 3.5). This is maybe a bit more obvious how it is working and to do a kind of bug tracking in case something doesn't work as expected.
Link copied. Please paste this link to share this article on your social media post.
Hey Nasser,
interesting approach!
What do you think about just changig one line of the original script?
-- When one of them is true sent defined 8BitValue >>>>> When one of them is true sent not defined 8BitValue
if OneValueTrue then >>>>> if OneValueTrue == false then
So there are many ways to walk 😉
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.