I’m running OH3 (openhabian 1.6) on RPi4.
When creating a floorplan, I’d like to use custom icons for various markers.
I have successfully tried icons from openhab: and f7: sets; however, custom icons do not work for me.
I’ve uploaded my icons to $conf/icons/classic folder as both png and svg.
Let’s say I have an icon: $conf/icons/classic/myicon.svg. Then I create a marker:
markers:
- component: oh-plan-marker
config:
name: MyLight
coords: 500,500
item: mylight_switch
icon: myicon
iconColor: '=(items.mylight_switch.state === "ON") ? "green" : "gray"'
action: toggle
actionItem: mylight_switch
actionCommand: ON
actionCommandAlt: OFF
slots:
default: []
The marker does show neither in Run mode nor in live page.
I may be doing something wrong: could please someone show me a working example?