• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Mqtt Topics for HASS.IO

    Scheduled Pinned Locked Moved MyControllerDevice (ESP8266)
    3 Posts 2 Posters 831 Views 1 Watching
    Loading More Posts
    • 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.
    • K Offline
      kadu
      last edited by

      Re: MQTT sample setup on ESP8266

      I'm using the sketch provided here (https://github.com/mycontroller-org/MyControllerDevice) to send messages to a MQTT Broker (mosquitto) and Hass.io as controller, but I found some differences between how this sketch provide mqtt topics and how Hass.io spect to recive.
      I saw that this messages are received by mycontroller with success, but when I send to Hass.io, nothing appears.
      Finding help with this issue, I'm able to check that in MyControllerDevice/Messages.h there are some definitions like: #define V_TEMPERATURE "V_TEMP", and on the MySensors/Message.h there are enuns that "translate" V_TEMP = 0.
      Hass.io subscribe to mqttgw1-in/+/+/0/+/+, and MyControllerDevice skecth provide something like out_rpiagent/rpi-gpio/temperature_ds18b20/C_SET/V_TEMP/0
      Is possible to use MyController Sketch and send messages in "numeric" style ?

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @kadu
        last edited by jkandasa

        @kadu Yes, it is possible. But in MyControllerDevice node and sensor name will be in the string format. Other than this I can move to numeric style. Is that works for you?

        Update: You may set node and sensor name in numeric string. It looks like numeric, but it is a string.

        1 Reply Last reply Reply Quote 0
        • K Offline
          kadu
          last edited by

          @jkandasa node and sensor can be string no problem. I'll apreciate and thankfull for that.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          0

          Online

          587

          Users

          529

          Topics

          3.4k

          Posts
          Copyright © 2015-2025 MyController.org | Contributors | Localization