Search found 58 matches

by Piacco
Sunday 11 June 2023 20:39
Forum: dzVents
Topic: dzVents Reboot Raspberry Pi
Replies: 5
Views: 551

Re: dzVents Reboot Raspberry Pi

Yes Domoticz Port is on 8181 :D I get the same error with the dz.openURL command. dz.openURL("http://192.168.1.15:8181/json.htm?type=command&param=system_reboot") 2023-06-11 20:37:00.447 Error: Error opening url: http://192.168.1.15:8181/json.htm?type=command&param=system_reboot
by Piacco
Sunday 11 June 2023 15:14
Forum: dzVents
Topic: dzVents Reboot Raspberry Pi
Replies: 5
Views: 551

dzVents Reboot Raspberry Pi

Hi, My raspberry has memory leakage, so I want to reboot my raspberry pi if the memory exceeds the 80%, is this possible with dzVents? I tried this, but this is not working. if memory.percentage > 80 then dz.openURL( { url = "http://192.168.1.15:8181/json.htm?type=command&param=system_reboot ...
by Piacco
Saturday 04 March 2023 22:59
Forum: Others
Topic: Controllable mechanical ventilation
Replies: 8
Views: 2006

Re: Controllable mechanical ventilation

by Piacco
Monday 20 February 2023 19:42
Forum: dzVents
Topic: Compute Humidity [Solved]
Replies: 6
Views: 1290

Re: Compute Humidity [Solved]

No I did't try that :oops: Thank you, that did the trick :D function humidityStatus (temperature, humidity) local temperature = tonumber(temperature) local humidity = tonumber(humidity) local dz = dz or domoticz if humidity <= 30 then return dz.HUM_DRY elseif humidity >= 70 then return dz.HUM_WET ...
by Piacco
Monday 20 February 2023 16:11
Forum: dzVents
Topic: Compute Humidity [Solved]
Replies: 6
Views: 1290

Re: Compute Humidity [Solved]

The problem is that I don't know how to use the return state of the function, how can i use the return state to update my sensor? Now i'm use this code to determine the status, if humidity < 30 then hum_stat = 2 elseif humidity >= 30 and humidity < 45 then hum_stat = 0 elseif humidity >= 45 and ...
by Piacco
Monday 20 February 2023 13:24
Forum: dzVents
Topic: Compute Humidity [Solved]
Replies: 6
Views: 1290

Re: Compute Humidity [Solved]

Maybe a stupid question, but how do I get the humidity status from the function humidityStatus into the device? function humidityStatus (temperature, humidity) local temperature = tonumber(temperature) local humidity = tonumber(humidity) local dz = dz or domoticz if humidity <= 30 then return dz.HUM ...
by Piacco
Monday 20 February 2023 10:13
Forum: dzVents
Topic: Extract value from http response [Solved]
Replies: 16
Views: 4180

Re: Extract value from http response [Solved]

The issue is solved with help of topic https://domoticz.com/forum/viewtopic.php?t=26021.

I have to declare the local co2 on this way, I'don't know exactly why, but it's working now :D

Code: Select all

local co2 = (ithostatus["highest-received-co2-value_ppm"])
by Piacco
Sunday 19 February 2023 21:31
Forum: dzVents
Topic: Extract value from http response [Solved]
Replies: 16
Views: 4180

Re: Extract value from http response [Solved]

I'am still stuck, when i try the variable ithostatus.balance_perc i get no error, and see the requested value in the domoticz log, but when i try another value by example the highest-received-co2-value_ppm varable i get an error. 2023-02-19 21:26:06.115 Error: dzVents: Error: (3.1.8) getIthoStatus ...
by Piacco
Saturday 18 February 2023 23:44
Forum: dzVents
Topic: Extract value from http response [Solved]
Replies: 16
Views: 4180

Re: Extract value from http response [Solved]

I tried the HTTP poller, but no luck. Error 2023-02-18 23:53:45.983 Error: CLuaHandler: /home/pi/domoticz/scripts/lua_parsers/itho.lua:4: attempt to index a number value The device is updating, but the value is still 0, it should be 99.8 lua parser script: local idx = 1748 local value = domoticz ...
by Piacco
Saturday 18 February 2023 19:59
Forum: dzVents
Topic: Extract value from http response [Solved]
Replies: 16
Views: 4180

Re: Extract value from http response [Solved]

I want to read the data off my ventilation unit, can someone help me with a dzvents script to read the dat from a webAPI. The API request is : http://192.168.1.65/api.html?get=ithostatus The API result is : {"requested-fanspeed_perc":-1,"balance_perc":99.7,"supply-fan_rpm":933,"supply-fan-actual_rpm ...
by Piacco
Sunday 26 December 2021 9:56
Forum: dzVents
Topic: Is this possible?
Replies: 4
Views: 689

Re: Is this possible?

by Piacco
Saturday 27 November 2021 23:30
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 117385

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

Last week i did a fresh install of Domoticz and updated to (build 138172). Now the watermeter-plugin gives an error Error: (FindModule) Domoticz/DomoticzEx modules not found in interpreter. I have read in this post that this probably has something to do with the new Python framework. https ...
by Piacco
Wednesday 24 November 2021 13:41
Forum: Others
Topic: SolarEdge api
Replies: 31
Views: 14484

Re: SolarEdge api

Hello, This week i installed an Ubiquiti Unifi Security Gateway (USG) after the installation the SolarEdge via Web API doesn't work anymore. Probably this has something to do with the settings off the USG, but i have don't have any clue where to start :? When i putt the api key in my browser i'am ...
by Piacco
Tuesday 10 August 2021 14:18
Forum: dzVents
Topic: Cancel queued customEvent
Replies: 5
Views: 756

Re: Cancel queued customEvent

I use a script to turn my PC on or off with a fibaro push button. With a single push a want to turn the PC on or off and with the double push i will cancel the script, but i don't understand wy the cancelQueuedCommands is not working :| if item.isDevice and device.name == 'Reset_PC' then dz.devices ...
by Piacco
Tuesday 06 July 2021 14:54
Forum: dzVents
Topic: switchOff().afterMin(10) [Solved]
Replies: 20
Views: 4698

Re: switchOff().afterMin(10) [Solved]

Thanks, I use a fibaro button, so I can use the double click function to execute the cancelQueuedCommands() command
by Piacco
Tuesday 06 July 2021 8:46
Forum: dzVents
Topic: switchOff().afterMin(10) [Solved]
Replies: 20
Views: 4698

Re: switchOff().afterMin(10) [Solved]

Hi, I have a script for turning my PC on/off with a toggle switch. Sometimes when my PC is on, I accidentally push the switch and my PC is turned off after 3 min. Is there a possibility to reset this action, by pressing the switch again? return { on = { devices = { '$Toggle_Swich_PC', }, }, logging ...
by Piacco
Monday 12 April 2021 18:16
Forum: Other questions and discussions
Topic: Cannot get dzVents to trigger
Replies: 22
Views: 2649

Re: Cannot get dzVents to trigger

In your first post you spreak about device 113 in the other post is it 103, could that be the problem?
by Piacco
Saturday 27 February 2021 20:36
Forum: dzVents
Topic: Date and time calculations in dzvents [Solved]
Replies: 16
Views: 11549

Re: Date and time calculations in dzvents [Solved]

I have a little script to wake up my chickens. It works well, I just want to make it a little bit smarter. When the time between sunset and sunrise is more than 13 hours, then the light does not need to be switched on. Has dzVents the possibility to extract sunrise and sunset? ps. What happend when ...
by Piacco
Monday 22 February 2021 16:20
Forum: Utility
Topic: P1 Landys+Gyr E360
Replies: 5
Views: 3375

Re: P1 Landys+Gyr E360

You van buy the P1 cable here.

http://www.smartmeterdashboard.nl/webshop
by Piacco
Friday 04 December 2020 8:51
Forum: dzVents
Topic: Compute Humidity [Solved]
Replies: 6
Views: 1290

Compute Humidity [Solved]

Hello, For the humidity outside i use a DHT22 sensor. In the wiki of DzVents i've read that DzVents can compute the status (HUM_NORMAL, HUM_COMFORTABLE, HUM_DRY, HUM_WET). But how can i use the function HUM_COMPUTE? Or have i write a function by myself, like this example? if humidity < 30 then hum ...