HTTP request or MQTT request

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Christian12
Posts: 33
Joined: 06 Jan 2016 10:00

HTTP request or MQTT request

Post by Christian12 »

hi,

I tryed to change to Homeassistant and use Z-way as an add-on. But now Z-Way runs so perfect, with all the Logicals, Security and Heating Apps, that I don't really want to use HAOS. HAOS is like z-way before years, doesn't work very well. But what is very nice there is the energy dashboard. But HomeKit didn't work very well, that's much better in z-way, but I can't used via z-way as Addon in HAOS. So if there's a chance for me to get my Smartmeter informations and the Informations from my inverter via http or mqtt, i would love to z-way standalone version. but I ve really no idea how to do this via http or mqtt or json app in z-way. Did anyone manage this before? My Hardware Smartmeter is an esp8226 with tasmato and my inverter is a deye Sun 600, and a shelly but this one I could replace with fibaro.

Thanks for any ideas - I m totally noob in programming.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: HTTP request or MQTT request

Post by PoltoS »

Sure, you can use the MQTT app to export all the data to an MQTT broker.

You can also send every new value via HTTP using HTTGet app or similar.

Thanks for your feedback on Z-Way. We are glad it works nice for you!
piet66
Posts: 266
Joined: 04 Feb 2017 17:00

Re: HTTP request or MQTT request

Post by piet66 »

The easiest way to bring data into Zway is with an http command, for example in a script with curl:

USER_PW="username:secret"
URL="http://$IP:8083/ZAutomation/api/v1/devices/"
curl -sS -u ${USER_PW} ${URL}${TARGET_DEVICE}/command/exact?level=${VALUE}

where ${TARGET_DEVICE} is the id of virtual device.

I don't know Tasmota, but I think it must have curl too. The virtual device can be a very simple one. For example, even created with Dummy Device App. Unfortunately as far as I know, the Dummy Device App creates only switches, but it should work. I don't know whether there is another app creating also sensor devices.

Transferring with MQTT is much more complex: You need a separate MQTT broker and a MQTT client app in ZWay.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v3.2.3 from 2022-04-06 04:56:23 +0300
Christian12
Posts: 33
Joined: 06 Jan 2016 10:00

Re: HTTP request or MQTT request

Post by Christian12 »

@PoltoS thanks for your reply, I want to import the values in z-way.

@piet66 thanks, I will test :)
Post Reply