hassio-addons / addon-zwave-js-ui

Z-Wave JS UI - Home Assistant Community Add-ons
https://addons.community
MIT License
131 stars 36 forks source link

Error with cover state #301

Closed drjjr2 closed 2 years ago

drjjr2 commented 3 years ago

Problem/Motivation

Just moved to the add-on from the standalone container. Now getting these errors and the state of my garage door openers is not properly reported: [homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing, stopped): {"time":1637676567381,"value":0}

Expected behavior

correct cover barrier state to be reported

Actual behavior

above error. I was able to workaround by creating a separate sensor.

Steps to reproduce

Include Nortek NGD00Z-4 garage door opener, errors in log and state not reported

Proposed changes

unsure but the zwave2mqtt that I was running in a separate container seems to handle this properly. I know that something needs to be changed in the payload:

{
  "type": "cover",
  "object_id": "barrier_state",
  "discovery_payload": {
    "position_topic": "homeassistant/Dons_Garage_Door/102/0/currentState",
    "state_topic": "homeassistant/Dons_Garage_Door/102/0/currentState",
    "command_topic": "homeassistant/Dons_Garage_Door/102/0/targetState/set",
    "position_template": "{{ value_json.value }}",
    "device_class": "garage",
    "payload_open": 255,
    "payload_close": 0,
    "payload_stop": 253,
    "state_open": 255,
    "state_opening": 254,
    "state_closed": 0,
    "state_closing": 252,
    "device": {
      "identifiers": [
        "zwavejs2mqtt_0xefa976a8_node44"
      ],
      "manufacturer": "Nortek Security & Control LLC",
      "model": "Garage Door Controller (NGD00Z-4)",
      "name": "Dons_Garage_Door",
      "sw_version": "2.0"
    },
    "name": "Dons_Garage_Door_barrier_state",
    "unique_id": "zwavejs2mqtt_0xefa976a8_44-102-0-currentState"
  },
  "discoveryTopic": "cover/Dons_Garage_Door/barrier_state/config",
  "values": [
    "102-0-currentState",
    "102-0-targetState"
  ],
  "persistent": true,
  "ignoreDiscovery": false,
  "id": "cover_barrier_state"
}
github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

drjjr2 commented 2 years ago

Fixed by using the zwavejs integration