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. Controllers
  3. Home Assistant
  4. isMetric incorrect on new 2.3.2 serial gateway with HomeAssistant

isMetric incorrect on new 2.3.2 serial gateway with HomeAssistant

Scheduled Pinned Locked Moved Home Assistant
10 Posts 4 Posters 137 Views 4 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.
  • Dave MyersD Offline
    Dave MyersD Offline
    Dave Myers
    wrote on last edited by
    #1

    Ethernet gateway running 2.2 and serial gateway running 2.3.2. isMetric isn't set properly (HomeAssistant set for imperial; nodes connected to new gateway all receive "true" referencing getConfig().isMetric so all temp measurements are reported using celsius values when HomeAssistant expecting fahrenheit.)

    This might have started happening when I moved from YAML config to Integration in HomeAssistant.

    HomeAssistant is latest version.
    Controller (Nano) code is just the basic serial gateway code.

    Is there a way on the gateway to override the isMetric setting received from the controller? I know that I can alter the code on each sensor to ignore, but I'd like to change this just on gateway so as not to have to recompile and upload new code to each sensor node.

    YveauxY 1 Reply Last reply
    1
    • mountainmanM Offline
      mountainmanM Offline
      mountainman
      wrote on last edited by
      #2

      I have been seeing the same issue. Did you find a resolution or open a bug report?

      1 Reply Last reply
      0
      • Dave MyersD Offline
        Dave MyersD Offline
        Dave Myers
        wrote on last edited by
        #3

        Still happening. No resolution found. Not sure if bug exists in MySensors code or in HomeAssistant's MySensors controller code - so not sure where to submit bug report.

        1 Reply Last reply
        0
        • Dave MyersD Dave Myers

          Ethernet gateway running 2.2 and serial gateway running 2.3.2. isMetric isn't set properly (HomeAssistant set for imperial; nodes connected to new gateway all receive "true" referencing getConfig().isMetric so all temp measurements are reported using celsius values when HomeAssistant expecting fahrenheit.)

          This might have started happening when I moved from YAML config to Integration in HomeAssistant.

          HomeAssistant is latest version.
          Controller (Nano) code is just the basic serial gateway code.

          Is there a way on the gateway to override the isMetric setting received from the controller? I know that I can alter the code on each sensor to ignore, but I'd like to change this just on gateway so as not to have to recompile and upload new code to each sensor node.

          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #4

          @Dave-Myers iirc nodes are supposed to perform the conversion themselves. I know at least the gateway does not take care of this.

          http://yveaux.blogspot.nl

          Dave MyersD 1 Reply Last reply
          0
          • YveauxY Yveaux

            @Dave-Myers iirc nodes are supposed to perform the conversion themselves. I know at least the gateway does not take care of this.

            Dave MyersD Offline
            Dave MyersD Offline
            Dave Myers
            wrote on last edited by
            #5

            @Yveaux Agreed, but the nodes poll the gateway using the isMetric() function to determine what units to report. The gateway supposedly gets this info from the controller.

            In my case, either my controller (HomeAssistant) isn't properly reporting that it is using imperial units or the gateways (two in use on 2.2 and 2.3.2 codebase) aren't correctly passing that information along to the nodes.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              chey
              wrote on last edited by
              #6

              @Dave-Myers I'm having the same problem and I just recently setup a home-assistant. Also running mysensors 2.3.2

              1 Reply Last reply
              0
              • C Offline
                C Offline
                chey
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • Dave MyersD Offline
                  Dave MyersD Offline
                  Dave Myers
                  wrote on last edited by
                  #8

                  Opened an issue on HomeAssistant's github as this is sounding more and more like a HomeAssistant issue. If anyone experiencing same issue, perhaps you can bump that issue and add more info.

                  https://github.com/home-assistant/core/issues/58475

                  1 Reply Last reply
                  2
                  • C Offline
                    C Offline
                    chey
                    wrote on last edited by
                    #9

                    That was a quick turn-around. :+1: :slightly_smiling_face:

                    1 Reply Last reply
                    0
                    • Dave MyersD Offline
                      Dave MyersD Offline
                      Dave Myers
                      wrote on last edited by
                      #10

                      Fix mysensors metric/non-metric gateway (@MartinHjelmare - #58476) (mysensors docs)

                      Issue should be fixed in HomeAssistant 2021.11.0.

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


                      6

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 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