Note that the floorplan-image as well as the marker-icons are both based on SVGs so they should be able to scale.
However when looking into the built html they automatically get a height and width of 40 which is by the way also mentioned in the dialog box of the marker.
I also noticed that this size of 40 (or as configured) is always reset on the icon during zooming to exactly that number but not recomputed based on the zoom level. The definition of the 40,40 setting can be found in the oh-map-marker-class
I even looked at the OH code of the UI and it seems it is based on the leaflet.js-library. Looking around in the code (like map/index.js and oh-map-page.vue) I do see parameters that disallow zoom-animations and zooming at all (noZoomOrDrag, noZoomAnimation, noMarkerZoomAnimation) but nothing that deals with the zoom computation of the markers which leads me to the thinking that this is a behaviour of the the leaflet library itself and may be hard to be changed (which would be a pity)?
However, this doesn’t work. I also tried using quotes or extra braces but neither even opens the img browser.
When I use “inspect element” at the button, in either case (even the working one with the static item name) it shows up as [object Object], which confuses me even a bit more:
an obvious issue i see is that the + is at the prefix. I don’t think the system recognise this as a plus, so it should be prefix + with a space between prefix and als after what comes
=props.prefix + ‘_ControlFanLevel’
Your Item should be called „prefix“ in the parameter name.
Should have clarified, the example with the other button (ControlFanLevel) works. The one with the photo action doesn’t work. Just to be sure, I tried it with a space
I wouldn’t see it as a bug, as this JSON array syntax is part of the documentation (or at least part of the editor-tooltip). There might be potential to simplify the syntax for non experienced users - but maybe they wouldn’t use these mechanics anyway…
Array of URLs or objects representing the images. Auto-refresh is not supported.
Edit in YAML or provide a JSON array, e.g. [ "url1", { "item": "ImageItem1", "caption": "Camera" } ]
Objects are in the photos array format with an additional item property to specify an item to view.
AFAIK the - item: XYZ format is a YAML-specific representation of arrays and just can’t handle expressions as they get parsed differently than the JSON array
Yes, I saw the JSON array in the docu before, just didn’t escape it, but tried with single quotes and double quotes mixed, with no chance. Then I discovered that the -item Notation works as well and thought “nice, then you don’t need quotes!” but that didn’t work out and I couldn’t understand why not.
How did you get OH3 running with hyperion.ng?
I do find hyperion as a thing in OH3, but I am not able to get it integrated as equipment/point to actually control my lights. Can you explain me how to do it, or how to debug it?
Does someone know how to hide a block or a widget on smaller screens? I tried 0 percent in the column options as a default width but that is not working.
Edit: To answer my own question: visible: =(device.desktop) == true
Hmm good question. If remeber right you created a widget für homematic thermostats. Could post the full widget and the items and rules. I Think that was my question
// import org.eclipse.xtext.xbase.lib.Functions
// val String filename = "heizung-raeume.rules"
val Number tempHigher = 22.5
val Number tempComfort = 21.0
val Number tempMid = 16.5
val Number tempLower = 16.5
val Number tempChill = 15.0
val Number tempAway = 15.0
val Number tempAwayLonger = 13.0
val Number tempOff = 5.0
//Heizung Auswertung Schnellauswahl (Sitemap)
rule "Jana_Zimmer_Heizung Auswertung Schnellauswahl (Sitemap)"
when
Item Jana_Zimmer_Preset received command
then {
switch (receivedCommand){
case 0: Jana_Zimmer_Manu.sendCommand(tempLower)
// case 1: Jana_Zimmer_Manu.sendCommand(tempComfort)
case 2: Jana_Zimmer_Manu.sendCommand(tempHigher)
case 3: Jana_Zimmer_Manu.sendCommand(tempOff)
case 4: Jana_Zimmer_Manu.sendCommand(tempMid)
case 1: AutoMode_Jana_Zimmer.sendCommand(ON)
}
// Jana_Zimmer_Preset.postUpdate(-1)
}
end