Page 1 of 1

Update sValue without notify

Posted: Saturday 20 November 2021 7:28
by Renber
Hello, Is there a way with Dzvents to update the "rawdata" or "sValue" without sending a notification?

Thank you

Re: Update sValue without notify

Posted: Saturday 20 November 2021 7:44
by waltervl
Use .updateQuiet(nValue, sValue)
Could also be that below function is working for you:
etValues(nValue,[ sValue1, sValue2, …]):
Function. Generic .salternative method to update device nValue, sValues. Uses domoticz JSON API to force subsequent pushes like influxdb and MQTT. nValue required but when set to nil it defaults to current nValue. sValue parms are optional and can be many. 3.0.8 If one of sValue parms is ‘parsetrigger’, subsequent eventscripts will be triggered.

Re: Update sValue without notify

Posted: Saturday 20 November 2021 17:25
by Renber
Thanks for your reply but this command sends a notification and updates the history.

Re: Update sValue without notify

Posted: Saturday 20 November 2021 19:09
by hoeby
waltervl wrote: Saturday 20 November 2021 7:44 Use .updateQuiet(nValue, sValue)
Could also be that below function is working for you:
etValues(nValue,[ sValue1, sValue2, …]):
Function. Generic .salternative method to update device nValue, sValues. Uses domoticz JSON API to force subsequent pushes like influxdb and MQTT. nValue required but when set to nil it defaults to current nValue. sValue parms are optional and can be many. 3.0.8 If one of sValue parms is ‘parsetrigger’, subsequent eventscripts will be triggered.
I saw this thread, and have read what you have written.
Have i understand it correct, when sending this json. The device is update but state keeps the same?

http://192.168.xxx.xxx:8080/json.htm?ty ... nvalue=nil

I tried it, but i am doing something wrong.
I switch a device On then fired the json line. The device goes Off
Was my json line correct or what is the correct line to update only the last seen time without changing switch state and do no triggers?

Re: Update sValue without notify

Posted: Saturday 20 November 2021 20:30
by Renber
Your order doesn't work with me either. He takes the 'nile' for a '0'.
Maybe you will find a solution with Dzvents and the command dz.devices (idx) .Touch ()
Normally it updates the lastupdate without writing anything to the database.
Otherwise to date I haven't found any way to refresh svalue without triggering a history write and without notification.
An idea ?

Re: Update sValue without notify

Posted: Saturday 20 November 2021 20:55
by hoeby
Triggering without write in history or notificaties could be done with &parsetrigger=false

Thanks for you answer, but dz.devices(idx).Touch() isn't going to work. I need a mqtt command (prefer), to get it done from nodered

Re: Update sValue without notify

Posted: Saturday 20 November 2021 21:45
by Renber
Triggering without write in history or notificaties could be done with &parsetrigger=false
does not work either, I still receive notifications

Re: Update sValue without notify

Posted: Sunday 21 November 2021 12:43
by jacobsentertainment
Renber wrote: Saturday 20 November 2021 7:28 Hello, Is there a way with Dzvents to update the "rawdata" or "sValue" without sending a notification?
ce
Thank you
Not sure what the idea is but correct me if I'm wrong, you want to update without knowing there is a update :?
You have some script running that sends a notification on update, why not turn it around and only send a notification on specific condition!