[SOLVED] OH3 UI: Pages > Floor Plans > Marker > Action Commands not working for me

Tags: #<Tag:0x00007fe740da7e18> #<Tag:0x00007fe740da7d28>

Hi All,

I’ve been trying out the Floor Plans Pages editor in OH3 M2.
In the image below, you can see the lightbulb in my breakfast nook room. It’s yellow as it should be because it is ON. When I turn the light OFF, the colour changes to gray. That part works … check!
Screen Shot 2020-11-21 at 6.12.13 PM

The problem is when I click on the lightbulb. When I do that, I get the following options:
Screen Shot 2020-11-21 at 6.14.56 PM

And nothing gets sent to the lightbulb to toggle the state.
I believe it’s because my Action Command in the Marker config window is incorrect:

Not sure what the syntax should be for the Action Command.

Thoughts?

Thanks for your help!

Cheers,
Randy

hi,

working on the same issue and have tested a lot of different variations.

For me this is one is working for mqtt items:

grafik

Thanks @bodo.riepl.

I tried your config but it doesn’t work for me. What it does tell me is that Action Command is likely the state to set the item to. I’ve tried

Action = Toggle Item
Action Command = ON
Action Toggle Command = OFF

however, they don’t seem to work either.

you don’t have to use toggle item as an action, use send command! :slight_smile:

grafik

Meanwhile i’ve tested it with some other items, works like a charm

regards

I tried that initially, but I don’t think it likes the TOGGLE Action Command.
However, “Balkon Schalter” is a Switch just like my item, but I’m using the UPB protocol.

When you’re editing the page, the action won’t be executed on that screen, you’ll get the little baloon with the options (Configure, YAML…) instead.
Action Command = ON, Action Toggle Command = OFF should work, but only when you’re displaying the page outside the editor.

Thanks @ysc.

Is that accomplished by running the Floor Plan Page in “Run Mode”? That’s how I have been doing it. Is there another way to run the Floor Plan Page outside the editor?

No, when you’re in the editor, technically you’re still editing the page even if you’re in “run mode” (meaning you’ll see a live preview but without the actions). You can either:

  • put your page on the sidebar (expand Sidebar & Visibility on the design tab and enable “Show on sidebar”)
  • navigate to it from another page with a “navigate to page” (or “show popup”) action available in several widgets
  • add it to a “tabbed page” then show that page on the sidebar, or as a result of an action.
1 Like

Thanks so much @ysc!!!

It works now!

Cheers,
Randy