Doesn't see my sensors

image
Does not show my sensors made as a template. Please help me, what could be the problem?

I create my sensors like this:

template:
  - sensor:
      - name: "waterius_total_cold"
        device_class: water
        state_class: total
        state: "{{ states(`sensor.waterius_kitchen_cold`)|float(0) + states(`sensor.waterius_bathroom_cold`)|float(0) }}"

You are using the wrong sort of single quotes try this:

state: "{{ states('sensor.waterius_kitchen_cold')|float(0) + states('sensor.waterius_bathroom_cold')|float(0) }}"

I tried it, but I can’t see it either

Go to Developer Tools → Templates.

Paste in:

{{ states('sensor.waterius_kitchen_cold') }}
{{ states('sensor.waterius_bathroom_cold') }}

What do you see in the result column to the right?

Then this should work:

template:
  - sensor:
      - name: "waterius_total_cold"
        device_class: water
        state_class: total
        state: "{{ states('sensor.waterius_kitchen_cold')|float(0) + states('sensor.waterius_bathroom_cold')|float(0) }}"

Where are you putting this config?

Did you restart after creating it?

What related errors do you see in the log?

In my yaml file:


image

yes, of course

There is no error in the logs for the specified sensor

Put it in configuration.yaml

  1. I put it in configuration.yaml

  2. Rebooted the server

  3. In the logs, he swore at the unit of measurement.

  4. I corrected it

But still the in energy panel is empty (writes not detected)