Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. shasha
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by shasha

    • shasha

      How to receive data on openhab using UDP ? (solved)
      Troubleshooting • • shasha  

      2
      1
      Votes
      2
      Posts
      5323
      Views

      Jasper van Zuijlen

      I had the same issue and found this post quite fast but although it says "(solved)" I found no solution. I am leaving my reply here for future reference. What I did to fix the "It will be discarded" message: [openhab.cfg] This sets up the receiving end of the binding i.e. the server that binds the 5005 port. udp:port=5005 [default.items] This sets up the openhab binding to the string. Notice the asterisk after the IP address; because the client will connect to the server it will get assigned a random free port. The asterisk will catch all ports a client will get solving the "No channel is active or defined issue". String String_FF_Bath_Test "Test String[%s]" {udp="<[127.0.0.1:\*:'REGEX((.\*))']"} [python] Just some test code to easily send a UDP message to openhab. import socket UDP_IP = "127.0.0.1" UDP_PORT = 5005 MESSAGE = "Hello world!" print "UDP target IP:", UDP_IP print "UDP target port:", UDP_PORT print "message:", MESSAGE sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
    • shasha

      How to create new icons for openhab ? (Solved)
      OpenHAB • • shasha  

      2
      0
      Votes
      2
      Posts
      3901
      Views

      shasha

      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
    • shasha

      openhab sendCommand problem with serialbinding (Solved)
      OpenHAB • • shasha  

      4
      0
      Votes
      4
      Posts
      4552
      Views

      Dave Dan

      @Shasha, have you tried this? https://github.com/openhab/openhab/wiki/Rules#concurrency-guard I'm currently trying the same (because I have the same issue) and wondering if you tried this before.
    • shasha

      Difficulties with openhab
      Troubleshooting • • shasha  

      6
      0
      Votes
      6
      Posts
      5147
      Views

      ewgor

      @kimnguu204 have you managed to control your relays and also to get their status?
    • shasha

      How to use MyMessage .setDestination ??
      Troubleshooting • • shasha  

      4
      0
      Votes
      4
      Posts
      2589
      Views

      shasha

      hum you are right !! thank you !
    • shasha

      sensor library compile problem after a change (SOLVED)
      Troubleshooting • • shasha  

      5
      0
      Votes
      5
      Posts
      4005
      Views

      hek

      Yep, we've defined MINIMAL in the bundled RF24 to keep size at a minimum.