Search found 10 matches

by Tamil112
Monday 03 February 2020 22:09
Forum: Show your projects
Topic: Switch lights based on LUX
Replies: 19
Views: 7697

Re: Switch lights based on LUX

Hi Guys i was using this script for some time, but from today i got the fowolling error: bad argument #1 to 'sub' (string expected, got nil) on the red marked line function timedifference(s) year = string.sub(s, 1, 4) month = string.sub(s, 6, 7) day = string.sub(s, 9, 10) hour = string.sub(s, 12, 13 ...
by Tamil112
Sunday 02 February 2020 19:52
Forum: dzVents
Topic: DZ Vents Light timer Help Please [Solved]
Replies: 41
Views: 5046

Re: DZ Vents Light timer Help Please [Solved]

Okay I have tested it.. It works but when motion is trigger after it was off I goes back to the normal dimlevel.. What I want is when the light is on that the script does not change after a new motion.. Motion is on = light dimlevel 60 on lux level Motion is on = and light is dimlevel and changed ...
by Tamil112
Sunday 02 February 2020 17:35
Forum: dzVents
Topic: DZ Vents Light timer Help Please [Solved]
Replies: 41
Views: 5046

Re: DZ Vents Light timer Help Please [Solved]

Script works,, but after motion is off and motion sensor is triggerd it goes back to the same level as started i would like it be the same as chosen manually even after a motion trigger So when it turns on with motion and lux and when a user decide to dim or brighter manually that the level last ...
by Tamil112
Saturday 01 February 2020 20:44
Forum: dzVents
Topic: DZ Vents Light timer Help Please [Solved]
Replies: 41
Views: 5046

Re: DZ Vents Light timer Help Please [Solved]

Yes that's what I mean I think what he is saying, is if you go into the room and the light comes on say 40%, and you subsequently dim that light to say 20%, when movement is detected the light will come back on at 40%, is there a way to make it come back on at the last dimmed level.. I THINK So when ...
by Tamil112
Saturday 01 February 2020 14:50
Forum: dzVents
Topic: DZ Vents Light timer Help Please [Solved]
Replies: 41
Views: 5046

Re: DZ Vents Light timer Help Please [Solved]

Hi waaren, is there a possibility that when i change de dim level manually that when there is a movement again that the manually chosen dim level stays like this? i tried it do it with the wiki but unfortunately i could not figure this out hope you can help me The wife was on me as soon as i walked ...
by Tamil112
Tuesday 19 November 2019 21:33
Forum: Show your projects
Topic: Switch lights based on LUX
Replies: 19
Views: 7697

Re: Switch lights based on LUX

Never mind i got it working... with motion

another question when turning off lights is it possible it will decrease brightness ( like the philips hue does it with when its working with motion)
by Tamil112
Tuesday 19 November 2019 18:41
Forum: Show your projects
Topic: Switch lights based on LUX
Replies: 19
Views: 7697

Re: Switch lights based on LUX

This scripts works only based on LUX . but i would like to add a Motion sensor also so it will work based on lux and motion so when there is motion and lux is to low then light will turn on and stay active so long the lux is to low and turn of the light when no motion is deteced and lux is to high ...
by Tamil112
Monday 18 November 2019 2:23
Forum: LUA
Topic: Script examples (Lua)
Replies: 138
Views: 154731

Re: Script examples (Lua)

hi i am using this script and i like it al lot!!! only thing i want to do is still alternate my scene even if this script is running? can someone help me implant this in this script? i am newbie( DONT KNOW NOTHING) about LUA hope to hear from you I made these two scripts to turn on the lights in the ...
by Tamil112
Friday 15 November 2019 22:45
Forum: Show your projects
Topic: Switch lights based on LUX
Replies: 19
Views: 7697

Re: Switch lights based on LUX

hi, is it also possible to work. with motion and based on lux ? Hi there, I have made a LUA script to switch my lights based on the light intensity measured by two Fibaro motion sensors. You need two dummy switches "Automatic Light" (in mijn script "Automatisch Licht") and "Home" ("Thuis"). enjoy ...
by Tamil112
Friday 15 November 2019 17:38
Forum: LUA
Topic: Yeelight and Hue lights - use same settings
Replies: 19
Views: 6935

Re: Yeelight and Hue lights - use same settings

Hi,

I tried your script with a yeelight strip and hue strip

i only tested the power on/off function but i think i am doing something wrong. because when turn of the hue the yeelight still stays on
i did not make any virtual switches do i need to make this?

hope to hear from you