PLEG: use House Mode PLugin as device property

Hello,

I have a PLEG scene which I want to be runned only when House Mode is “Home”.

I have created device property “RezimDenNoc” which reads variable HMode which differs for each house mode. This variable is equal 1 when House Mode is in “Home” state and PLEG read this value correctly as 1 when in Home mode. So I have created Condition in PLEG called “Den” which should be true if “RezimDenNoc == 1”. But it is never true even false on Condition screen - see screenshots.

What am I missing? Or how could I in different way restrict this PLEG scene to only Home mode?

Update: I have discoverd that there is Hous Mode natively in PLEG Logic Inputs, so I have created variable “Den” under House Mode and set it to “Home” and added it to the Conditions, I will see, if it will work, because there is nothing in columns called value, Last true or Last false for “Den” variable.

Thanks!

So it does not work, I have created condition “Day” which is true when House Modes in Logic inputs is “Home”, perfect. Then I have condition for luminance in my room amd third condition for movement.

My final condition for triggering action is programmed as “Day AND Luminance AND Movement”. If Luminance, Movement and even Day are true, but final condition is false. I don’t know what is wrong. Thanks for help!

Please see screenshot - all 3 input conditions are true, but the final (second row) condition which consists of those 3 conditions connected with “AND” is false?

Solved: Vera just needed to be rebooted.

Q: Do I need to reboot completely Vera after each PLEG programming or can I somehow just restart PLEG?

I typically reload LUA: