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 whether you accept or reject these cookies being set.

Multistate value
#1
Hi,

Can someone tell me what datatype I have to use for multistate value?


Reply
#2
Use 1-byte unsigned with Custom values to map numeric value to text.
Reply
#3
(25.03.2021, 08:37)admin Wrote: Use 1-byte unsigned with Custom values to map numeric value to text.

Can you please show in an example?
Reply
#4
See this: https://forum.logicmachine.net/showthrea...4#pid17624
Reply
#5
(25.03.2021, 08:45)admin Wrote: See this: https://forum.logicmachine.net/showthrea...4#pid17624

Hi,

I have tried this, but this doesn't work.
When I change value in LM it doesn't change for the device.
Reply
#6
Why are you writing multiple values one after one?
Keep only one write and replace value = 1 with value = event.getvalue() so you actually write the current object value not a fixed value.
Reply
#7
(25.03.2021, 10:56)admin Wrote: Why are you writing multiple values one after one?
Keep only one write and replace value = 1 with value = event.getvalue() so you actually write the current object value not a fixed value.

Because I am new with this Lua scripting, that is why Wink
Thank you, this helped
Reply


Forum Jump: