You see why I'm lostjvandenbroek wrote:But you see the logic in the script? When 'something' from Achterdeur_Open arrives (could just be On every time), it will set Achterdeur to On. If 'something' from Achterdeur_Dicht arrives (could also just be On every time), it will set it to Off. Achterdeur must change it's status, really weird if it doesn't. Are you using the latest beta btw? Because a few days ago there was a little issue, should be fine on latest version.
Also name the lua script something like script_device_justsomethingtotallyrandom.lua and not with the device name in the file name!
Totally agree with you, but it just doesn't work.
I am now on version 3.8203
Filename is totally different.
Edit, And it even puzzles me more, and I quote:
The GUI is right in my opnion when I look at my door and at the stateMy main question still remains:
Why is the state in the GUI different from the state which I call in the scripts.
I cannot get my head around that one.