I recently add a shelly motion 2 in my config.
Watching to the log, yesterday, I discovered that the motion detector is online and works well but is continuously switching his Battery level from 100% to -1% and then back.
Same for Temperature measurement.
2023-01-15 11:44:41.838 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_NiveauBatterie' changed from 100 % to -1 %
2023-01-15 11:46:14.869 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_NiveauBatterie' changed from -1 % to 100 %
2023-01-15 11:56:13.737 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_NiveauBatterie' changed from 100 % to -1 %
2023-01-15 11:59:15.704 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_NiveauBatterie' changed from -1 % to 100 %
Does anyone have an idea what could be the reason?
how can i find out if is an interal trouble with the shelly itself or a trouble with openhab?
Thanks for any help
I solved it myself by connecting on the IP address of the motion detector with a webbrowser.
I discovered a page with a mix between H&T sensor and motion detection…
so this was my mistake. I had unfortunately put a shelly H&T at the same IP address.
I did not add this sensor to openhab but only monitor this sensor via MQTT trough nodered for another application.
That means that the binding does not check if the received status match with the typical status template of a motion detector when receiving data from the sensor.
After changing the IP address, the battery inidcation trouble is solved but the temperature indication continue to display 0 sometimes and then get to its measurement
023-01-15 22:13:59.319 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_LastMotion' changed from 2023-01-15T19:53:02.000+0100 to 2023-01-15T19:53:02.000+0000
2023-01-15 22:13:59.328 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 0 °C to 22.2 °C
2023-01-15 22:18:57.077 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 22.2 °C to 0 °C
2023-01-15 22:18:57.081 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_LastMotion' changed from 2023-01-15T19:53:02.000+0000 to 2023-01-15T19:53:02.000+0100
2023-01-15 22:44:56.764 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_LastMotion' changed from 2023-01-15T19:53:02.000+0100 to 2023-01-15T19:53:02.000+0000
2023-01-15 22:44:56.774 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 0 °C to 22.2 °C
2023-01-15 22:48:57.844 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 22.2 °C to 0 °C
2023-01-15 22:48:57.846 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_LastMotion' changed from 2023-01-15T19:53:02.000+0000 to 2023-01-15T19:53:02.000+0100
2023-01-16 00:02:56.804 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Lux' changed from 121 lx to 119 lx
2023-01-16 00:02:56.817 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 0 °C to 22.9 °C
2023-01-16 00:02:59.041 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_ForceSignal' changed from 3 to 2
2023-01-16 00:02:59.154 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 22.9 °C to 0 °C
2023-01-16 00:03:02.979 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Lux' changed from 119 lx to 97 lx
2023-01-16 00:03:02.982 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 0 °C to 22.9 °C
2023-01-16 00:03:03.234 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 22.9 °C to 0 °C
2023-01-16 00:03:03.235 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Illumination' changed from twilight to dark
2023-01-16 00:03:13.361 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Motion' changed from OFF to ON
2023-01-16 00:03:13.364 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_LastMotion' changed from 2023-01-15T19:53:02.000+0100 to 2023-01-15T23:03:16.000+0000
2023-01-16 00:03:13.373 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Temperature' changed from 0 °C to 22.9 °C
2023-01-16 00:04:01.965 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellymotion28cf68108be531921681119_Lux' changed from 97 lx to 113 lx