how to add binary sensor via MQTT?

Homepage Forums Generally how to add binary sensor via MQTT?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #33389
    suto.norbert
    Participant

    Hello there,

     

    Is it possible to add a binary sensor via MQTT? For example a moisture sensor that is two state On/Off.
    <div id=”gtx-trans” style=”position: absolute; left: 402px; top: 117px;”>
    <div class=”gtx-trans-icon”></div>
    </div>

    • This topic was modified 1 year, 4 months ago by suto.norbert.
    #33391
    Admin
    Keymaster

    No, sorry. OpenSprinkler only accepts numbers.

    You need a number like 0/1, but not On/Off

    #33393
    suto.norbert
    Participant

    Thanks for that, I was able to convert the boolean to 0/1. with HA or Node-RED and use it in monitor and control menu!

     

    Thanks a lot! (and also the firmware! It is really good!)

    • This reply was modified 1 year, 4 months ago by suto.norbert.
    #33395
    suto.norbert
    Participant

    In the future it possible to add a function to use MQTT to feed two digital inputs?  (SN1 and SN2)

    #33418
    Admin
    Keymaster

    You mean mapping a MQTT sensor to the internal SN1/SN2? Good idea!

    #33419
    suto.norbert
    Participant

    @admin

     

    Yes, I think this thing. Rain/Flow/Soil/Program Switch. It map it a MQTT specific topic On/Off or true/false state

    #33432
    Admin
    Keymaster

    Ok, the next firmware version 174 can control the internal rain/soil sensor sn1/sn2. But not “Flow” or “Program Switch”.

    • This reply was modified 1 year, 4 months ago by Admin.
    #33471
    suto.norbert
    Participant

    Thanks! I'll wait.

    #33730
    Admin
    Keymaster

    It's already available

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.