Search found 3 matches

by bellison
Monday 23 January 2017 16:39
Forum: LUA
Topic: global variables like otherdevices, otherdevices_lastupdate and otherdevices_svalues
Replies: 7
Views: 5204

Re: global variables like otherdevices, otherdevices_lastupdate and otherdevices_svalues

i can't tell why it is not working for you, it does for me. test if this is a solution for you. tAllDevicesById = {} tAllDevicesByName = {} function getMoreDeviceInformation() -- by calling this function you can get much more information about a device, eg the number of dim levels --[[ Attributes ...
by bellison
Friday 06 January 2017 23:58
Forum: LUA
Topic: Wake up Light
Replies: 24
Views: 11673

Re: Wake up Light

i just wanted to put a link here to my other post where i published my wake up light code.

with some thinking someone can transform it to a sleep down light as well i guess. i don't need one though..

http://www.domoticz.com/forum/viewtopic ... 12#p112712
by bellison
Friday 06 January 2017 23:43
Forum: LUA
Topic: Script examples (Lua)
Replies: 139
Views: 161706

Re: Script examples (Lua)

Hi, This is my first lua script in 13 years, so there might be things in this script that might be done in an ugly way. The dimming speed is a exponential curve so it will slowly increase the dimmers in the beginning and quickly in the end (i figure that it is probably the best way to wake up) I ...