Hi all,
my counter and gas sensor are showing the gas consumption correct. It is an aqara door sensor who is counting the gas consumption on my gas meter, but I am trying since 3 days to have it on my Energy dashboard but without any success. I have waited more than 10 hours after having set up something in the Dashboard.
Can someone explain me what is wrong here?
in the first row of my configuration.yaml I have also added
homeassistant:
customize: !include customize.yaml
and more down the following
Configuration.yaml:
# Sensors
sensor:
- platform: template
sensors:
### Gas meter template from counter
gas_leser:
friendly_name: Gas Meter
value_template: "{{ states ('counter.gasmesser') | float * 0.01}}"
unit_of_measurement: "m³"
icon_template: "mdi:fire"
device_class: gas
Customize.yaml:
sensor.gas_leser:
state_class: measurement
last_reset: '2021-08-20T06:43:36.740703+00:00'
Automations.yaml
- id: '1644906284649'
alias: Gas Counting
description: ''
trigger:
- platform: state
entity_id: binary_sensor.lumi_magnet
from: 'off'
to: 'on'
condition: []
action:
- service: counter.increment
target:
entity_id: counter.gasmesser
mode: single
It counts correct and I can chose it in the energy dashboard as Gas device:
If someone can help me, it would have be a dream for me.
Thanks,
Argo