Ive been working my items and rules on how to display if my garage is occupied or empty but I could not figure out.
Here is my sitemap:
Text item=garage_car_present
ITEMS:
Contact garage_car_present “Garage Car Present [MAP(car.map):%s]”
RULES:
rule "Car Present"
when
Item garage_ultrasonic_dist received update
then
if (garage_ultrasonic_dist.state <24)
{
sendCommand(garage_car_present, ON)
}
if (garage_ultrasonic_dist.state >30)
{
sendCommand(garage_car_present, OFF)
}
end
Thanks for your immediate response. I tried all but still no luck.
I can see the update in the ultrasonic sensor though.
I have PIR sensor and it shows the status if there are any movements. It does because the output produces either 1 or 0 while the ultrasonic sensor show variable outputs and in decimal number.
Are there any other way to show the status if the garage is empty or occupied using ultrasonic
sensor?