10.06.2018, 18:29
Is it possible to send diffrent values from a 1bit signal compared to the time of day?
different value throughout the day
|
10.06.2018, 18:29
Is it possible to send diffrent values from a 1bit signal compared to the time of day?
10.06.2018, 20:13
(This post was last modified: 10.06.2018, 20:16 by Erwin van der Zwart.)
Hi,
Yes that is possible, but can you describe your task in more detail? BR, Erwin
11.06.2018, 05:55
(10.06.2018, 20:13)Erwin van der Zwart Wrote: Hi, Event based script that sends a value between for example 08-13 another value between 13-14 and so on. Also needs a script that does the same automatically, but that I can start/stop via a bit value or a scene value.
11.06.2018, 21:59
(This post was last modified: 11.06.2018, 21:59 by Erwin van der Zwart.)
Hi,
Try this: Code: now = os.date('*t') Code: if event.getvalue() == true then Erwin
12.06.2018, 19:46
(11.06.2018, 21:59)Erwin van der Zwart Wrote: Hi, Thank you .
16.06.2018, 17:57
(11.06.2018, 21:59)Erwin van der Zwart Wrote: Hi,The first code. Can we do different things with a true value and a false value?
17.06.2018, 10:59
Hi,
We can do whatever you like to do with script, but can you specify your question better? BR, Erwin
18.06.2018, 09:00
(17.06.2018, 10:59)Erwin van der Zwart Wrote: Hi, Sounds good. Event based script that sends a value between for example 08-13 another value between 13-14 and so on. Sends different values with a 1bit true/false
18.06.2018, 09:54
(This post was last modified: 18.06.2018, 09:54 by Erwin van der Zwart.)
Hi,
That is already in the sample i gave you (: BR, Erwin
21.06.2018, 17:40
05.04.2021, 10:03
I want almost do the same.
I want just active the light, only between 5.30 am and 10 am. my question is, is it also possible to do it with hours and minutes? i m sure it is, but im just a beginner, who will convert my Gira Homeserver to the LM.
05.04.2021, 14:00
(05.04.2021, 10:03)Dré Wrote: I want almost do the same. did you try the schedule?
Best Regards,
05.04.2021, 14:54
(05.04.2021, 14:00)khalil Wrote:(05.04.2021, 10:03)Dré Wrote: I want almost do the same. I hope not to use the schedule this time, i want to use the script, for making it happened.
06.04.2021, 05:40
You can convert current time to a number of minutes passed since 0:00 and use it in your calculations. Use this example to check if current time is between 5:30 and 10:00
Code: function tominutes(h, m)
25.04.2021, 15:08
Thank you admin, i wasn't able to try it, but it works fine so far.
12.06.2021, 06:03
(16.06.2018, 17:57)benthoma Wrote:(11.06.2018, 21:59)Erwin van der Zwart Wrote: Hi,The first code. Can we do different things with a true value and a false value? Hi ! i tried the first script, saved and enabled but it seem the object value given not changing. Tried to change value as hours follow the current timing, object value also no changed. Do i have to set the script run and check everytime (this wat i read throught out the search regard scripting) this what in my script now = os.date('*t') if now.hour >= 8 and now.hour < 13 then grp.write('0/0/100', true) elseif now.hour >= 13 and now.hour < 14 then grp.write('0/0/100', false) end
12.06.2021, 07:51
What script type are you using for this? Have you considered using schedulers instead?
15.06.2021, 01:31
08.07.2023, 21:50
Hi all, I see this is an older tread, but i will give it a shot.
I would like to put my light at some places from the motion sensor at day full light and night dimmed. At the motion sensor ( Basalte aura ) i can chose there control day = 1 and night is 0 I tried the script and schedulers as mentioned above, but non of them will change my status. I'm a bit new in to KNX and scripting. now = os.date('*t') if now.hour >= 7 and now.hour < 22 then grp.write('10/0/3', true) elseif now.hour >= 22 and now.hour < 7 then grp.write('10/0/3', false) end
09.07.2023, 08:46
(This post was last modified: 09.07.2023, 08:47 by Erwin van der Zwart.)
elseif now.hour >= 22 and now.hour < 7 then…
This is impossible, a value can never be greater as 22 AND at the same time lower as 7 (: Use: elseif now.hour >= 22 or now.hour < 7 then |
« Next Oldest | Next Newest »
|