Page 1 of 1

Solved: Best way for virtual sensor

Posted: 01 Jan 2021 21:43
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!

Re: Best way for virtual sensor

Posted: 02 Jan 2021 01:50
by PoltoS
@aivs did that as I remember

Re: Best way for virtual sensor

Posted: 15 Jan 2021 22:28
by michap
Solved: using code device it is possible.
(see updated device description)

Thanks to PoltoS and aivs!

Re: Solved: Best way for virtual sensor

Posted: 25 Jan 2021 15:15
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.

Re: Solved: Best way for virtual sensor

Posted: 09 Feb 2021 07:21
by adamjilles
Hi I am adamjilles.
thanks for your important information