Receive Battery percentage via MQTT on OpenHab?
-
Hello
I'm trying to receive battery percentage over MQTT on openHab. So far i'm dont have any luck. I'm confused, because there is no such V_Battery or something like that.
I would really appreciate any help as i'm trying to finish my project before my final exam starts.
Here is my serial output. I was testing the battery sketch on Nano powerd via USB 5.0v. I know i'm getting incorrect reading, but thats okay for now, I just need to receive battery percentage via MQTT first.
-
Which MQTT gateway do you use?
Maybe in your gateway the battery percentage is not implemented.
See http://forum.mysensors.org/topic/524/mqtt-client-gateway/29
-
@FotoFieber I'm using THIS MQTT Gateway. Is there a better MQTT gateway solution available? Sorry i'm new to all this.
-
The sketch you use doesn't support following internal messages:
- sketchinfo
- sketchversion
- time
- batterylevel
See link above...
-
@FotoFieber I followed the sketch that you provided in your link above called "MQTT Client Gateway". however, while compiling that sketch I'm getting following error?
Any solution or suggestion for that?
-
Please try this:
http://forum.mysensors.org/topic/524/mqtt-client-gateway/11
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion • 24 Jan 2023, 17:16 • Yada Kijsathan 16 Mar 2025, 20:17 -
Code Garage to the rescue.
General Discussion • 11 Jan 2025, 11:25 • skywatch 8 days ago -
Is it possible to extract child ID from a just sent message?
General Discussion • 8 Nov 2021, 09:21 • Nigel31 19 days ago -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 4 Mar 2025, 00:29 -
ESP32 with LoRa
General Discussion • 31 Jan 2023, 11:06 • dhanushmh 16 days ago