Reset Virtual Counter

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
juankar
Posts: 223
Joined: Saturday 30 August 2014 20:20
Target OS: Linux
Domoticz version: 4.
Location: Spain
Contact:

Reset Virtual Counter

Post by juankar »

Is there any way to reset a virtual counter ?
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Reset Virtual Counter

Post by sincze »

Maybe 'update' the virtual counter with one of tje JSON commands??
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
juankar
Posts: 223
Joined: Saturday 30 August 2014 20:20
Target OS: Linux
Domoticz version: 4.
Location: Spain
Contact:

Re: Reset Virtual Counter

Post by juankar »

Yes, it waas my first option but I didn't get a reset (I got a Err as return).
Well, the way that can not fail is.... delete the counter and créate it again. It never fails :mrgreen:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest