Skip to content
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

Template variable warnings #62

Open
mesut3000 opened this issue Jan 21, 2024 · 0 comments
Open

Template variable warnings #62

mesut3000 opened this issue Jan 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mesut3000
Copy link

mesut3000 commented Jan 21, 2024

There are a lot of warnings in log

I am using MiScale2

Here is my log :

Log details (WARNING)
Logger: homeassistant.helpers.template
Source: helpers/template.py:2318
First occurred: 15:26:52 (18 occurrences)
Last logged: 15:26:52

Template variable warning: 'dict object' has no attribute 'protein' when rendering '{{ value_json['protein'] }}'
Template variable warning: 'dict object' has no attribute 'metabolic_age' when rendering '{{ value_json['metabolic_age'] }}'
Template variable warning: 'dict object' has no attribute 'body_type' when rendering '{{ value_json['body_type'] }}'
Template variable warning: 'dict object' has no attribute 'lean_body_mass' when rendering '{{ value_json['lean_body_mass'] }}'
Template variable warning: 'dict object' has no attribute 'impedance' when rendering '{{ value_json['impedance'] }}'

My configuration lines look like :

mqtt:
sensor:
- name: "Mesut Protein Oranı"
state_topic: "miscale/Mesut/weight"
value_template: "{{ value_json['protein'] }}"
icon: mdi:dumbbell
unit_of_measurement: "%"
json_attributes_topic: "miscale/Mesut/weight"
# Below lines only needed if long term statistics are required
state_class: "measurement"

@mesut3000 mesut3000 added the bug Something isn't working label Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant