Hello, Is there a way with Dzvents to update the "rawdata" or "sValue" without sending a notification?
Thank you
Update sValue without notify
Moderator: leecollings
-
Renber
- Posts: 41
- Joined: Thursday 04 February 2021 8:10
- Target OS: Linux
- Domoticz version: Beta
- Location: Belgium
- Contact:
Update sValue without notify
Linux Debian 12 Server: Domoticz beta + Dashticz beta + Node-Red + Homebridge
- waltervl
- Posts: 6691
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Update sValue without notify
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.
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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
Renber
- Posts: 41
- Joined: Thursday 04 February 2021 8:10
- Target OS: Linux
- Domoticz version: Beta
- Location: Belgium
- Contact:
Re: Update sValue without notify
Thanks for your reply but this command sends a notification and updates the history.
Linux Debian 12 Server: Domoticz beta + Dashticz beta + Node-Red + Homebridge
-
hoeby
- Posts: 531
- Joined: Saturday 02 June 2018 11:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2022.1
- Location: Echt, Netherlands
- Contact:
Re: Update sValue without notify
I saw this thread, and have read what you have written.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.
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?
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
-
Renber
- Posts: 41
- Joined: Thursday 04 February 2021 8:10
- Target OS: Linux
- Domoticz version: Beta
- Location: Belgium
- Contact:
Re: Update sValue without notify
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 ?
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 ?
Linux Debian 12 Server: Domoticz beta + Dashticz beta + Node-Red + Homebridge
-
hoeby
- Posts: 531
- Joined: Saturday 02 June 2018 11:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2022.1
- Location: Echt, Netherlands
- Contact:
Re: Update sValue without notify
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
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
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
-
Renber
- Posts: 41
- Joined: Thursday 04 February 2021 8:10
- Target OS: Linux
- Domoticz version: Beta
- Location: Belgium
- Contact:
Re: Update sValue without notify
does not work either, I still receive notificationsTriggering without write in history or notificaties could be done with &parsetrigger=false
Linux Debian 12 Server: Domoticz beta + Dashticz beta + Node-Red + Homebridge
- jacobsentertainment
- Posts: 223
- Joined: Thursday 01 October 2020 1:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021-1
- Location: Not @ home
- Contact:
Re: Update sValue without notify
Not sure what the idea is but correct me if I'm wrong, you want to update without knowing there is a updateRenber 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
You have some script running that sends a notification on update, why not turn it around and only send a notification on specific condition!
Who is online
Users browsing this forum: No registered users and 1 guest