Search found 3 matches
- Friday 09 June 2017 15:12
- Forum: LUA
- Topic: Conditional timers and manual override
- Replies: 2
- Views: 1603
Re: Conditional timers and manual override
The timers in the GUI are great as long as you don't need conditional timers. (Manual override works fine.) In my hot water heater example, it is impossible to have the boiler always on when guests are home (when a virtual switch is turned on) using only GUI timers. It also allow to edit all the ...
- Saturday 03 June 2017 21:59
- Forum: LUA
- Topic: Conditional timers and manual override
- Replies: 2
- Views: 1603
Conditional timers and manual override
Hello, Here is script used to make timers that can change dynamically and be overridden manually (until the next timer occurence.) Take this snippet for instance : {['device'] = 'Boiler Parents', ['schedule'] = { {['value'] = 'On', ['condition'] = presence({'Invités'})}, {['value'] = 'On' ...
- Saturday 11 February 2017 11:08
- Forum: Other questions and discussions
- Topic: Automated on/off with block script help!
- Replies: 2
- Views: 925
Re: Automated on/off with block script help!
Hello, It seems to me that the last two blocks are never executed. I don't use Blocky, but as a general rule in programming, an if-elseif-elseif statement ensures that **at most** one of the conditions is executed, the first that matches. In your case, the condition you highlighted would never even ...