Counter Module

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
timb
Posts: 53
Joined: 03 Jan 2015 00:10

Counter Module

Post by timb » 01 May 2016 20:13

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

tomshuette
Posts: 60
Joined: 29 Nov 2016 11:26

Re: Counter Module

Post by tomshuette » 29 Nov 2016 18:11

thats a good point for a new version funktion in this modul.
I like reset the counter manually or automticaly per time

tomshuette
Posts: 60
Joined: 29 Nov 2016 11:26

Re: Counter Module

Post by tomshuette » 30 Nov 2016 14:32

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!

timb
Posts: 53
Joined: 03 Jan 2015 00:10

Re: Counter Module

Post by timb » 04 Dec 2016 14:10

Hey!
Terrific that worked. Thank you very much.

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Counter Module

Post by pz1 » 04 Dec 2016 17:16

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.

Post Reply