Search found 2 matches

by tiberx
Friday 09 November 2018 13:53
Forum: Switches and Scenes
Topic: f.lux style light management
Replies: 3
Views: 945

Re: f.lux style light management

Good idea!
But I guess that the command

Code: Select all

if (currentTime.matchesRule('after sunset') and light.state <> 'Off') then
only works if I turn on/off the bulbs through Domoticz and not by the remote/app, right? Because the bulbs don't send a state change to the box/Domoticz
by tiberx
Saturday 03 November 2018 21:54
Forum: Switches and Scenes
Topic: f.lux style light management
Replies: 3
Views: 945

Re: f.lux style light management

That's how I do it with my milight bulbs: return { on = { timer = { '20 minutes before sunset', '10 minutes before sunset', 'every minute between sunset and 21:30'} }, execute = function(domoticz, roomSwitch) local Time = require('Time') local currentTime = Time() Stunden = os.date("%H",os.time ...