Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. ioBroker general
    4. Publish mqtt topics with workx.0 values

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Publish mqtt topics with workx.0 values

    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gekomax last edited by

      Hello,

      I'm using IoBroker from 2 days... so please excuse me if I ask something obvious...

      I'm trying to pubblish mqtt topic of workx landroid adapter's values so I can catch them in home assistant.

      I installed Broker/Client MQTT and I configurated it as a client following official instructions.

      I created a new channel inside the mqtt.0 object (in order to create topics that take value from worx.0 )

      I created new objects inside the channel where to "store" the topic by editing the raw code inside them. The main edit is about the "from" tag: I put there the id of the worx.0 value i am interested.

      Then in home assistant a created several sensor that call that topic.

      I succeded in pubblishing the Battery charge state and for landroi battery state (I can see them on Home assistant frontend) but not for others value.

      This is the code that works:

      {
        "common": {
          "name": "iobroker/Giardiniere/Stato_carica_batteria",
          "write": true,
          "read": true,
          "role": "variable",
          "desc": "mqtt client variable",
          "type": "boolean"
        },
        "native": {
          "topic": "iobroker/Giardiniere/Stato_carica_batteria"
        },
        "type": "state",
        "from": "system.adapter.mqtt.0",
        "user": "system.user.admin",
        "ts": 1561710295987,
        "_id": "mqtt.0.iobroker.Giardiniere.Stato_carica_batteria",
        "acl": {
          "object": 1636,
          "state": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator"
        }
      }
      

      This is the code that doesn't work

      {
        "_id": "mqtt.0.iobroker.Giardiniere.livello_carica",
        "type": "state",
        "common": {
          "name": "Landroid battery state",
          "role": "value.battery",
          "type": "number",
          "desc": "Landroid battery state in %",
          "read": true,
          "write": false
        },
        "native": {
          "topic": "iobroker/Giardiniere/livello_carica_batteria"
        },
        "from": "system.adapter.worx.0",
        "user": "system.user.admin",
        "ts": 1561664923591,
        "acl": {
          "object": 1636,
          "owner": "system.user.admin",
          "ownerGroup": "system.group.administrator",
          "state": 1636
        }
      }
      

      Any advice?

      Thanks for your attention 👍
      Gekomax

      PS
      IoBroker and Home Assistant are working on the same LAN but on 2 different machines

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

      Support us

      ioBroker
      Community Adapters
      Donate

      820
      Online

      32.0k
      Users

      80.3k
      Topics

      1.3m
      Posts

      home assistant mqtt worx
      3
      1
      601
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo