Giter Site home page Giter Site logo

Comments (6)

balloob avatar balloob commented on September 13, 2024 1

Events are fired as EVENT_INSTANCE_EVENT. Payload is {type: "event_name_from_topic", data: {"event": "data}}. See cgarwood/python-openzwave-mqtt#47

from homeassistant-zwave_mqtt.

balloob avatar balloob commented on September 13, 2024

We should only get NODE_ADDED instead of NODE_UPDATED if there also was a NODE_REMOVED event ?

from homeassistant-zwave_mqtt.

Fishwaldo avatar Fishwaldo commented on September 13, 2024

Node Added is fired when OZW is starting up. Node New is fired when OZW pairs a new device.

It would be nice if you could handle the Inclusion Button on the zsticks as well so people can do a โ€œofflineโ€ inclusion.

from homeassistant-zwave_mqtt.

Fishwaldo avatar Fishwaldo commented on September 13, 2024

And yes, if OZWDaemon restarts - during the shutdown it should remove the node/value topics etc.

from homeassistant-zwave_mqtt.

MartinHjelmare avatar MartinHjelmare commented on September 13, 2024

If I understand correctly:

  1. OZWDaemon decides to restart
  2. OZWDaemon shuts down and during the shutdown sends NODE_REMOVED event for a node.
  3. OZWDaemon starts and sends NODE_ADDED event for the node.

Since this is then normal behavior for the OZWDaemon, we need to handle this in home assistant, as I assume we don't want to remove nodes as they are represented in Home Assistant just because the OZWDaemon restarts.

In Home Assistant we want to add a node representation both when a NODE_ADDED event and a Node New event is fired, if that node is not yet seen.

Side note: How is the Node New event represented in https://github.com/cgarwood/python-openzwave-mqtt? I don't find it.

Is that correct?

from homeassistant-zwave_mqtt.

marcelveldt avatar marcelveldt commented on September 13, 2024

Closed by #93 which will mark entities unavailable when OZW is not in a valid state (e.g. restarting). This can be even improved bt watching the LWT message of the OZW daemon on MQTT so we can also track the MQTT connection or OZW broker to be completely offline (non clean shutdown). A normal/clean shutdown of OZW is catched by the status.,

from homeassistant-zwave_mqtt.

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.