[OPEN/CLOSED] to other status

pir
contact
Tags: #<Tag:0x00007f1e5ca760d0> #<Tag:0x00007f1e5ca75f40>
(Arkadiusz ) #1

Hello
I’m using PIR Sensor to detect motion. It’s simply connected to GPIO pin.
I created item:

Contact PirSensor "Czujnik ruchu [%s]" <camera> {gpio="pin:23 activelow:yes"} 

and sitemap:

Text item=PirSensor

and it looks as follow:
image

Is there any way to change OPEN/CLOSED status to DETECTED MOTION/NOT DETECTED. Or some green/red LEDs?

0 Likes

(Sascha Billian) #2

Look for mappings

1 Like

(Peter) #3

To change OPEN/CLOSED to another text, you can use the MAP Transformation service. For using dynamic icons you can look here

1 Like