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. Development
  3. What is proper presentation type for binary push button? S_BINARY ? And how make controller distinguish between binary button (RO) and binary switch (RW)?

What is proper presentation type for binary push button? S_BINARY ? And how make controller distinguish between binary button (RO) and binary switch (RW)?

Scheduled Pinned Locked Moved Development
binary switchespresentationbinary
2 Posts 2 Posters 273 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
    matkor
    wrote on last edited by
    #1

    Assuming I have light switch/push button with only readable state (via pin on Arduino).
    Following https://www.mysensors.org/download/serial_api_20#sensor-types ,should I present it via:

    present(CHILD_ID, S_BINARY);
    

    ?

    Later, having binary switch (which should be settable from controller) how it should be presented?

    How controller can distinguish between RO button and RW switch?

    mfalkviddM 1 Reply Last reply
    0
    • M matkor

      Assuming I have light switch/push button with only readable state (via pin on Arduino).
      Following https://www.mysensors.org/download/serial_api_20#sensor-types ,should I present it via:

      present(CHILD_ID, S_BINARY);
      

      ?

      Later, having binary switch (which should be settable from controller) how it should be presented?

      How controller can distinguish between RO button and RW switch?

      mfalkviddM Online
      mfalkviddM Online
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @matkor it is currently not possible. https://github.com/mysensors/MySensors/issues/1312 suggests a solution but there has been no forward progress lately.

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


      15

      Online

      11.7k

      Users

      11.2k

      Topics

      113.0k

      Posts


      Copyright 2019 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