Multiple sensors under one multiLevelSensor command class
Posted: 11 Jun 2018 14:47
Hi all.
I'm using DHT11 to create temperature + humidity multi level sensors. I've initialized my ZUno with this sensors like this:
In my app, I asking for the node capabilities, and I get that the node have multi channel command class with 2 endpoints - one for the temperature sensor, and the other for the humidity.
2 questions:
1. I'm wondering if there is a way to have only 1 channel with 2 sensors in it, so I can query for the desired sensor using the sensor type.
2. using the zunoSendReport to report sensor value change, the report received in the controller don't have the endpoint value, so if I have 2 temperature sensors for example, I won't be able to distinguish what sensor sending me the updates. Is there a way to send the endpoint id with the zunoSendReport function?
Thanks!
I'm using DHT11 to create temperature + humidity multi level sensors. I've initialized my ZUno with this sensors like this:
Code: Select all
ZUNO_SETUP_CHANNELS(
ZUNO_SENSOR_MULTILEVEL_TEMPERATURE(getterTemperature),
ZUNO_SENSOR_MULTILEVEL_HUMIDITY(getterHumidity)
);
2 questions:
1. I'm wondering if there is a way to have only 1 channel with 2 sensors in it, so I can query for the desired sensor using the sensor type.
2. using the zunoSendReport to report sensor value change, the report received in the controller don't have the endpoint value, so if I have 2 temperature sensors for example, I won't be able to distinguish what sensor sending me the updates. Is there a way to send the endpoint id with the zunoSendReport function?
Thanks!