HowTo create mulitsensor device without multichannel?
Posted: 30 Sep 2016 22:24
Hi,
I am playing around with a DHT11 sensor which provide the temperature and the humidity via an one-wire interface. (There is a DHT library available for the sensor...)
I just took the "simple dimmer" example and added extra (seperate) channels for temperature and humidity. Now I end up with a main device plus three seperate sub-device for the dimmer, the temperature and the humidity. The plan is to add more sensors (motion, gas-sensor plus some buttons) but I don't like to have a sub-device for EACH of them.
The only way I currently see (but maybe I am overlooking some possibilities of the Z-Uno here) is to send reports via zunoSendReport(<channel_no>) command, where each channel only hold on value / measurement. I can not see how it would be possible to define a channel with more than one value and how to send these different values.
I am wondering if it would be possible to have such reports send to the main device WITHOUT having a subdevice AND to send several different values...
I have an AEOTEC Mulitsensor which send out humidity, luminance, UV-index, temperature, motion and vibration just to one main device. I would like to create such a behavior with the Z-Uno.
As long as I only have one value of each sensor_type this should be possible (and distinguishable). Having for example two temperatures won't work because they can't be distinguished, for that different channels have to be used. One drawback is that only one value can be requested, but that might be acceptable as it work for the AEOTEC Mulitisensor for me...
Would that be possible or is it related to the simplified approach / the encapsulation of the ZWave functions of the Z-Uno?
Any hints are welcome,
Andreas.
I am playing around with a DHT11 sensor which provide the temperature and the humidity via an one-wire interface. (There is a DHT library available for the sensor...)
I just took the "simple dimmer" example and added extra (seperate) channels for temperature and humidity. Now I end up with a main device plus three seperate sub-device for the dimmer, the temperature and the humidity. The plan is to add more sensors (motion, gas-sensor plus some buttons) but I don't like to have a sub-device for EACH of them.
The only way I currently see (but maybe I am overlooking some possibilities of the Z-Uno here) is to send reports via zunoSendReport(<channel_no>) command, where each channel only hold on value / measurement. I can not see how it would be possible to define a channel with more than one value and how to send these different values.
I am wondering if it would be possible to have such reports send to the main device WITHOUT having a subdevice AND to send several different values...
I have an AEOTEC Mulitsensor which send out humidity, luminance, UV-index, temperature, motion and vibration just to one main device. I would like to create such a behavior with the Z-Uno.
As long as I only have one value of each sensor_type this should be possible (and distinguishable). Having for example two temperatures won't work because they can't be distinguished, for that different channels have to be used. One drawback is that only one value can be requested, but that might be acceptable as it work for the AEOTEC Mulitisensor for me...
Would that be possible or is it related to the simplified approach / the encapsulation of the ZWave functions of the Z-Uno?
Any hints are welcome,
Andreas.