Make a switch count variable up or down?

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
meanmrgreen
Posts: 9
Joined: Sunday 13 November 2016 11:05
Target OS: -
Domoticz version:
Contact:

Make a switch count variable up or down?

Post by meanmrgreen »

Im installing a cat door this spring and want to check how many cats are indoor and outdoor.

to do this i want to install a switch on either side of the door so when the inside flap goes up it signals domoticz the variable "Number of cats inside" and give it a +1

when outside flap goes up i want this variable to go -1

Is this possible with domoticz? lua? blockly?
jkimmel
Posts: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

Re: Make a switch count variable up or down?

Post by jkimmel »

Rfxcom
Raspi 4
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest