zwavejs2mqtt / mqtt AutoDiscover

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

zwavejs2mqtt / mqtt AutoDiscover

Post by hestia »

https://domoticz.com/forum/viewtopic.ph ... d for all!
heggink wrote: Friday 22 October 2021 23:27 Correct! Interested to see your feedback. Keep us posted.
I think it's better to create a new topic...
First feedback:
I didn't found immediatly what to put in "Auto Discovery Prefix:" in mqtt hardware ; it's the same as "Discovery prefix" in ZWaveJS2MQTT => I set homeassistant

All devices seems to have been created ; I didn't check one by one... There were created Used what I found a bit strange...

I've tried some and they passed my simple tests (On / Off / Watt)

I still have the issue with FIBARO FGRGBWM441 RGBW Controller: no specific panel to change the colors, only a lot of dimmers
see https://domoticz.com/forum/viewtopic.ph ... ro#p278978
And I need to read https://www.home-assistant.io/docs/mqtt/discovery/ ;-)
User avatar
heggink
Posts: 988
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by heggink »

There is a mqtt_autodiscovery topic on slack. Any missing devices you can post the autodiscovery message there. Let me know if you need an invitation for the domoticz slack channel.

Sent from my SM-G980F using Tapatalk

Docker in Truenas scale, close to latest beta
DASHTICZ ๐Ÿ™ƒ
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
jvdz
Posts: 2441
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by jvdz »

Post the mqtt topic & payload of the config for the device so we can have a look to see what happens.
Jos
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by EddyG »

What about the config of several devices I posted on slack?
Do you want me to post them again?
Because 25% of my devices are not working or not working properly.
User avatar
heggink
Posts: 988
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by heggink »

A tremendous amount of things have changed over the last week or so. Maybe these got lost so probably good to summarise what is not working, again, by posting on slack.

Sent from my SM-G980F using Tapatalk

Docker in Truenas scale, close to latest beta
DASHTICZ ๐Ÿ™ƒ
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
jvdz
Posts: 2441
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by jvdz »

EddyG wrote: Sunday 24 October 2021 8:38 What about the config of several devices I posted on slack?
Do you want me to post them again?
Because 25% of my devices are not working or not working properly.
Which one ? The LastSeen is discussed and looked at.
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by EddyG »

I summarize them again and put them on slack.
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by hestia »

heggink wrote: Saturday 23 October 2021 16:09 There is a mqtt_autodiscovery topic on slack. Any missing devices you can post the autodiscovery message there. Let me know if you need an invitation for the domoticz slack channel.

Sent from my SM-G980F using Tapatalk
Ok for the slack, never used, I'll look at it... I'll be busy next week and on holiday after, so perhaps few contributions at the beginning ;-)
To give a positive feedback, I have a motion sensor that "disconnects" every week from openzawe that is still ok in zwavejs2mqtt on my testing environment, important because it's for the outside light :-)
For the RGB controller perhaps there is a part in the discovery and another one with json directly on zwavejs2mqtt
See viewtopic.php?t=8605
What is used now is something like this http://localhost:8080/json.htm?type=com ... 2_Ng%3D%3D
Do you have an example of json directly on ZWaveJS2MQTT? and I'll did the script after (I'll try)
Also https://community.home-assistant.io/t/f ... ms/37235/2
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by hestia »

I've done some testing and could report some results on the slack when invited ;-)
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by hestia »

I think I need to upgrade
My
zwavejs2mqtt: 5.4.6
zwave-js: 8.1.1

on the git: Release 5.10.0
But I don't find out how to do it :-(
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by EddyG »

User avatar
heggink
Posts: 988
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by heggink »

I strongly suggest you run this in a docker container. Easiest to upgrade and roll back if need be.

Sent from my SM-G980F using Tapatalk

Docker in Truenas scale, close to latest beta
DASHTICZ ๐Ÿ™ƒ
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
heggink
Posts: 988
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by heggink »

Also: please note that, even though autodiscovery is in its final stages of development, breaking changes may still occur. The current state is still beta.

Just a word of caution!

Sent from my SM-G980F using Tapatalk

Docker in Truenas scale, close to latest beta
DASHTICZ ๐Ÿ™ƒ
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by hestia »

EddyG wrote: Tuesday 26 October 2021 10:02 Did you read https://zwave-js.github.io/zwavejs2mqtt/#/
yes
but perhaps, I'm on the latest!
What version do you have?
User avatar
heggink
Posts: 988
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by heggink »

zwavejs2mqtt: 5.4.5
zwave-js: 8.0.8
I am a bit behind (don't fix what ain't broken)...

Sent from my SM-G980F using Tapatalk


Last edited by heggink on Tuesday 26 October 2021 12:36, edited 1 time in total.
Docker in Truenas scale, close to latest beta
DASHTICZ ๐Ÿ™ƒ
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by EddyG »

hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by hestia »

I've managed to upgrade to 5.10.0

Code: Select all

docker run -d --name zwavejs2mqtt --restart unless-stopped -p 8091:8091 -p 3000:3000 --device=/dev/ttyACM0 --mount source=zwavejs2mqtt,target=/usr/src/app/store zwavejs/zwavejs2mqtt:5.10.0
latest did not work :-(
I had to remove the container before

Code: Select all

docker  rm  zwavejs2mqtt
As I'm not so good with dockers and containers, I've lost all the naming...
So, some time to redo this...
User avatar
heggink
Posts: 988
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by heggink »

@hestia I would recommend that you have your entire configuration is a local folder that you can easily access. I have all my data in /opt/zwavejs2mqtt/store. That way, you can stop the docker container, backup that folder and start a new container using a different release. If that then fails for whatever reason, you can just put back everything you backed up and start the original container again to be back where you were.

Using the above, I start it as follows:

Code: Select all

docker run -d --name zwavejs2mqtt --restart unless-stopped -p 8091:8091 -p 3000:3000 --device=/dev/ttyUSB.aeotec -v /opt/zwavejs2mqtt/store:/usr/src/app/store  zwavejs/zwavejs2mqtt:latest
If you want to test a new release, you could name the docker container zwavejs-test ie stop zwavejs2mqtt, start zwavejs-test, test the new container, if not OK, stop zwavejs-test and start zwavejs2mqtt again. The fun part is that you can have multiple versions with different names. As long as they use the same config dir (/opt/..), you will never lose any config.
Docker in Truenas scale, close to latest beta
DASHTICZ ๐Ÿ™ƒ
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
hestia
Posts: 361
Joined: Monday 25 December 2017 23:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Paris
Contact:

Re: zwavejs2mqtt / mqtt AutoDiscover

Post by hestia »

@heggink,
thanks again for your help
I was stuck on the upgrade because when I've tried this "latest" there was no upgrade :-(
So I tried several things... and could upgrade!
I was more focus on the upgrade to check if I could get a device ZP3102 than to keep my data as it was a testing env.
I saw your advice "don't fix what ain't broken" ;-)
I my case the ZP3102 was fixed with the last version installed (I read it was fixed in a version after mine, but could not retrieve the info now).
Now all my devices were seen in dz at least once :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest