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

Mqtt Topics for HASS.IO

Scheduled Pinned Locked Moved MyControllerDevice (ESP8266)
3 Posts 2 Posters 897 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 13 Apr 2018, 17:46

    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 ?

    J 1 Reply Last reply 13 Apr 2018, 18:57 Reply Quote 0
    • J Offline
      jkandasa @kadu
      last edited by jkandasa 13 Apr 2018, 18:57

      @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 13 Apr 2018, 23:18

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

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post

        0

        Online

        619

        Users

        531

        Topics

        3.4k

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