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. OpenHab Questions

OpenHab Questions

Scheduled Pinned Locked Moved OpenHAB
openhabopenhab mqtt
2 Posts 2 Posters 1.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.
  • ChaoticC Offline
    ChaoticC Offline
    Chaotic
    wrote on last edited by
    #1

    I've recently started building mysensor network and using openhab (and a MQTT gateway) to interface with them.

    Currently I only have a sleep light but I have the parts for ~10 sensors on order.

    I'm stuck on the openhab side of things now through.

    I want to be able to send 2 things and I'm not sure the best way to do that.

    1. I want to send the current time so that the sensor can update the RTC.
      I believe I can do this with a cron job and the NTP plugin and then just handle it via the node.

    2. I want to send a start/end time for the sleep light or send a start/end command at certain times. For both of these options I'd need a way to select the time from openhab and I can't figure that part out. I believe once I get the openhab part working It will be easy enough to handle it in the arduino but I want to know how the data is going to come in before I do that.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fred
      wrote on last edited by
      #2

      Hello Chaotic,

      You can trigger openhab rules and commands based on time conditions. Look at https://github.com/openhab/openhab/wiki/Rules#time-based-triggers for more details.

      As an example, I am using it to turn on outdoor lights in the evening and turn then off in the morning.

      Hope this helps.

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


      16

      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