aserramonner / MMM-HASS

HomeAssistant module for the MagicMirror
GNU General Public License v3.0
31 stars 11 forks source link

Swaped values #5

Closed Luc3as closed 6 years ago

Luc3as commented 6 years ago

Hello, I have strange behaviour here, sometimes the values from HASS are changed between each other. I am pulling 2 values and sometimes are OK, but then suddenly it refresh and they are at wrong places. image I mean 44 is humidity and temp is 21.4

config is as follows

 {
            module: "MMM-HASS",
            position: "top_right",
            config: {
                    host: "host",
                    port: "port",
                    apipassword:"pass",
                    https: true,
                    devices: [
                    { deviceLabel: "Kúpelňa",
                            deviceReadings: [
                            { sensor: "sensor.teplota_kupelna", icon: "wi wi-thermometer", suffix: "°"},
                            { sensor: "sensor.vlkhost_kupelna", icon: "wi wi-humidity", suffix: "%"},
                            ]
                    },
                    { deviceLabel: "Obývačka",
                            deviceReadings: [
                            { sensor: "sensor.teplota_obyvacka", icon: "wi wi-thermometer", suffix: "°", notification: "INDOOR_TEMPERATURE"},
                            { sensor: "sensor.vlhkost_obyvacka", icon: "wi wi-humidity", suffix: "%"},
                            ]
                    },
                    ]
            }
        },
aserramonner commented 6 years ago

Thanks for reporting. May be some kind of race condition. I will try to find it. If you can determine under which circumstances the issue appears I would be grateful.

WalterWampe commented 6 years ago

Can confirm, had this problem as well. But not sure under which circumstances. Will report if found out! Thanks for you work!!

aserramonner commented 6 years ago

Should be fixed now.