Search found 35 matches
- Thursday 26 November 2020 23:02
- Forum: dzVents
- Topic: Help sensor motion 10 mins ago [Solved]
- Replies: 4
- Views: 569
Re: Help sensor motion 10 mins ago [Solved]
Hello, I confirm the syntax and the correct thanks for the help my script and add-in solved thank you
- Wednesday 25 November 2020 15:14
- Forum: dzVents
- Topic: Help sensor motion 10 mins ago [Solved]
- Replies: 4
- Views: 569
Re: Help sensor motion 10 mins ago [Solved]
Hello @waaren I haven't seen your answer before thank you that helped me get it working however I got an error adding a second sensor syntax error I don't think I'm wrong though on = { devices = { ["Capteur BAT", "Capteur Porte" ] = {'at 8:00-20:00'}, }, },
- Saturday 21 November 2020 8:58
- Forum: dzVents
- Topic: Help sensor motion 10 mins ago [Solved]
- Replies: 4
- Views: 569
Help sensor motion 10 mins ago [Solved]
Hello, I wrote this automation in Dzvent I would like a helping hand because I think I was wrong I would like the notification of my motion sensor to be sent only when the previous ON state was 10 mins ago return { on = { devices = { ["Capteur BAT"] = {'at 8:00-20:00'} } }, execute = function ...
- Tuesday 12 November 2019 15:51
- Forum: dzVents
- Topic: Sensor text compare text [Solved]
- Replies: 2
- Views: 1149
Re: Sensor text compare text [Solved]
Hello, thank you for your answer actually I have everything but thank you so thank you for the solution and for the redirection to the link of the wiki
- Tuesday 12 November 2019 13:02
- Forum: dzVents
- Topic: Sensor text compare text [Solved]
- Replies: 2
- Views: 1149
Sensor text compare text [Solved]
Hello I have a text device that and updated I would like to know if he and possible the old with the new text as in the example I found no way to do it return { on = { devices = { "Risque" }}, execute = function(dz, item ) if old.item.state == "RAS" and new.item.state == 'orage' then notification ...
- Monday 11 November 2019 18:15
- Forum: dzVents
- Topic: Alert sensor [Solved]
- Replies: 5
- Views: 1626
Re: Alert sensor [Solved]
I did not think it was possible thanks for the solution
- Monday 11 November 2019 17:58
- Forum: dzVents
- Topic: Alert sensor [Solved]
- Replies: 5
- Views: 1626
Re: Alert sensor [Solved]
It works perfectly the device is no longer updated every minute but I have another script that sends a notification to the color change is that it? because it does not work if value.data == "1" is good ? return { on = { devices = { "vigilance météo" }}, execute = function(dz, item, devices, value ) ...
- Monday 11 November 2019 17:11
- Forum: dzVents
- Topic: Alert sensor [Solved]
- Replies: 5
- Views: 1626
Alert sensor [Solved]
Hello I have this script that works great I just have a problem I would like him to update the device only when the state changes I tried several things but I can not do it return { on = { timer = { 'every minute' }, httpResponses = { 'vigilance' }}, logging = { level = domoticz.LOG_DEBUG, marker ...
- Thursday 31 October 2019 18:37
- Forum: LUA
- Topic: Error time + day
- Replies: 4
- Views: 508
Re: Error time + day
Ok thank you for the recommendation I will save your example if one day I need, so I will do as you suggested go through dzvent
- Thursday 31 October 2019 18:08
- Forum: LUA
- Topic: Error time + day
- Replies: 4
- Views: 508
Re: Error time + day
Okay not very intuitive so how would you do actions at certain times with specific days? What do you recommend?
- Thursday 31 October 2019 17:31
- Forum: LUA
- Topic: Error time + day
- Replies: 4
- Views: 508
Error time + day
Hello, I have an error that I can not solve I tried in several ways here is the simple script and the error if someone could tell me or I'm wrong thank you in advance commandArray = {} time = os.date("%H","%M") local day=os.date("%A") -- Déclenchement tous les jours à 0:02 if (heure == '17:17') and ( ...
- Thursday 31 October 2019 16:30
- Forum: dzVents
- Topic: httpResponses no work [Solved]
- Replies: 2
- Views: 1133
Re: httpResponses no work [Solved]
Thank you for your solution actually I understand better how I have to do, so I made another script starting from your model for the seasons and it works perfectly
- Thursday 31 October 2019 14:26
- Forum: dzVents
- Topic: httpResponses no work [Solved]
- Replies: 2
- Views: 1133
httpResponses no work [Solved]
Hello, I'm looking for some help I've tried several ways but I can not get the principle working and simple I open the url if the answer and False then I do an action if the answer and different from False I did another action thanking you in advance for the help return { on = { timer = { 'at 14:17 ...
- Tuesday 29 October 2019 20:09
- Forum: dzVents
- Topic: Or Or Or optimized? [Solved]
- Replies: 3
- Views: 1153
Re: Or Or Or optimized? [Solved]
Hello I think you can do like that, maybe someone will have another idea :) return { on = { timer = { 'at 04:45 on mon, tue, wed, thu, fri','at 16:05 on mon, tue, wed, thu, fri','at 06:30 on sat, sun'}, devices = {'heizpause'}, }, execute = function( dz, item) if heizpause == 'Heizen' then print ...
- Monday 28 October 2019 11:44
- Forum: dzVents
- Topic: Item.state problem [Solved]
- Replies: 8
- Views: 1566
Re: Item.state problem [Solved]
I have one last question here in this code that the state of the light activates the code elseif Jardin.state == 'Off' and dz.time.matchesRule('at nighttime') then And it checks the state it's not an actuator elseif dz.time.matchesRule('at 9:30 on mon,tue,thu,fri') and Vacances.state == 'On' then so ...
- Monday 28 October 2019 9:17
- Forum: dzVents
- Topic: Item.state problem [Solved]
- Replies: 8
- Views: 1566
Re: Item.state problem [Solved]
I had not thought of this solution small question it will remain an actuator ie if the light goes out the code will be executed?
- Monday 28 October 2019 8:11
- Forum: dzVents
- Topic: Item.state problem [Solved]
- Replies: 8
- Views: 1566
Re: Item.state problem [Solved]
I think I found a beginning answer is it corect if I write it like that? I'm not sure that parentheses is useful
Code: Select all
if (item.isDevice and item.name == 'Jardin' and item.state == 'Off') and dz.time.matchesRule('at nighttime') then
- Monday 28 October 2019 7:09
- Forum: dzVents
- Topic: Item.state problem [Solved]
- Replies: 8
- Views: 1566
Re: Item.state problem [Solved]
Hello Waaren, Thank you for your answer and for your optimization of my script. My problem is at the code level, I have two devices 'Jardin' and 'vacances scolaire' who can go from that can switch on to turn off what triggers this code I would only like this code to be operated only by the garden ...
- Sunday 27 October 2019 18:57
- Forum: dzVents
- Topic: Item.state problem [Solved]
- Replies: 8
- Views: 1566
Item.state problem [Solved]
Hello, I come to you for help I have a script that works perfectly but I have a problem with item.state I have two devices that can turn on to turn off The devices are 'Jardin' and 'vacances scolaires' I tried to do this but it does not work item.state('jardin') == 'Off' Here is my code if you want ...
- Sunday 21 July 2019 11:31
- Forum: dzVents
- Topic: Domoticz status widget [Solved]
- Replies: 3
- Views: 2689
Re: Domoticz status widget [Solved]
Hello, that's fine you understand my request unfortunately I do not know how to take it I would like to do that if the widget says off and the light on and then turn it off if possible