Problem with devicechanged event

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
fabix68
Posts: 10
Joined: Tuesday 22 December 2015 6:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Problem with devicechanged event

Post by fabix68 »

Hello,
Sorry for my English
I have a problem using dzVents scrip.
I used a script that updates my virtual meters based on the value of some sensors.

Code: Select all

  - Update the devices
             domoticz.devices ('Autoconsumo').updateElectricity(autoconsumo_attuale, domoticz.devices('Autoconsumo').WhTotal)
             domoticz.devices ('Consumed').updateElectricity(consumata_attuale, domoticz.devices ('Consumed').WhTotal)
             domoticz.devices ('Exported').updateElectricity(esportata_attuale, domoticz.devices ('Exported').WhTotal)
 

The problems arise as I try to send updated sensors to the Influxdb database.
Domoticz does not detect the change of sensors and therefore does not send the data.
If I manually update sensors via CURL, it works regularly.
It seems that updating sensors, via scripts, does not activate the devicechanded event.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Problem with devicechanged event

Post by dannybloe »

That will be solved hopefully in the next dzVents release. We are currently on it. Takes a little though. So for now you could use OpenURL instead and use the update api perhaps.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest