Hi
I have been using the Counter Module - to count the number of times someone crosses a PIR.
It works fine.
But I want to be able to reset it each day back to zero.
I can't find a way to do it.
I have tried typing a URL like this:
http://MyIP:8083/ZAutomation/api/v1/dev ... te?level=0
It seems to return ok, but the counter value doesn't change.
Has anyone got any ideas?
Thanks
Tim
Counter Module
-
- Posts: 73
- Joined: 29 Nov 2016 11:26
Re: Counter Module
thats a good point for a new version funktion in this modul.
I like reset the counter manually or automticaly per time
I like reset the counter manually or automticaly per time
-
- Posts: 73
- Joined: 29 Nov 2016 11:26
Re: Counter Module
mayby, the level is only a inner value.
You can set the inner value per JS/Run.
via HTTP example
IP:8083/JS/Run/this.controller.devices.get("CounterTriggeringSensor_13").set("metrics:level",0)
this will work if you loged in.
For automation use the HTTP modul.
additional set a timetrigger and control the HTTP as scene.
I, will hope in the next versoin is this integratet by conter modul!
You can set the inner value per JS/Run.
via HTTP example
IP:8083/JS/Run/this.controller.devices.get("CounterTriggeringSensor_13").set("metrics:level",0)
this will work if you loged in.
For automation use the HTTP modul.
additional set a timetrigger and control the HTTP as scene.
I, will hope in the next versoin is this integratet by conter modul!
Re: Counter Module
Hey!
Terrific that worked. Thank you very much.
Terrific that worked. Thank you very much.
Re: Counter Module
FYI Works for me too. I just got a Philio PST02-1B motion sensor, from which I do feed the motion events to this counter. Ultimately I intend to adapt my office temperature a few degrees C up and down denpending on my presence and duration of my leave. Counter is a nice basic App for that I think. Maybe I end up with a full module for this functionality, but primary aim is to construct it from the basic "Lego" bricks like Counter etc.