How to create new icons for openhab ? (Solved)
-
Hello!
I would like to create icons for openhab. For instance I want a motion detector icon.
what I did is I created 2 icons files motion-open.png and motion-closed.png 32x32 that
I put in the openhab/webapps/images directoryThen in my items file I specify the <motion> option to tell I want to use this icon.
These are the only information I found in the wiki.This does not seem to work.
anything I should pay attention to so the app will display this icon ?
many thanks
-
So it does work !
I was not activating the item so the closed icon was not displayed on the screen. As soon as I was updating the state
to open or closed the icon was here !!So it has to do with the fact that when the app starts the state of the item is not known and the system is unable to
select the proper icon.So I added an other icon with no state this time "motion.png" this one is displayed on start up !!!.
Several icons are needed :
a generic one "myicon.png" to be used when the state is not known
various icons "myicon-statex.png" to be used when the icon is in the x stateShasha
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login