Search found 23 matches

by mancide
Wednesday 18 September 2024 23:27
Forum: Heating/cooling
Topic: Nest thermostat
Replies: 4
Views: 2315

Re: Nest thermostat

well,
incidently I had to renew my cookie also this evening.
I used Chrome on Windows10.
so far it's working...
by mancide
Monday 16 September 2024 18:17
Forum: Heating/cooling
Topic: Nest thermostat
Replies: 4
Views: 2315

Re: Nest thermostat

Hi,

I'm using the same plugin on 2 locations each with a Domoticz and NEST setup.
As far as I know it still works.

As I understand it, you have login manually to your NEST thermostat and then you copy the cookie from that session to your Domoticz setup. Normally the Domoticz will then keep using ...
by mancide
Tuesday 09 April 2024 12:23
Forum: Other questions and discussions
Topic: dummy incremental counter for time
Replies: 1
Views: 345

dummy incremental counter for time

Hi,

I'm trying to measure the uptime/runtime of a device.

I have found this one: https://www.domoticz.com/forum/viewtopic.php?t=23713
which is close but it still not good enough.
The above script has:
- a resolution of hours. I would like to keep my seconds resolution.
- I use the power updates to ...
by mancide
Monday 18 March 2024 14:35
Forum: Other questions and discussions
Topic: Timers persistent option
Replies: 2
Views: 805

Timers persistent option

Hi,

Can somebody explain to me the exact working of the "persistent" option on Timers.

I'm thinking of using it to set temperature of a thermostat over a certain period.
by mancide
Sunday 03 March 2024 20:40
Forum: Utility
Topic: P1 Smart Meter with LAN interface reading from MQTT?
Replies: 9
Views: 6325

Re: P1 Smart Meter with LAN interface reading from MQTT?

Hi,

I have both zwave and zigbee working with the "MQTT auto discovery client gateway".
I was trying to get my watermeter to work with MQTT also. I see the values coming appearing in MQTT explorer.
I can't figure out how to get the values from MQTT into domoticz. MQTT auto discovery client gateway ...
by mancide
Sunday 24 December 2023 15:34
Forum: dzVents
Topic: Error parsing json to LUA table: (invalid json string)
Replies: 15
Views: 2416

Re: Error parsing json to LUA table: (invalid json string)

I tried this

for index, value in pairs(item) do
--domoticz.log(string.format('item[%s]=%s', index, value), domoticz.LOG_INFO)
if(index=='data')
then
domoticz.log(string.format('item[%s]=%s', index, value), domoticz.LOG_INFO)
item['data'] = string.gsub(item['data'], "\"", "")
end
end ...
by mancide
Friday 22 December 2023 13:45
Forum: dzVents
Topic: Error parsing json to LUA table: (invalid json string)
Replies: 15
Views: 2416

Re: Error parsing json to LUA table: (invalid json string)


So when the script is triggered by the callback and the only thing you do is the item.isTimer check (which performs as it should) and then print a string to the logfile you get the error?

yes

I think the problem still lies in the contents of item, exactly as the error message indicates, a ...
by mancide
Friday 22 December 2023 11:15
Forum: dzVents
Topic: Error parsing json to LUA table: (invalid json string)
Replies: 15
Views: 2416

Re: Error parsing json to LUA table: (invalid json string)

I reduced my script to this:
return {
on = {
timer = { 'every 10 minutes' },
--timer = { 'every 2 minutes' },
httpResponses = { 'webhookcallback', 'callback_gas', 'callback_water' }
},
logging = {
level = domoticz.LOG_INFO,
marker = 'EnergyId webhook',
},
execute = function(domoticz, item ...
by mancide
Monday 18 December 2023 14:17
Forum: dzVents
Topic: Error parsing json to LUA table: (invalid json string)
Replies: 15
Views: 2416

Re: Error parsing json to LUA table: (invalid json string)

yes,

at the moment, with this code I still have the problem...


execute = function(domoticz, item)
domoticz.log('*** start ***', domoticz.LOG_INFO)
domoticz.utils.dumpTable(item)
if(item.isTimer)
then
domoticz.log('Triggered by timer', domoticz.LOG_INFO)

local key = 'xxxxxxxx-xxxx-xxxx ...
by mancide
Friday 15 December 2023 12:15
Forum: dzVents
Topic: Error parsing json to LUA table: (invalid json string)
Replies: 15
Views: 2416

Re: Error parsing json to LUA table: (invalid json string)

Hi,

I did a dumpTable(item):
2023-12-15 12:09:01.174 Status: dzVents: Info: EnergyId webhook: ------ Start internal script: EnergyId_Webhook_new: HTTPResponse: "callback_gas"
2023-12-15 12:09:01.208 Status: dzVents: Info: EnergyId webhook: *** start ***
2023-12-15 12:09:01.208 Status: dzVents ...
by mancide
Wednesday 29 November 2023 13:25
Forum: dzVents
Topic: Error parsing json to LUA table: (invalid json string)
Replies: 15
Views: 2416

Re: Error parsing json to LUA table: (invalid json string)

even with this, I get the Error:
if(item.ok)
then
else
domoticz.log('There was an error', domoticz.LOG_ERROR)

domoticz.log(string.format('%s ==> %s',item.statusCode, item.statusText), domoticz.LOG_ERROR)
end
by mancide
Wednesday 29 November 2023 13:18
Forum: dzVents
Topic: Error parsing json to LUA table: (invalid json string)
Replies: 15
Views: 2416

Re: Error parsing json to LUA table: (invalid json string)

this is where I send the data:

EnergyIdPush = function(domoticz, device, key, secret, remoteName, metric, unit, callback_ID)
local timestamp = os.date("!%Y-%m-%dT%TZ")
local value = device.counter
local metricKind = "total"
local log
local datastring

log = string.format('updating EnergyId ...
by mancide
Wednesday 15 November 2023 14:47
Forum: dzVents
Topic: Error parsing json to LUA table: (invalid json string)
Replies: 15
Views: 2416

Error parsing json to LUA table: (invalid json string)

platform: raspberry pi
OS: Raspbian GNU/Linux 11 (bullseye)
Domoticz:
Version: 2023.2
Build Hash: 19efd03
Compile Date: 2023-07-21 17:23:44
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110]

Hi,

I have a webhook that posts meter readings to a server ...
by mancide
Monday 11 September 2023 11:11
Forum: Other questions and discussions
Topic: test sensor values before storing in database
Replies: 3
Views: 394

Re: test sensor values before storing in database

I don´t think the hardware gateway 'can' solve this problem.

It can´t know how I'm using a sensor. For example, I have a RF sensor in my freezer which should never display 30C. Air temp sensors should display 30C.

Besides that I have temp sensor coming from an RFXCom and from Z-wave. Different ...
by mancide
Monday 11 September 2023 10:40
Forum: Other questions and discussions
Topic: test sensor values before storing in database
Replies: 3
Views: 394

test sensor values before storing in database

Hi,
Is there way to run a script on a new sensor value before it is stored in the value database?

I think it is possible as I once wrote a script that ate all my sensor values...

What I want to do:
1. a sensor value comes in.
2. I want to do some checking (eg. the water temp of my fish pond can ...
by mancide
Tuesday 17 January 2023 10:59
Forum: MQTT Auto Discovery
Topic: zwavejsui -> Domoticz issue
Replies: 3
Views: 600

Re: zwavejsui -> Domoticz issue

I removed the comments on 1 print() line in 1 of my events scripts and it started working again :?:

very, very strange... :o :shock:

It's like my event script was eating all device updates before domoticz could do anything with it...
by mancide
Tuesday 17 January 2023 9:52
Forum: MQTT Auto Discovery
Topic: zwavejsui -> Domoticz issue
Replies: 3
Views: 600

Re: zwavejsui -> Domoticz issue

Hi,
I tried the save. I see the Fibaro universal binary sensor being discovered.
2023-01-17 09:18:50.237 Status: MQTT auto discovery: discovered: vijver temp box/vijver temp box_any_1 (unique_id: zwave-js-ui_0xf46f2a31_25-48-1-Any)
2023-01-17 09:18:50.340 Status: MQTT auto discovery: discovered ...
by mancide
Monday 16 January 2023 16:15
Forum: MQTT Auto Discovery
Topic: zwavejsui -> Domoticz issue
Replies: 3
Views: 600

zwavejsui -> Domoticz issue

Hi,

Since saterday 14/01/2023 15:50, I have an issue with a Fibaro universal binary sensor.
The Fibaro universal binary sensor has 3 DS18B20 temp probes connected.
Normal path:
DS18B20 > fibaro universal binary sensor > Aeotec zwave stick > zwavejsui > mosquitto > Domoticz.

However, I no longer ...
by mancide
Wednesday 19 January 2022 14:10
Forum: Examples & Solutions
Topic: dzVents script to collect real/time data from SAJ solar power inverter
Replies: 4
Views: 5569

Re: dzVents script to collect real/time data from SAJ solar power inverter

Hi,

I have a script that works on my SAJ converter that is connected over ethernet. In my opinion wifi and ethernet should work just the same.
anyway here is my script:


return {
on = {
timer = {
-- timer triggers.. if one matches with the current time then the script is executed
'every ...
by mancide
Thursday 06 January 2022 20:55
Forum: Suggestions
Topic: Sensor data sanity check
Replies: 4
Views: 847

Re: Sensor data sanity check

Hi,

I'm have similar problems.
I have some temp sensor that sometimes report 70C
I have some wallplug energy meters that sometimes report negative values of eg 7000kWh in a hour.

Optional limits on a sensor would be a nice thing to have. Of course it is up to the user to set correct limit values.