Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Receive Battery percentage via MQTT on OpenHab?

Receive Battery percentage via MQTT on OpenHab?

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kunall
    wrote on last edited by
    #1

    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. :disappointed:

    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.

    Screen Shot 2015-05-03 at 3.08.30 PM.png

    1 Reply Last reply
    0
    • FotoFieberF Offline
      FotoFieberF Offline
      FotoFieber
      Hardware Contributor
      wrote on last edited by
      #2

      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

      K 1 Reply Last reply
      0
      • FotoFieberF FotoFieber

        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

        K Offline
        K Offline
        kunall
        wrote on last edited by kunall
        #3

        @FotoFieber I'm using THIS MQTT Gateway. Is there a better MQTT gateway solution available? Sorry i'm new to all this.

        1 Reply Last reply
        0
        • FotoFieberF Offline
          FotoFieberF Offline
          FotoFieber
          Hardware Contributor
          wrote on last edited by
          #4

          The sketch you use doesn't support following internal messages:

          • sketchinfo
          • sketchversion
          • time
          • batterylevel

          See link above...

          K 1 Reply Last reply
          0
          • FotoFieberF FotoFieber

            The sketch you use doesn't support following internal messages:

            • sketchinfo
            • sketchversion
            • time
            • batterylevel

            See link above...

            K Offline
            K Offline
            kunall
            wrote on last edited by
            #5

            @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?

            Screen Shot 2015-05-05 at 12.35.34 PM.png

            1 Reply Last reply
            0
            • FotoFieberF Offline
              FotoFieberF Offline
              FotoFieber
              Hardware Contributor
              wrote on last edited by
              #6

              Please try this:
              http://forum.mysensors.org/topic/524/mqtt-client-gateway/11

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              23

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular