Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
[email protected] 0
Let's say I have thermostat device, main loop queries temperature from the sensor and turns the heater on/off based on the temperature.
Also there is button configured VD that switches temperature control on/off so that if the VD is in off state it would not turn on heater event if the temperature goes down.
on/off state needs to be stored somewhere. I do not like having a global variable for it since it is internal state of VD and it makes sense to keep it private for VD.
But I failed to find any way to set some value from button lua that mainloop lua will have access to...
Edited by [email protected]16 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.