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
11thNuneaton 0
Hi all, I have a number of LUA scenes that take action when a thermostat is <= a value. I want to be able to easily change the value for temperature without the need to edit all the scenes. To do this I thought I could use a global variable with tonumber. However I cannot get any syntax to work and allow the scene to save. Can anyone advise me on whether this is possible please. I’m very new to this.
This is the criteria where I want to replace the 18 with a variable that I can maintain in global variables. I created a variable called MHtempWD with a value of 18. I tried to replace the value = 18 with value = tonumber (hub.getGlobalVariable("MHtempWD"'))
Please login or register to see this image.
/monthly_2025_09/image.png.9e225d15b048630898a1ccfcb94524ff.png" />4 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.