Dear all
I actually got an issue while playing with own sitemap and demo.sitemap. I would like to write my own UI using REST client in PHP which at the moment seems to be working.
However today I started to change the way of sitemap setup and followed the idea of Holger Hees sitemap example
sitemap Aarau label="Townhouse" { Frame label="Status" { Group item=Lights label="Licht" { } } Frame label="Steuern" { Group label="Licht" { } } }
Haveing applied this I see Items which are not related to my sitemap or config at all.
Basic UI shows like:
The rest array shows like:
Array ( [0] => stdClass Object ( [widgetId] => Aarau_0 [type] => Frame [label] => Status [icon] => frame [mappings] => Array ( ) [widgets] => Array ( [0] => stdClass Object ( [widgetId] => Aarau_0_0 [type] => Group [label] => Licht [(3)] [icon] => group [mappings] => Array ( ) [item] => stdClass Object ( [members] => Array ( ) [groupType] => Switch [link] => http://localhost:8080/rest/items/Lights [state] => ON [stateDescription] => stdClass Object ( [pattern] => (%d) [readOnly] => [options] => Array ( ) ) [type] => GroupItem [name] => Lights [label] => All Lights [tags] => Array ( ) [groupNames] => Array ( ) ) [linkedPage] => stdClass Object ( [id] => 0000 [title] => Licht [(3)] [icon] => group [link] => http://localhost:8080/rest/sitemaps/Home/0000 [leaf] => 1 ) [widgets] => Array ( ) ) ) ) )
I asume it comes from the demo.sitemap.
But how do I clean those ones out now? Do I need to send a REST delete request to each of them?
Kind regards
Stefan