-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home Assistant Warning: "Template variable warning: 'dict object' has no attribute 'displaymetric' when rendering '{{ value_json.displaymetric }}' #1681
Comments
This looks like a legacy discovery for displaymetric for SSD1306, from before it was moved to the WebUI. Needs to be removed for SSD1306/moved to WebUI. |
Hi @Snuffy2 would you be able to verify with a test build? |
A test build which should fix the warning messages can be installed at https://docs.openmqttgateway.com/dev/upload/web-install.html If you could also check the correct switching between metric and imperial units, that would be great. |
Thanks for testing @Snuffy2 The displayMetric setting only applies to the alternating device property unit display on the WebUI main page and on the Heltec/LilyGo internal OLED display. The rtl_433 published MQTT messages will always have temperature_C, which can/should be auto converted to Fahrenheit if so defined in HA. I was more curious as to whether the switching also works now in the HomeAssistant Gateway Control for the different display on the Heltec and WebUI. |
Gotcha. The temperature does show correctly in °F in the WebUI when I uncheck Display Metric. |
Thanks for the confirmations. Closing |
Describe the bug
Since upgrading to v1.6.0, I've been getting a lot of these errors in my Home Assistant logs.
I believe it is coming from OMG and may be related to #1504 although I believe that was added in v1.5.0 and seems to be this line
I'm running a Heltec WiFi LoRa 32 (V2.1) running RTL_433 which I believe uses the SSD1306 Display. I do have the display turned off.
I do not recall seeing these errors in Home Assistant with OMG v1.5.1
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: