Page 1 of 1

Problem with devicechanged event

Posted: Monday 28 August 2017 22:47
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.

Re: Problem with devicechanged event

Posted: Tuesday 29 August 2017 7:56
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.