Search found 57 matches
- Sunday 12 April 2020 11:41
- Forum: Show your projects
- Topic: Home automation/surveillance system
- Replies: 31
- Views: 12223
Re: Home automation/surveillance system
I changed settings to defaults in both lua script, exept onTime to one hour. and today at 18:00 I did set leaving time to 19:00, variables was: CarHeaterSwitchSingleStartTime Time 19:00 CarHeaterSwitchActivationType Integer 1 CarHeaterSwitchOffTime Integer 1478667660 (this came by itself ) so now ...
- Tuesday 01 May 2018 9:45
- Forum: Other questions and discussions
- Topic: Alarm for open Doors
- Replies: 5
- Views: 1424
Re: Alarm for open Doors
How about this and some push notification
https://www.domoticz.com/wiki/Get_Doors_Status
I made for my own garage door, there is swiitvh in esp8266 which communicates to my domotocz and alarms at evening if its forgotten open.
Also notificates always when someone opens it thru switch own notification.
https://www.domoticz.com/wiki/Get_Doors_Status
I made for my own garage door, there is swiitvh in esp8266 which communicates to my domotocz and alarms at evening if its forgotten open.
Also notificates always when someone opens it thru switch own notification.
- Monday 30 April 2018 8:01
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
and it works !
2018-04-30 09:00:00.271 LUA: Set Volumio to On because its 9:00 and Home=On script_time_Volumio.lua
2018-04-30 09:00:00.271 EventSystem: Script event triggered: /home/timo/domoticz/scripts/lua/script_time_Volumio.lua
2018-04-30 09:00:00.299 (etaohjauksia) Light/Switch (Volumio)
2018-04-30 09:00:00.271 LUA: Set Volumio to On because its 9:00 and Home=On script_time_Volumio.lua
2018-04-30 09:00:00.271 EventSystem: Script event triggered: /home/timo/domoticz/scripts/lua/script_time_Volumio.lua
2018-04-30 09:00:00.299 (etaohjauksia) Light/Switch (Volumio)
- Sunday 29 April 2018 22:09
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
I will report tomorrow about 9:00 status.
But for big thanks for your advices and efforts!
Ive been testing this before this thread (which isnt topics desciption for a long time) many hours..
But for big thanks for your advices and efforts!
Ive been testing this before this thread (which isnt topics desciption for a long time) many hours..
- Sunday 29 April 2018 21:33
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
That was it ! at least it now switched OFF
some many version that I come too blind for and or's.
I earlier set to go off at 22:00
2018-04-29 22:30:00.442 LUA: Set Volumio to Off because between 22:00 - 9:00 script_time_Volumio.lua
2018-04-29 22:30:00.459 (etaohjauksia) Light/Switch (Volumio)
some many version that I come too blind for and or's.
I earlier set to go off at 22:00
2018-04-29 22:30:00.442 LUA: Set Volumio to Off because between 22:00 - 9:00 script_time_Volumio.lua
2018-04-29 22:30:00.459 (etaohjauksia) Light/Switch (Volumio)
- Sunday 29 April 2018 21:03
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
Ok, time was 21:00 home switch ON and Volumio stays ON.
Nothing in domoticz logs.
I could schedule it Off from Volumio switch itself.
Nothing in domoticz logs.
I could schedule it Off from Volumio switch itself.
- Sunday 29 April 2018 13:17
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
This morning after I woke up about 9:30, Home switch was off and volumio off. like it should be.
after switching Home On volumio also switched ON
so now it works, very very strange
I set now times 9:00 and 21:00 and wont touch anything whole day, so lets see what happens at 21:00.
after switching Home On volumio also switched ON
so now it works, very very strange
I set now times 9:00 and 21:00 and wont touch anything whole day, so lets see what happens at 21:00.
- Saturday 28 April 2018 21:10
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
and when time was 22:00 nothing happened. Volumio is still ON when Home switch is ON. I manually switched Home OFF, and even then nothing happened. I thing I will schedule from switch settings OFF time and not sure how to start, maybe manually. There is update for beta, I will test to upgrade ...
- Saturday 28 April 2018 20:27
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
I understand at all, I changed endtime to 22 and switched Home to On, nothing happened. not even logging.. I am using beta 3.9269 if it does matter.. edit: reason was that script name was script_*_volumio.lua not scipt_*_Volumio.lua in wiki there was in some page that scripts should be lowercase ...
- Saturday 28 April 2018 11:58
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
Yes thats the plan when it works.
For testing purposes I try change times between ON and OFF shorter, so I dont have to wait till evening and mornings.. [emoji6]
For testing purposes I try change times between ON and OFF shorter, so I dont have to wait till evening and mornings.. [emoji6]
- Saturday 28 April 2018 11:48
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
I changed all times where was 9 to 12.What did you exactly change to make it work for 12:00? it should be:
so it should work between 12-22
I will test more at evening..
- Saturday 28 April 2018 11:16
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
Home ON whole time, clock came to 12:00 and switched volumio ON, yes 2018-04-28 12:00:00.424 LUA: Set Volumio to On because its 12:00 and Home=On script_time_Volumio.lua but now when I switched Home OFF volumio stayed ON, no logging except this 2018-04-28 12:12:22.979 User: Admin initiated a switch ...
- Saturday 28 April 2018 10:54
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
11:48 Home switch switched ON logs: 2018-04-28 11:48:36.818 LUA: Device Home changed to : On and it's between 9:00 and 21:00. Volumio will be set to:On script_device_Volumio.lua 2018-04-28 11:48:36.818 EventSystem: Script event triggered: /home/timo/domoticz/scripts/lua/script_device_Volumio.lua ...
- Saturday 28 April 2018 10:31
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
well it is all after 9, like now if I manually set home switch off volumio still stays On.
those variables, I may be never need those, but nice to have if I some day needed
I have also variable for Home switch..
those variables, I may be never need those, but nice to have if I some day needed
I have also variable for Home switch..
- Saturday 28 April 2018 10:16
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
about that ) near = error, after I changed =< to <= it stopped error logging. here are scripts. --script_time_Volumio.lua commandArray = {} time = os.date("*t") -- switch Off when On after 21:00 till 09:00 if (otherdevices['Volumio'] == 'On' and time.hour >= 21 and time.hour <= 9) then commandArray ...
- Saturday 28 April 2018 9:21
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
first I needed to change if otherdevices['Volumio'] == 'On' and (time.hour >= 21 or time.hour <= 9) then to if otherdevices['Volumio'] == 'On' and (time.hour >= 21 or time.hour =< 9) then it did log ')' expected near '=' it works kind of: - it doesnt set volumio switch off when home switch goes off ...
- Friday 27 April 2018 22:07
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
Thats ok and I will learn same time a lot ! [emoji6]
- Friday 27 April 2018 21:09
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
I changed shutoff time to 22 but it didnt switch off but I changed line -- switch Off when On after 21:00 till 09:00 if otherdevices['Volumio'] == 'On' and time.hour == 9) then to if (otherdevices['Volumio'] == 'On' and time.hour > 22 and time.hour < 9) then so now it switched off, I will check ...
- Friday 27 April 2018 20:49
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
Big Thanks!
I will test right away
I will test right away
- Friday 27 April 2018 19:16
- Forum: LUA
- Topic: massive logging with lua script
- Replies: 35
- Views: 4305
Re: massive logging with lua script
sorry it left for testing because here in Finland it is evening so I am testing nearest hours. it didnt even start when time was 20 (8pm) I tought it will start working when someone leaves home and home switch goes off and back on. but not in my case. what I need if anyone is home (another script ...