Search found 6 matches

by betogar
Monday 20 March 2023 16:00
Forum: dzVents
Topic: turns on a switch every time the air sensor value is 12
Replies: 15
Views: 1338

Re: turns on a switch every time the air sensor value is 12

it works! thanks guys!
by betogar
Sunday 19 March 2023 23:24
Forum: dzVents
Topic: turns on a switch every time the air sensor value is 12
Replies: 15
Views: 1338

Re: turns on a switch every time the air sensor value is 12

It works but I see an error in the log, any ideas?


return {
on = {
timer = { 'every minute',
}
},

execute = function(domoticz , timer)


local AQI = domoticz.devices(126)
local Power = domoticz.devices(139)



if (AQI.sensorValue >= 1 ) then

Power.switchOn().checkFirst ...
by betogar
Sunday 19 March 2023 3:03
Forum: dzVents
Topic: turns on a switch every time the air sensor value is 12
Replies: 15
Views: 1338

Re: turns on a switch every time the air sensor value is 12

try with value 1, it doesn't work
nothing in log


return {
on = {
devices = {
{'AQI'},
}
},

execute = function(dz)
local AQI = dz.devices(126) -- Idx - id of your AQI sensor
local powerSwitch = dz.devices(139) -- Idx id of your power switch

if AQI.value >=1 then
powerSwitch.switchOn ...
by betogar
Saturday 18 March 2023 19:05
Forum: dzVents
Topic: turns on a switch every time the air sensor value is 12
Replies: 15
Views: 1338

turns on a switch every time the air sensor value is 12

I want to make a script that turns on a switch every time the air sensor value is 12 or higher and turns off when it is 11 or less
I am using a custom sensor for air quality

try this but it gives error





-- Define the name of the custom sensor and the name of the switch
local AQI_sensor_name ...
by betogar
Sunday 11 December 2022 0:55
Forum: Python
Topic: Python plugin: UPS Monitor
Replies: 111
Views: 39643

Re: Python plugin: UPS Monitor


You get to it by clicking on Setup, More Options, Events . This takes you to the automation scripts page where you can see device statuses.

You can also get there with http or https://ipaddress:8080/#/Events (substitute your IP address and change the port if you don't use 8080).
Good luck. I ...
by betogar
Saturday 10 December 2022 23:55
Forum: Python
Topic: Python plugin: UPS Monitor
Replies: 111
Views: 39643

Re: Python plugin: UPS Monitor


Notifications

Well I've only just bought a UPS (Tecnoware) and installed this plugin so let's start by saying a big thanks to the author!

But, as others have reported here, I could not get notifications to work when power was lost/restored with the "NUT - UPS Status Mode" changing between ...