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. Requesting time from Openhab

Requesting time from Openhab

Scheduled Pinned Locked Moved OpenHAB
4 Posts 2 Posters 1.7k Views 2 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.
  • bryntB Offline
    bryntB Offline
    brynt
    wrote on last edited by
    #1

    Hey Guys,
    I appreciate all the answers given to all the questions before mine in helping me figure out this stuff. I have a question about the requestTime() function and how we can handle it when being sent to Openhab. I have set up openhab with the MySensors binding as was talked about in another thread, and all looks good on that front. But, I am trying to get a response back to the node from the requestTime() and I can't figure out how to handle this request from the Openhab side of things. I can see the message come into the Openhab log ...

    02:13:23.415 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSP:MSG:READ 101-101-0 s=255,c=3,t=1,pt=0,l=0,sg=0:
    02:13:23.419 [DEBUG] [rs.internal.protocol.MySensorsReader] - 101;255;3;0;1;
    

    But how do I get Openhab to react to this message?

    I have tried adding a dummy item with this id and setting up a rule to try to intercept but to no avail, the rule with...
    received update or received command don't seem to fire, so I am at a loss.

    Any help would be much appreciated for this.
    Thanks

    T 1 Reply Last reply
    0
    • bryntB brynt

      Hey Guys,
      I appreciate all the answers given to all the questions before mine in helping me figure out this stuff. I have a question about the requestTime() function and how we can handle it when being sent to Openhab. I have set up openhab with the MySensors binding as was talked about in another thread, and all looks good on that front. But, I am trying to get a response back to the node from the requestTime() and I can't figure out how to handle this request from the Openhab side of things. I can see the message come into the Openhab log ...

      02:13:23.415 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSP:MSG:READ 101-101-0 s=255,c=3,t=1,pt=0,l=0,sg=0:
      02:13:23.419 [DEBUG] [rs.internal.protocol.MySensorsReader] - 101;255;3;0;1;
      

      But how do I get Openhab to react to this message?

      I have tried adding a dummy item with this id and setting up a rule to try to intercept but to no avail, the rule with...
      received update or received command don't seem to fire, so I am at a loss.

      Any help would be much appreciated for this.
      Thanks

      T Offline
      T Offline
      TimO
      Hero Member
      wrote on last edited by
      #2

      @brynt I suppose you're refering to the Openhab2 binding.

      The answer for an request for time is not implemented yet. I need to look into this, shouldn't be that hard though.

      Till I'm able to implement this you may implement a rule with the "expert mode" ;-)

      https://github.com/tobof/openhab2-addons/wiki/Expert-mode-(rule-based)

      1 Reply Last reply
      0
      • bryntB Offline
        bryntB Offline
        brynt
        wrote on last edited by
        #3

        Hi Tim,

        Thanks for the response. I did try to add the MySensors Message binding from the UI but it seems to fail when adding as a new thing and just sits there as shown below.

        0_1478366587410_upload-4a152b27-4634-41f8-ba64-a6ed526352be

        When I first try to add the Mysensors message you get the following

        10:34:13.403 [WARN ] [io.rest.core.thing.ThingTypeResource] - Cannot find channel type: mysensors:mySensorsMessage-channel
        

        and then once saving

        10:35:54.128 [WARN ] [ore.thing.internal.ThingRegistryImpl] - Cannot create thing. No binding found that supports creating a thing of type mysensors:mysensorsMessage.
        10:35:54.245 [INFO ] [smarthome.event.ThingAddedEvent     ] - Thing 'mysensors:mysensorsMessage:8764e963' has been added.
        

        As I said I had tried to create a custom sensor thing with the child id 255 to intercept the message in a rule but did not seem to want to work either. Anyway not a big deal at least I can get everything else working fine.

        Great work by the way :)

        Thanks again for the response.

        T 1 Reply Last reply
        0
        • bryntB brynt

          Hi Tim,

          Thanks for the response. I did try to add the MySensors Message binding from the UI but it seems to fail when adding as a new thing and just sits there as shown below.

          0_1478366587410_upload-4a152b27-4634-41f8-ba64-a6ed526352be

          When I first try to add the Mysensors message you get the following

          10:34:13.403 [WARN ] [io.rest.core.thing.ThingTypeResource] - Cannot find channel type: mysensors:mySensorsMessage-channel
          

          and then once saving

          10:35:54.128 [WARN ] [ore.thing.internal.ThingRegistryImpl] - Cannot create thing. No binding found that supports creating a thing of type mysensors:mysensorsMessage.
          10:35:54.245 [INFO ] [smarthome.event.ThingAddedEvent     ] - Thing 'mysensors:mysensorsMessage:8764e963' has been added.
          

          As I said I had tried to create a custom sensor thing with the child id 255 to intercept the message in a rule but did not seem to want to work either. Anyway not a big deal at least I can get everything else working fine.

          Great work by the way :)

          Thanks again for the response.

          T Offline
          T Offline
          TimO
          Hero Member
          wrote on last edited by
          #4

          @brynt So, I was wrong: the answer to I_TIME was already implemented, but a bug was preventing it to work in combination with skipStartupCheck. I've fixed the bug and uploaded a current jar.

          Please show me your configuration for the MySensorsMessage Thing. It should work.

          A custom sensor with child id 255 expects a custom value, not an internal message, so it must not work. :-)

          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