-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Z-Wave JS official integration #6021
Comments
@robertsLando , the idea was to not write specific implementations for different middleware's but to use the MQTT Auto Discovery method. In the forum post I asked this user to follow a guide to report issues. In this post I only see ' I've seen that the discovery values send by zwavejsui for command topic were wrong' That doesn't say me anything, and I have no clue if we could have worked around this. Sure, there could be some possible differences that we can solve in the MQTT-AD implementation here in Domoticz. We tried to force all users to use ZWaveJS-UI instead of our deprecated OpenZWave implementation but have enabled OZW again... You can imagine that implementing 'another' middleware will take a lot of time. I would tell them first to do this, and if they haven't done so close the issue. |
Could I ask you why you had to enable OZW again? Anyway the point is that with MQTT AD it's a bit hard to handle composite devices like thermostats and fans that may need a custom json in order to be supported. Apart from this seems Domoticz isn't supporting all MQTT AD features very well as reported here I dunno the effort needed on your side in order to build a "native" integration by connecting domoticz to the websocket exposed by zwave-js-ui but based on home assistant experience it's much more reliable then Discovery. I asked the same to the OpenHAB team for the same reasons, this is just a suggestion BTW |
Sure, first let me say I mentioned a year ago that support for OZW will be dropped in Domoticz as there is no development for years now and that users should look at ZWaveJS-UI to MQTT It was dropped with the first new stable release of Domoticz this year. But... of course... most users didn't care until it happened. I advised to use 'docker compose' as this is a quite easy way to install services independent of the hardware platform (zwavejs-ui, MQTT, even domoticz) Now most users expect an installation of Install->Next->Next->Running For the other 10-20% there where migration issues. You can imagine that when we implemented MQTT-AD, a process that took homeassistant years, from time to time we had some challenges to get hardware supported. Very logical, and sure we can probably solve them by tweaking our MQTT-AD implementation, but this could have been avoided when more users where testing the beta versions. So, for those users it came for them as quite a shock. And so, for now OZW is back again... but I hope they all migrate to ZWaveJS-UI as it seems a great system! I think we do a great job with MQTT-AD, zwavejs-ui is not the only platform working through it. It is also a matter of 'how it is implemented'. In my opinion, one system to rule them all, would be ideal... (MQTT-AD) I hope for all zwave users that you will keep supporting it. |
I can confirm @gizmocuz statements. It indeed requires basic docker-compose knowledge but nothing we can not document. (it still requires some reading skills from the user), but hey have you tried HA with all the custom YAML's ?? The issues that I had were part hardware (FW) related of the Zwavestick. After that I started with ZIGBEE2MQTT then MILIGHTGATEWAY and even TASMOTA via teacherscripts -> MQTT AD. All works as far as I can see. |
Firstly thanks for all the backgroud, I can say I definetely feel you, unfortunately telling users that something is deprecated is never taken so seriously until they find out it's removed and start bothering you.
I definetely need to do that sometimes because MQTT Gateway functionality came before MQTT AD and so I had to adapt discovery to the topics/payloads of the gateway. This is easy for most entities but becomes so complex when it comes to thermostats and others like I said above (thermostats for example will send a new discover payload once the mode changes as the setpoint is different based on the mode).
The same could be archieved by using Websocket BTW, just for reference Anyway I have absolutely no problem to keep MQTT AD, I just don't have so much time to invest on it (I also don't have any Domoticz/OpenHAB or Home Assistant instance to test) as I give priority to other features |
Hi Robert, that's great news! Thanks for keeping it available! Going to zwavejs-ui websockets indeed allows everyone to use zwave in both domoticz and homeassistant, but that's about it... there is much more hardware that (can) work with MQTT-AD Regarding a thermostat, i see just a few discovery topics
I don't see what is so difficult here that needs to resend the discovery topics When I implemented OZW (we had to implement all command-classes) this is exactly how I done it. When you change a mode, the mode is just set to that mode. And yes, you probably get an update of the actual setpoint, and sometime later the temperature will change too. And (as far as I remembered... it has been a while...) those thermostat modes are also pre-documented? Wish you all the best with your great project!!! I hope some more MQTT-AD developers will join to help as well! I moved to zigbee, but have heaps and heaps of zwave stuff for testing available. And Domoticz zwavejs-ui users should first report the issue on our forum, when it's a real problem, on github, and only, when it is really a possible zwavejs-ui issue, report to zwavejs-ui (after acknowledgement of our devs) |
To understand what I mean maybe docs can help: https://zwave-js.github.io/zwave-js-ui/#/homeassistant/homeassistant-mqtt?id=custom-components Anyway as long as users are happy with this I'm too :) |
Just a reminder: user recently added the ability to discover Configuration CC values too. This will create MANY new entities for each device, all CC Configuration entities have a property that tells Domoticz to keep them disabled by default, this is handled by home assistant but not by Domoticz. Could you consider fixing that on MQTT AD? Where should I open the issue? |
Please feel free top open a new issue here, if possible post the config topic+payload At the moment we use 'enabled_by_default' ... if this is set to default, it is added but not enabled in Domoticz. |
Yeah it's that, see PR Some users reported it to be ignored but maybe they just saw the entities and were scared to see so many of them. Anyway the reasons are reported here: zwave-js/zwave-js-ui#3570 (comment) |
From a user POV, understand that's much easier! On top of already explained issues, I see those: -ZwaveJS not suitable for some existing systems due to OSes domoticz support or the heavy dependencies required (most related to JS choice IMO, HA core is in python as well as domoticz plugin system) for this single new zwave support: Those using windows hosts were left aside, as well as some using existing NAS (with low mem/cpu ressource) or routers that can handle user light VMs. BR. |
Another vote for MQTT AD here for the same reasons as explained above by gizmocuz. I really hope that this remains an option, getting tired of breaking changes in the ecosystems. |
@yml78 LOL 🤣 Just give a look at this to understand what you are missing from OZW: openhab/openhab-addons#16374 (comment) And that's only few points, consider also that OZW is simply unmaintained so most devices will not have a configuration provided and may not work at all (expecially locks and secure devices that require S2 security that is not supported by OZW). Then ever heard about Z-Wave LR (long range) support? That's one of the new features that are coming that will have a range of ~1.5 miles. Yeah, Z-Wave is going to die 😆 |
@robertsLando |
@yml78 each protocol has it's pro/cons but I would not say that's the end of the road for z-wave, that's a very wrong statement expecially if you never tried zwave-js, I could agree with you if we were speaking about OZW as it made me want to throw all my zwave devices out of the window but that's because of the software not the devices/protocol itself. |
@robertsLando |
OZW was terrible and I stopped buying Zwave devices once I discovered Zigbee2mqtt. Zwave-JS-UI made Zwave so much better to manage but the transistion from OZW was traumatic and the thought of having to transition to yet another protocol would probably be the end of zwave for me. Life is too short. |
That's IMO not fair for the guy that kept this project alive (started with reverse engineering, don't forget it) for almost a decade. |
Link sums it up quite nicely. (migrating ozw to Zwave-js-ui took some steps) In the end gave me back all joy in life as now i can experiment with multiple domotica systems simultaneously. Maybe zwave is less vulnerable to jamming security sensors compared to their zigbee Brothers? Both seem to offer me long battery life. |
I know that but what I said is based on my personal experience. My first UI project (Zwave2MQTT) was using OZW but I never got so much support from the OZW maintainer, he only wrote me once to add the project under OpneZwave org but then I wrote him many many times both privately and on GH to ask for support with issues and so on but I was lost. This until I found zwave-js few years ago and his maintainer @AlCalzone, one of the best devs I ever worked with 🙌🏼
This is a good point and I partially agree, anyway only time will tell us which protocol will win the "iOT protocols war", IMO z-wave and zigbee will both be still around for many years so keeping a "legacy OZW setup" would be a limit for Domoticz users that may prefer another OSS project with a better support of it like Home Assistant. |
Hi everyone,
Firstly sorry if this is not the right place to ask this, if not just redirect me to the correct place.
I'm the developer of zwave-js-ui, I started receiving many issues from your users that are currently using MQTT discovery in order to use their Z-Wave devices with Domoticz.
As I explained in docs:
So I'm here to ask you if you could consider developing a plugin that uses the websocket apis like Home Assistant Z-Wave JS integration does: https://zwave-js.github.io/zwave-js-ui/#/homeassistant/homeassistant-official?id=how-it-works
This is the most reliable way to work with z-wave js, informations about websocket apis can be found here: https://github.com/zwave-js/zwave-js-server
Ref: https://www.domoticz.com/forum/viewtopic.php?t=41959
The text was updated successfully, but these errors were encountered: