Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. OpenHAB
  4. How to create new icons for openhab ? (Solved)

How to create new icons for openhab ? (Solved)

Scheduled Pinned Locked Moved OpenHAB
2 Posts 1 Posters 3.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shasha
    wrote on last edited by shasha
    #1

    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 directory

    Then 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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shasha
      wrote on last edited by shasha
      #2

      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 state

      Shasha

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      36

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular