Coder Social home page Coder Social logo

Comments (17)

jbouwh avatar jbouwh commented on July 20, 2024 1

I'll have a look

from core.

radhoo2k10 avatar radhoo2k10 commented on July 20, 2024 1

Thanks for your help. Will open an issue in zwave-js and ask them to look at it. Will add this issue as a link.
Thanks for great help.

from core.

home-assistant avatar home-assistant commented on July 20, 2024

Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this issue as it has been labeled with an integration (mqtt) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of mqtt can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign mqtt Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


mqtt documentation
mqtt source
(message by IssueLinks)

from core.

jbouwh avatar jbouwh commented on July 20, 2024

Seems Zwave2Mqtt is generating the configuration and state. I am not sure this is supported. Can you share the MQTT config payload for the cover that is missing the controls, and may be a state payload matching the state_topic in the config?

from core.

radhoo2k10 avatar radhoo2k10 commented on July 20, 2024

@jbouwh I need some guidance on how to to find the config payload. This is the first time I'm using the mqtt explorer.
Is it there I can find the payload?
image

from core.

jbouwh avatar jbouwh commented on July 20, 2024

Some where under homeassistant/cover/xxxx/config

from core.

radhoo2k10 avatar radhoo2k10 commented on July 20, 2024

image
homeassistant/cover/Kjokkenvinduet_screen/position

{
  "command_topic": null,
  "position_topic": "zwave2mqtt/Kjokkenvinduet_screen/38/0/currentValue",
  "set_position_topic": null,
  "position_template": "{{ value_json.value | round(0) }}",
  "position_open": 99,
  "position_closed": 0,
  "payload_open": 99,
  "payload_close": 0,
  "availability": [
    {
      "payload_available": "true",
      "payload_not_available": "false",
      "topic": "zwave2mqtt/Kjokkenvinduet_screen/status",
      "value_template": "{{'true' if value_json.value else 'false'}}"
    },
    {
      "topic": "zwave2mqtt/_CLIENTS/ZWAVE_GATEWAY-zwave-js-ui/status",
      "value_template": "{{'online' if value_json.value else 'offline'}}"
    },
    {
      "payload_available": "true",
      "payload_not_available": "false",
      "topic": "zwave2mqtt/driver/status"
    }
  ],
  "availability_mode": "all",
  "device": {
    "identifiers": [
      "zwavejs2mqtt_0xc7f1fc00_node115"
    ],
    "manufacturer": "Fibargroup",
    "model": "Roller Shutter 4 (FGR-224)",
    "name": "Kjokkenvinduet screen",
    "sw_version": "8.0.0"
  },
  "name": "Kjokkenvinduet screen_position",
  "unique_id": "zwavejs2mqtt_0xc7f1fc00_115-38-0-currentValue"
}

from core.

jbouwh avatar jbouwh commented on July 20, 2024

What is the payload on topic zwave2mqtt/Kjokkenvinduet_screen/38/0/currentValue ?

from core.

radhoo2k10 avatar radhoo2k10 commented on July 20, 2024
{
  "id": "115-38-0-currentValue",
  "nodeId": 115,
  "toUpdate": false,
  "commandClass": 38,
  "commandClassName": "Multilevel Switch",
  "endpoint": 0,
  "property": "currentValue",
  "propertyName": "currentValue",
  "type": "number",
  "readable": true,
  "writeable": false,
  "label": "Current value",
  "stateless": false,
  "commandClassVersion": 0,
  "min": 0,
  "max": 99,
  "list": false,
  "value": 0,
  "isCurrentValue": true,
  "lastUpdate": 1717088602377
}

from core.

jbouwh avatar jbouwh commented on July 20, 2024

Can you share the content of topic zwave2mqtt/Kjokkenvinduet_screen/status ?

from core.

radhoo2k10 avatar radhoo2k10 commented on July 20, 2024

image
I don't see that topic.

from core.

jbouwh avatar jbouwh commented on July 20, 2024

Okay, it may be that topic is not retained, so it is only shown when it is published. That should happen when the item comes available.

from core.

radhoo2k10 avatar radhoo2k10 commented on July 20, 2024

image
image

from core.

jbouwh avatar jbouwh commented on July 20, 2024

I see this in the logs:

2024-05-30 18:33:09.397 ERROR (MainThread) [homeassistant.components.mqtt.mixins] Error 'string value is None for dictionary value @ data['command_topic']' when processing MQTT discovery message topic: 'homeassistant/cover/Kjokkenvinduet_screen/position/config', message: '{'command_topic': None, 'position_topic': 'zwave2mqtt/Kjokkenvinduet_screen/38/0/currentValue', 'set_position_topic': None, 'position_template': '{{ value_json.value | round(0) }}', 'position_open': 99, 'position_closed': 0, 'payload_open': 99, 'payload_close': 0, 'availability': [{'payload_available': 'true', 'payload_not_available': 'false', 'topic': 'zwave2mqtt/Kjokkenvinduet_screen/status', 'value_template': "{{'true' if value_json.value else 'false'}}"}, {'topic': 'zwave2mqtt/_CLIENTS/ZWAVE_GATEWAY-zwave-js-ui/status', 'value_template': "{{'online' if value_json.value else 'offline'}}"}, {'payload_available': 'true', 'payload_not_available': 'false', 'topic': 'zwave2mqtt/driver/status'}], 'availability_mode': 'all', 'device': {'identifiers': ['zwavejs2mqtt_0xc7f1fc00_node115'], 'manufacturer': 'Fibargroup', 'model': 'Roller Shutter 4 (FGR-224)', 'sw_version': '8.0.0', 'name': 'Kjokkenvinduet screen'}, 'unique_id': 'zwavejs2mqtt_0xc7f1fc00_115-38-0-currentValue', 'name': 'Kjokkenvinduet screen_position'}'

The command_topic cannot be None.

from core.

radhoo2k10 avatar radhoo2k10 commented on July 20, 2024

Where does the error lay? Is it the zwave-js or zwave-js ui that needs to do something?

from core.

jbouwh avatar jbouwh commented on July 20, 2024

Is it the zwave-js or zwave-js ui that needs to do something?

Yes, the config invalid. As the command_topic should be string. It is optional, but then it should be omitted. This also means that it is not an issue with Home Assistant or the MQTT integration.

from core.

jbouwh avatar jbouwh commented on July 20, 2024

I'll close the issue here, but is okay to link to it.

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.