Im my configuration.yaml I have:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
sensor:
- name: Importing
state_topic: "Home/Kaifa"
value_template: "{{ value_json.importing_power | float / 1000 }}"
unit_of_measurement: "kWh"
icon: mdi:transmission-tower
I can get the sensor data with no problem.
On Developer Tools tab I am using:
{{ state_attr('sensor.importing', 'Importing') }}
However, the template returns “null”.
What am I missing? Why I can’t get the sensor’s value?
Thanks!