Buttongrid complains on validation errors since upgrade

Hi,

running OH 4.3.9

not sure since when (since I dont edit the sitemap so often, but for sure there was not such issue on 4.x

everything still works fine, but it seems the syntax chaged so it complains:

Validation errors
Sitemap definition has validation errors:
Buttongrid widget for item myKodi_input, syntax error in button command: UP="Up"=f7:arrowtriangle_up
Buttongrid widget for item myKodi_input, syntax error in button command: LEFT="Left"=f7:arrowtriangle_left
Buttongrid widget for item myKodi_input, syntax error in button command: RIGHT="Right"=f7:arrowtriangle_right
Buttongrid widget for item myKodi_input, syntax error in button command: DOWN="Down"=f7:arrowtriangle_down
Buttongrid widget for item BroadlinkCommand, syntax error in button command: projektor_up="Up"=f7:arrowtriangle_up
Buttongrid widget for item BroadlinkCommand, syntax error in button command: projektor_left="Left"=f7:arrowtriangle_left
Buttongrid widget for item BroadlinkCommand, syntax error in button command: projektor_right="Right"=f7:arrowtriangle_right
Buttongrid widget for item BroadlinkCommand, syntax error in button command: projektor_down="Down"=f7:arrowtriangle_down

sitemap:

    Frame label="KODI Remote" visibility=[Television==ON] {
        Buttongrid item=myKodi_input columns=3 buttons=[1:2:UP="Up"=f7:arrowtriangle_up, 2:1:LEFT="Left"=f7:arrowtriangle_left, 2:2:Select="OK", 2:3:RIGHT="Right"=f7:arrowtriangle_right, 3:2:DOWN="Down"=f7:arrowtriangle_down, 4:1:Back="Back", 4:3:Home="Home"] staticIcon=screen
    }
    Frame label="Projektor Remote" visibility=[nebula==ON] {
        Buttongrid buttons=[1:2:projektor_up="Up"=f7:arrowtriangle_up, 2:1:projektor_left="Left"=f7:arrowtriangle_left, 2:2:projektor_ok="OK", 2:3:projektor_right="Right"=f7:arrowtriangle_right, 3:2:projektor_down="Down"=f7:arrowtriangle_down, 4:1:projektor_back="Back", 4:2:projektor_focus="Focus", 4:3:projektor_home="Home"] item=BroadlinkCommand staticIcon=projector
    }

according to the documentation, this is still the syntax:

EDIT: ignore, i see now the new syntax, each button new row…

Both syntaxes should be supported.

Just with a quick look, I don’t see a problem with your definition.

Maybe try to put double quotes around the icon name.

Hi,

double quotes didnt help.

Just to mention it, I’m editing the sitemap via MainUI, not directly in a file. and MainUI is the one complaining every time I save a sitemap but gives an option to save anyway, and it works.

It’s just annoying so I will rewrite it to a new syntax…I have 2 of those buttongrids, i rewrote 1, now its complaining just about the other one.

There are plans to replace specific sitemap parser in Main UI by our sitemap parser in core framework (the one used when loading file config).

I see you are running 4.3.9. If I remember well, I fixed this in a more recent version.

Hi,

yes, running latest stable 4 version as my hardware is rp3 with 32bit OS

I think the fix is not in 4.3.9, only in 5.0. I tried your sitemap in 5.1 and there is no error.