Solved: Best way for virtual sensor

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Solved: Best way for virtual sensor

Post by michap »

Hi,
I have tried different ways to realize a virtual sensor - but nothing "nice" have found in this time.

Target - to realize the integration of external sensors (Bluetooth, 433MHz,..) into Z-Way.
All these sensors reporting in this time to MQTT server.

Way1: subscribe to MQTT server and update sensors - seems not to be possible in this time

So idea is to use an own subscriber and update the sensor devices.

Way2: Create Code Device for sensorMultilevel and update this sensor using a HTTP-request -> can not get it to work

Way3: Create HTTPDevice as dummy device and update this sensor using a HTTP-request -> can not get it to work (read only device?)

Way 3a - Create HTTPdevice and make GET requests to any additional ressource from where get the value. This is working, but not the best way I think...

Somebody made it before and can tell me ? ;)
Thanks!
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Best way for virtual sensor

Post by PoltoS »

@aivs did that as I remember
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Re: Best way for virtual sensor

Post by michap »

Solved: using code device it is possible.
(see updated device description)

Thanks to PoltoS and aivs!
michap
Posts: 442
Joined: 26 Mar 2013 10:35
Contact:

Re: Solved: Best way for virtual sensor

Post by michap »

I have made a pull request at original MQTT app for the sensorMultilevel function - so that it will be possible to use HTTPDevice or CodeDevice for updating from MQTT broker after the app update will be available.

It is working for me since some weeks for BLE sensors and some other self made sensors reporting to MQTT server.
adamjilles
Posts: 1
Joined: 09 Feb 2021 07:08

Re: Solved: Best way for virtual sensor

Post by adamjilles »

Hi I am adamjilles.
thanks for your important information
Post Reply