Hi,
I’m using the latest openhab version and I want to visualize an arrow inside a floor map. This arrow (f7:arrow_up) icon should be rotated and show the actual sun direction. (azimut).
The value is from the astro binding. Background: I want to visualize the direction of the sun in a floor map that shows my solar panels at the roof top and the panels values.
This is the item:
Using the value inside the floor map shows for state and displaystate the following output:
Using this value inside a marker does not work.
I think the problem is that the item state includes the degree Symbol? Or is it because it has decimal values? Is there a way to format the value as integer to use it insider the floor map?
Approach 1:
component: oh-plan-marker
config:
name: New Marker
coords: 477.1872878470009,43.08643103532097
item: Astro_Sonnendaten_Azimut
iconRotation: =item.state
icon: f7:arrow_up
slots:
default: []
does not work
approach 2
component: oh-plan-marker
config:
name: New Marker
coords: 477.1872878470009,43.08643103532097
item: Astro_Sonnendaten_Azimut
iconRotation: =items.Astro_Sonnendaten_Azimut.state
icon: f7:arrow_up
slots:
default: []
also does not work.
As Stefan showed me at github (I first thougt using rotation angle from item state is not supported yet and opened the issue floor map - Item rotation - retrieve angle from item state / value · Issue #16610 · openhab/openhab-addons · GitHub ) it should work basically - anyone maybe has a hint for me?
Thanks in advance!