Hi OH Users,
I have a few z-wave motion sensors and I would like to see the active sensor on oh-swiper-card.
At this moment I am using oh-label-card with the code below:
label: '=(items.Ruch_WC.state == "ON") ? "WC" : (items.Ruch_wiatrolap.state
=="ON") ? "Wiatrolap" : (items.Ruch_schody.state =="ON") ? "Schody" :
(items.Ruch_salon.state =="ON") ? "Salon" : (items.Ruch_biuro.state =="ON")
? "Biuro" : "Bezruch"'
But I think that this will work better in oh-swiper-card. The swiper card needs to swipe automatically to last activated sensor. Is there there any way to do that ?
component: oh-swiper-card
config: {}
slots:
default:
- component: oh-label-card
config:
item: Ruch_WC
title: WC
- component: oh-label-card
config:
item: Ruch_biuro
title: Biuro
Best regards,
B