is it possible to link a switch state item directly to a channel of type string? How can i add a transformation from the string to a state?
at the moment i link a string item to the chanel and toggle the state of a second item via a rule, but this way i have to use to items which seems false to me… im pretty sure theres a better way but i cannot figure out how to do it.
Depends on your host system and installation method. File locations are described in the docs of each installation method.
Or you could just search for it - it already exists and contains a readme file.
i used etcher to copy the latest iso to an sd card and using a pi4.
Even if i search for a folder “transform” it tells me that theres no such file or directory.
and in the doc theres also no such directoy openHAB on Linux | openHAB.
Should it be at /usr/share/openhab/addons ?
i rebooted the system after installing the MAP transformations
well just found it at ets/openhab. I dont know why the find command didnt worked
it didnt worked. What i want to achieve is the following:
I have a string channel which receives “Online” and “Offline” i want to connect this string channel to a switch item. I want to use the oh:network icon and want the icon to change the color if the thing is connected or not. Im not sure if map is the right way to go for it…
in my custom.map file i have the following definitions:
Online=1
Offline=0
Edit: Ok its finally working! I dont know why, it seems it just had to update Thank you i was searching for hours to achive this
How do i handle white spaces ? I dont get the java description as a key i have ESP ONLINE but “ESP ONLINE” isnt working as a key