Z-Uno and FHEM

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
javatd
Posts: 3
Joined: 25 Oct 2019 16:00

Z-Uno and FHEM

Post by javatd »

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

Code: Select all

zunoSendReport
. My code in the getter is as follows:

Code: Select all

word getterTemperature() {
   Serial.println("Called: getterTemperature");
  return temperature;
}
When polling the temperature from FHEM the output is shown on the serial interface. In case of the unsolicited message triggered by

Code: Select all

zunoSendReport(channel)
there is no output on the console. The channel is initialized as follows

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)
The

Code: Select all

zunoSendReport
is triggered each 5 minutes. So what I'm doing wrong?
javatd
Posts: 3
Joined: 25 Oct 2019 16:00

Re: Z-Uno and FHEM

Post by javatd »

Seems that I have to answer it myself. The problem is, I've found a solution but have no explaination for it (so if anyone knows please share your knowledge!).

Once I changed the settings from

Code: Select all

Erase NVM: All
to

Code: Select all

Erase NVM: Disabled
it works like expected. The unsolicited message triggered by

Code: Select all

zunoSendReport()
calles the getter and the message is printed to the console.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Z-Uno and FHEM

Post by PoltoS »

The Erase is for cleaning things in Z-Uno. And it is cleaning association of the Z-Uno to the controller (FHEM), so if you include the device it works, but no reports are sent anymore after next sketch upload.
javatd
Posts: 3
Joined: 25 Oct 2019 16:00

Re: Z-Uno and FHEM

Post by javatd »

I've tested this. In case of

Code: Select all

Erase NVM: All
it doesn't work properly even if excluded and than re-included into the controller.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Z-Uno and FHEM

Post by PoltoS »

Should. This parameter is to erase full memory of Z-Uno prior to sketch upload. But during inclustion the controller should set everything up gain.
Post Reply