Search found 215 matches

by habahabahaba
Tuesday 03 June 2025 21:29
Forum: LUA
Topic: scripts percentage solar panels
Replies: 11
Views: 457

Re: scripts percentage solar panels

You have

Code: Select all

Percentage.updatePercentage(PercZonnepanelen)
What is "Percentage" ? You didnt define such device or variable
by habahabahaba
Tuesday 13 May 2025 6:13
Forum: Bugs and Problems
Topic: Problems upgrading to 2025.1 on Windows11
Replies: 6
Views: 267

Re: Problems upgrading to 2025.1 on Windows11

Did you clear the browser cach?
by habahabahaba
Tuesday 13 May 2025 6:10
Forum: dzVents
Topic: (SOLVED) Convert LUA script into dzVents
Replies: 15
Views: 530

Re: Convert LUA script into dzVents

but writing a new value in the uservariables table is erronous. I tried -- domoticz.variables.CAcpm.value = tostring(wAverage30) and get this error 'attempt to index a function value (field 'variables') domoticz.variables('Heating_123_floors').set('On') - example I think you have to learn this ...
by habahabahaba
Monday 12 May 2025 17:30
Forum: dzVents
Topic: (SOLVED) Convert LUA script into dzVents
Replies: 15
Views: 530

Re: Convert LUA script into dzVents

local temp = domoticz.utils.round(temperature , 1)
local Uptime = domoticz.utils.round(Uptime, 0)

local wAverage30 = domoticz.variables('cpmWalkAv').value
by habahabahaba
Monday 12 May 2025 13:06
Forum: dzVents
Topic: (SOLVED) Convert LUA script into dzVents
Replies: 15
Views: 530

Re: Convert LUA script into dzVents

Fully working example with JSON: -- TEST return { on = { timer = { 'every minute' -- just an example set as often as you need }, httpResponses = { 'USGovWeathertrigger' -- must match with the callback passed to the openURL command } }, logging = { level = domoticz.LOG_INFO, marker ...
by habahabahaba
Monday 12 May 2025 10:28
Forum: dzVents
Topic: (SOLVED) Convert LUA script into dzVents
Replies: 15
Views: 530

Re: Convert LUA script into dzVents

negative, both lines give an Error : attempt to index a nil value (global 'dz') or (field 'data') print (item.data) prints the line as seen in the browser, {"data":{ "id":"12000059","type":"1","detector":"SI29BG","cpm":9,"temperature":29.31,"uptime": 1407157}} print (item.data.id), print (item.data ...
by habahabahaba
Tuesday 06 May 2025 14:26
Forum: Heating/cooling
Topic: Intergas - disabling/enabling heater when door opens
Replies: 7
Views: 1062

Re: Intergas - disabling/enabling heater when door opens

Do you mean that domoticz will keep sending the new setpoint over and over again, untill the door is closed? In the simplest way yes, you can do so. But i gave you just a direction to think :) Using user variables you can store as much setpoints as you need - for opened door, closed door, winter ...
by habahabahaba
Sunday 04 May 2025 9:25
Forum: Heating/cooling
Topic: Intergas - disabling/enabling heater when door opens
Replies: 7
Views: 1062

Re: Intergas - disabling/enabling heater when door opens

So you can change temp setpoint of thermostat from Domoticz. and you have some door contact... You need Dzvents script that is activated by door contact and by timer (5 min?) 1. the script is activated by sensor: means the door is open/close -> set temp to low/high or off/on heating 2. the script is ...
by habahabahaba
Friday 18 April 2025 16:49
Forum: dzVents
Topic: DzVents OpenURL response error
Replies: 10
Views: 878

Re: DzVents OpenURL response error

Never mind

Both requests from Dz script - .openUrl, CURL - give an error 403
by habahabahaba
Friday 18 April 2025 13:05
Forum: dzVents
Topic: DzVents OpenURL response error
Replies: 10
Views: 878

Re: DzVents OpenURL response error

The same request from command line gives result: { "@context" : "http://environment.data.gov.uk/flood-monitoring/meta/context.jsonld" , "meta" : { "publisher" : "Environment Agency" , "licence" : "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" , "documentation" : "http ...
by habahabahaba
Friday 18 April 2025 13:02
Forum: dzVents
Topic: DzVents OpenURL response error
Replies: 10
Views: 878

Re: DzVents OpenURL response error

I've just tested it from the Dzvents script by using curl and got 403 too Ж/ But from browser the link is working... If it help you? my code: return { on = { timer = { 'every minute', -- } }, logging = { level = domoticz.LOG_INFO, marker = 'Getting river level', }, execute = function(domoticz) local ...
by habahabahaba
Friday 18 April 2025 8:41
Forum: dzVents
Topic: DzVents OpenURL response error
Replies: 10
Views: 878

Re: DzVents OpenURL response error

What if to use curl instead of domoticz.openurl ?
by habahabahaba
Tuesday 08 April 2025 10:04
Forum: LUA
Topic: access longitude/lttitude
Replies: 6
Views: 1557

Re: access longitude/lttitude

By using API request - /json.htm?type=settings ?
by habahabahaba
Sunday 23 March 2025 15:33
Forum: dzVents
Topic: nil value for solarnoon
Replies: 12
Views: 896

Re: nil value for solarnoon

a little bit optimized: local solarNoonInMinutes = domoticz.time.solarnoonInMinutes local solarNoonTime = domoticz.time.timestampToDate(domoticz.time.dateToTimestamp(os.date("%Y-%m-%d 00:00")) + solarNoonInMinutes * 60, '%Y-%m-%d time') domoticz.log('todaySolarNoonTime: '.. solarNoonTime, domoticz ...
by habahabahaba
Friday 21 March 2025 12:59
Forum: Other questions and discussions
Topic: Visualize data question
Replies: 2
Views: 237

Re: Visualize data question

I think you can use your current text device and add some Dzvents script + Dummy custom sensor

For each state of your device set numbers 0-3 for example and when text on text device changed - send the proper digit to custom sensor.

And custom sensor have a graph interface
by habahabahaba
Tuesday 18 February 2025 18:35
Forum: Other questions and discussions
Topic: Error in the logs when sending SMS
Replies: 18
Views: 2724

Re: Error in the logs when sending SMS

Can you show the script?
by habahabahaba
Tuesday 18 February 2025 17:29
Forum: Other questions and discussions
Topic: Error in the logs when sending SMS
Replies: 18
Views: 2724

Re: Error in the logs when sending SMS

I use it without any problem both on "action on" and "action off" of devices and in scripts (blocky, dzVents). Everything works well but this error message in the logs bothers me. So, 4 tips of sending: - "action on" - "action off" - blocky - dzVents And each of them causes an error?
by habahabahaba
Tuesday 18 February 2025 7:10
Forum: Node-RED
Topic: How to get this in domoticz
Replies: 33
Views: 3089

Re: How to get this in domoticz

any screenshots, flow code...?
by habahabahaba
Thursday 13 February 2025 7:12
Forum: Bugs and Problems
Topic: String variable editing does not allow the "+"
Replies: 9
Views: 976

Re: String variable editing does not allow the "+"

I think the TS is saying about Setup -> More options -> User Variables.

direct "+" is not saving too.

But waltervl's solution is working.
by habahabahaba
Wednesday 12 February 2025 17:37
Forum: Node-RED
Topic: script not proper old vs new node-red version
Replies: 11
Views: 1064

Re: script not proper old vs new node-red version

the variable is not declared

try to set
var hum_stat = 0;
to the fourth line

the same to bar_for