updateCustomSensor() not triggering device updated state?

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

Moderator: leecollings

Post Reply
triton
Posts: 15
Joined: Monday 03 April 2017 15:01
Target OS: Linux
Domoticz version: 4.9701
Location: Netherlands
Contact:

updateCustomSensor() not triggering device updated state?

Post by triton »

Hi,

Slowly moving scripts over from lua to dzVents, and I must say dzVents is a charm to work with. Making it easier to do stuff. Thank you. I have a question regarding updateCustomSensor(). I don't know if it is by design. But using that function does not trigger the updated state for other scripts to act on the device. I know I have the same problem with using 'commandArray['UpdateDevice']' in lua. Ended up by using an 'commandArray['OpenURL']' to tirgger the device updated state trigger.

If the behaviour is correct, what should I use to trigger the updated state, or is using an URL call the only option?

Cheers,

Ton
MiloshCZ
Posts: 19
Joined: Monday 23 January 2017 17:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: updateCustomSensor() not triggering device updated state?

Post by MiloshCZ »

Hi, I have same problem. Now I am using url method, but I think, that it is not "nice and clear"
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: updateCustomSensor() not triggering device updated state?

Post by dannybloe »

In the upcoming 2.4 release this should be fixed. Still squashing a couple of little bugs before it's ready.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
triton
Posts: 15
Joined: Monday 03 April 2017 15:01
Target OS: Linux
Domoticz version: 4.9701
Location: Netherlands
Contact:

Re: updateCustomSensor() not triggering device updated state?

Post by triton »

Thanks for the update and the excellent work! Can't wait for the new stable release :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest