Z-Uno and FHEM
Posted: 30 Oct 2019 10:56
Hi. I'm trying to get the Z-Uno working properly with my home automation software FHEM. I'm struggeling with different things and hope that you can help me.
One of my simpler problems (I think): the unsolicited messages are not sent. If I got the handbook of the Z-Uno right, the getter is called in case of firing. My code in the getter is as follows:
When polling the temperature from FHEM the output is shown on the serial interface. In case of the unsolicited message triggered by there is no output on the console. The channel is initialized as follows
The is triggered each 5 minutes. So what I'm doing wrong?
One of my simpler problems (I think): the unsolicited messages are not sent. If I got the handbook of the Z-Uno right, the getter is called in case of firing
Code: Select all
zunoSendReport
Code: Select all
word getterTemperature() {
Serial.println("Called: getterTemperature");
return temperature;
}
Code: Select all
zunoSendReport(channel)
Code: Select all
ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE,
SENSOR_MULTILEVEL_SCALE_CELSIUS,
SENSOR_MULTILEVEL_SIZE_TWO_BYTES,
SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS,
getterTemperature)
Code: Select all
zunoSendReport