Dear all,
I stuck with creating a proper entry to Main UI Pages to change Air Ventilation :-/
With some help from Udo I was able to get an entry in page overview, but with permanent options
Use a Command Options Action which will let you set a list of value=label options. When you click on the entry with a given label it should send the value as a command to the Item.
my 2 cents here, for me this works as well, i have made the action commands in the widget corresponding with the state description pattern “options” in the item. Not sure if this is the trick but probably worth a try?
I found the missing piece
I only have had item configured to show the actual state, but missed actionItem as well.
After that was configured it’s also working like a charm
now i have a follow up question, also realizing that there is an item and an action item. Out of curiosity i have removed the item from the widget code and added a random command button entry. It still works.
Is the “item” not obsolete here or is there a use case where the item is important as well if you can define whatever actionOptions in the widget, of course related to the actionItem who needs to understand the command.
On the other hand I have a Homematic Keymatic where you have 2 channels, one for locking / unlocking the door and one as door opener. I can´t get this work in one widget command popup as i cannot define 2 actionItems, can I ?
You can have a different display Item and actionItem. For example, a widget that shows the open/closed state of a garage door (Contact Item) that when clicked it sends a command to the garage door opener (Switch Item).
You cannot have more than one Action Item. How would it choose between the two? How would it know which one you mean to send the command to?
The Item is only needed if you leave some of the properties at their defaults. For example, if you don’t override the label it will use the label from the Item defined in the item property.
I actually have a Garagedoor widget that contains 2 items, one sensor for the status and one for the opener that is triggered with the command option click to pop up the option to open to avoid someone by mistake is pushing the button in the UI.
still i cannot get my head around why the sensor would be useful to reference in the link to command part of the widget but to have the itemLock as item is obsolete for my use case.
just curiosity, nothing important to know though…