Problems with reports to HC2 in 2.1.5
Posted: 17 Feb 2020 13:36
I made a small application to monitor my consumption of electrical energy to show it in Fibaro HC2.
In the first step the Z-UNO code was developed on FW 2.1.4 and seemed to work well.
There are 2 channels defined like this:
#define ZUNO_CHANNEL_NUMBER_Watts 1
#define ZUNO_CHANNEL_NUMBER_KWh 2
ZUNO_SETUP_CHANNELS(ZUNO_METER(ZUNO_METER_TYPE_ELECTRIC,METER_RESET_ENABLE,ZUNO_METER_ELECTRIC_SCALE_WATTS,METER_SIZE_FOUR_BYTES,METER_PRECISION_ZERO_DECIMALS, getterP,resetterP),
ZUNO_METER(ZUNO_METER_TYPE_ELECTRIC,METER_RESET_ENABLE,ZUNO_METER_ELECTRIC_SCALE_KWH,METER_SIZE_FOUR_BYTES, METER_PRECISION_TWO_DECIMALS, getterPges,resetterPges));
These two values are reported to HC2 every 30 seconds with:
zunoSendReport(ZUNO_CHANNEL_NUMBER_Watts);
zunoSendReport(ZUNO_CHANNEL_NUMBER_KWh);
After upgrading the Z-UNO to FW 2.1.5 I can see, that the values for the second channel are not updated by the reportsin HC2, but channel 1 is working well.
Forcing the HC2 to read these values in a cycle works fine.
Any idea, what is going wrong?
In the first step the Z-UNO code was developed on FW 2.1.4 and seemed to work well.
There are 2 channels defined like this:
#define ZUNO_CHANNEL_NUMBER_Watts 1
#define ZUNO_CHANNEL_NUMBER_KWh 2
ZUNO_SETUP_CHANNELS(ZUNO_METER(ZUNO_METER_TYPE_ELECTRIC,METER_RESET_ENABLE,ZUNO_METER_ELECTRIC_SCALE_WATTS,METER_SIZE_FOUR_BYTES,METER_PRECISION_ZERO_DECIMALS, getterP,resetterP),
ZUNO_METER(ZUNO_METER_TYPE_ELECTRIC,METER_RESET_ENABLE,ZUNO_METER_ELECTRIC_SCALE_KWH,METER_SIZE_FOUR_BYTES, METER_PRECISION_TWO_DECIMALS, getterPges,resetterPges));
These two values are reported to HC2 every 30 seconds with:
zunoSendReport(ZUNO_CHANNEL_NUMBER_Watts);
zunoSendReport(ZUNO_CHANNEL_NUMBER_KWh);
After upgrading the Z-UNO to FW 2.1.5 I can see, that the values for the second channel are not updated by the reportsin HC2, but channel 1 is working well.
Forcing the HC2 to read these values in a cycle works fine.
Any idea, what is going wrong?