I am trying to replicate what I created in OH 2.5 for my Alarm system (using sitemaps). I am using OH3 now and want to use Pages.
I am however stuck on this one:
In my sitemap version I used mappings as follows for my DISARM, STAY and EXIT buttons:
Switch item=Partition3_Disarm mappings=[ON="DISARM"] label="Partition 3 Disarm"
Switch item=Partition3_Stay mappings=[ON="STAY"] label="Partition 3 STAY"
Switch item=Partition3_Exit mappings=[ON="EXIT"] label="Partition 3 Exit"
However I cannot work out how to achieve this with OH 3 and Pages.
I have tried adding “State Description” Meta Data, but still only get the following:
The YAML code for the list items is:
title: Partition 3 DISARM
Any ideas on how to achieve this?
Should be in the items state descriptions meta data and then in the options field.
At least that works for me (i.e. 1=Home, 2=Away), each option on one line.
Thansk for the reply. Tried:
value: " "
Still get the same (just a switch and not a “Push Button”
Starting to think that maybe this requires a Widget - Though strange that there would not be a default for this since there are options for RollerShutter, Play etc?
I got the following setup for my home status:
On a page:
The item is a simple number item with the following state description:
value: " "
If i then click the page card I get a list of my above item states to choose from (not seperaten Buttons though).
I think I have found a workable solution now:
- component: oh-list-item
Gives me a clickable link that does what the sitemap version did. Will have to work on alignment etc. though:
Thanks - but the link doesn’t work for me:
Oops! That page doesn’t exist or is private.
EDIT - Fixed.
Hmmm…but why do I have still to fiddle around with some custom written code in OH3? Something like this should be possible directly from the GUI IMHO