Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT Help
#14
Boy I wish I could say getting MQTT working was fun but it simply has been a nightmare. I finally got CQC connecting to my broker, mosquitto, and then I fought with the config file to get what I "think" is the correct format. I figured I would start with my first goal which is reading the status of a Shelly 1 (or 1PM) relay. The config for that field is as follows:
Code:
<BoolSwitch Topic="shellies/shellylivingfan/relay/0" BaseName="FanLivingRm" Access="RW">
    <PLFmt Type="Text"/>
    <BoolTextMap FalseOut="off" TrueOut="on">
      <BoolTextVal TarVal="False" MQTTVal="off"/>
      <BoolTextVal TarVal="True" MQTTVal="on"/>
    </BoolTextMap>
  </BoolSwitch>
The file is read, the field is created (although I don't understand why a field cannot be read-only since MQTT seems to require different paths for read and write) but I get an error when it queries the field stating:
Quote:An encoded MQTT string buffer must be at least 3 bytes
The logs on the MQTT broker aren't telling anything useful. The CQC logs are not telling anything useful. I do know that in MQTT explorer that the value of that path = on.
Reply


Messages In This Thread
MQTT Help - by sic0048 - 12-02-2020, 08:40 PM
RE: MQTT Help - by sic0048 - 12-03-2020, 04:28 AM
RE: MQTT Help - by Dean Roddey - 12-04-2020, 04:51 PM
RE: MQTT Help - by znelbok - 12-04-2020, 08:45 PM
RE: MQTT Help - by sic0048 - 12-05-2020, 08:15 AM
RE: MQTT Help - by znelbok - 12-06-2020, 03:27 AM
RE: MQTT Help - by Dean Roddey - 12-05-2020, 09:08 AM
RE: MQTT Help - by sic0048 - 12-05-2020, 09:40 AM
RE: MQTT Help - by sic0048 - 12-05-2020, 11:19 AM
RE: MQTT Help - by Dean Roddey - 12-05-2020, 11:55 AM
RE: MQTT Help - by znelbok - 12-06-2020, 03:36 AM
RE: MQTT Help - by sic0048 - 12-06-2020, 01:07 PM
RE: MQTT Help - by sic0048 - 12-22-2020, 08:23 AM
RE: MQTT Help - by zaccari - 07-15-2021, 11:20 AM
RE: MQTT Help - by zaccari - 07-19-2021, 10:38 AM
RE: MQTT Help - by znelbok - 07-19-2021, 01:44 PM
RE: MQTT Help - by zaccari - 07-19-2021, 02:47 PM
RE: MQTT Help - by Shaky - 10-24-2021, 07:03 PM
RE: MQTT Help - by zaccari - 10-25-2021, 04:40 AM
RE: MQTT Help - by Shaky - 10-25-2021, 07:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  MQTT Verify Configuration not working znelbok 4 465 03-17-2022, 01:07 PM
Last Post: Dean Roddey
  Additional MQTT Support znelbok 5 2,020 05-14-2020, 03:55 PM
Last Post: Dean Roddey
  New MQTT support Dean Roddey 65 20,913 02-02-2020, 02:00 PM
Last Post: simplextech

Forum Jump:


Users browsing this thread: 1 Guest(s)