10-27-2015, 11:17 PM
What exactly is the difference between
and
?
I've seen both in examples. So what does `lamp.state` do in comparison to `lamp`? I assume that switching the state is only switching the GUI element's visual state but not the real state of the device... so this would reset the GUI switch to off but not switch off the lamp itself. If yes, what is it used for?
Thanks in advance.
Code:
IF ... THEN switch DEVICE lamp TO off
Code:
IF ... THEN switch DEVICE lamp.state TO off
I've seen both in examples. So what does `lamp.state` do in comparison to `lamp`? I assume that switching the state is only switching the GUI element's visual state but not the real state of the device... so this would reset the GUI switch to off but not switch off the lamp itself. If yes, what is it used for?
Thanks in advance.