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. Sensor and Children

Sensor and Children

Scheduled Pinned Locked Moved OpenHAB
5 Posts 2 Posters 4.3k 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.
  • M Offline
    M Offline
    marceltrapman
    Mod
    wrote on last edited by
    #1

    Is it wanted behaviour that a sensor, let's say with 1 dht sensor (== 2 children), sees each child as a different 'thing' and not just one?

    Fulltime Servoy Developer
    Parttime Moderator MySensors board

    I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
    I have a FABtotum to print cases.

    T 1 Reply Last reply
    0
    • M marceltrapman

      Is it wanted behaviour that a sensor, let's say with 1 dht sensor (== 2 children), sees each child as a different 'thing' and not just one?

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

      @marceltrapman Yes! :-) But of course we're open to other ideas. For example, I've a node with three lights together with a temperature and humidity sensor.
      In OpenHAB I've five things.

      M 1 Reply Last reply
      0
      • T TimO

        @marceltrapman Yes! :-) But of course we're open to other ideas. For example, I've a node with three lights together with a temperature and humidity sensor.
        In OpenHAB I've five things.

        M Offline
        M Offline
        marceltrapman
        Mod
        wrote on last edited by
        #3

        @TimO The zwave binding sees a multi sensor (temp, humid, lux, movement) as one thing. This makes that they show up as one thing in paper ui as well. Makes management a lot easier (although I must admit that the amount of items is much much more).

        Just thinking out loud :)

        Fulltime Servoy Developer
        Parttime Moderator MySensors board

        I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
        I have a FABtotum to print cases.

        T 1 Reply Last reply
        0
        • M marceltrapman

          @TimO The zwave binding sees a multi sensor (temp, humid, lux, movement) as one thing. This makes that they show up as one thing in paper ui as well. Makes management a lot easier (although I must admit that the amount of items is much much more).

          Just thinking out loud :)

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

          @marceltrapman I see the big advantage in that. But there is a big disadvantage too. This way we need to hardcode every possible thing, like in zwave: https://github.com/openhab/org.openhab.binding.zwave/tree/master/ESH-INF/thing

          So, if someone creates a relay with temperature node: we need a new thing.
          If a second relay is added to node above: an additional thing.
          A third relay ...
          A irrigation controller with 32 valves ... :D

          An additional problem: how do we distinguish between different child ids? Currently you are free to use child id 1-254 for a node. If I hardcode this, the child id in the binding needs to match the child id in the sketch.

          M 1 Reply Last reply
          0
          • T TimO

            @marceltrapman I see the big advantage in that. But there is a big disadvantage too. This way we need to hardcode every possible thing, like in zwave: https://github.com/openhab/org.openhab.binding.zwave/tree/master/ESH-INF/thing

            So, if someone creates a relay with temperature node: we need a new thing.
            If a second relay is added to node above: an additional thing.
            A third relay ...
            A irrigation controller with 32 valves ... :D

            An additional problem: how do we distinguish between different child ids? Currently you are free to use child id 1-254 for a node. If I hardcode this, the child id in the binding needs to match the child id in the sketch.

            M Offline
            M Offline
            marceltrapman
            Mod
            wrote on last edited by
            #5

            @TimO Hmm, why hardcode?

            I give the sensor a name and version (which is not yet used by the binding if I am correct).
            I define the children which have ids and types.
            So, the binding can recognise the parent (name, version) and the child (id, type).

            I am not yet familiar with the internals of OpenHAB and a binding (maybe I should learn that first :) ) but I assume (or should I say hope) that you can 'glue' them together on the fly...

            Fulltime Servoy Developer
            Parttime Moderator MySensors board

            I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
            I have a FABtotum to print cases.

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            11

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            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