Hello,
I do have a Tasmota entity: sensor.gaszahler_counter_c1
It counts 0,001m3 gas that is used for heating.
What do I need to enter into configuration.yaml to be able to integrate it into the Energy Dashboard?
It would like to see Gas KWh consumed and m3 consumed.
Here 2 pictures of the setup:
Additional Info on the Used Hard & Software:
Obtained on EBay:
Wiki Page of the Product:
https://wiki.gorjup.de/doku.php?id=public:gaszaehler
Thank You !
I was able to integrate it into the Energy dashboard with the following entry into the customize.yaml:
sensor.gaszahler_counter_c1:
device_class: gas
unit_of_measurement: m³
state_class: total_increasing
Remaining Problem is the value :
Its of course 0,33 m3 not 33 m3 consumed Gas as shown.
How can I fix this?
With a Helper or a calculation with a new dummy entity?
Please advise
Thank You
Regards
Hello,
I tried separately those 2 entries in configuration.yaml:
1:
platform: template
sensors:
gaszähler_m3:
friendly_name: „Gaszähler m3“
unit_of_measurement: ‘m³’
value_template: “{{ ( states(‘sensor.gaszahler_counter_c1’) | int / 1000 ) | round(1) }}”
2:
template:
sensor:
name: “Gaszähler_m3”
unit_of_measurement: “m³”
value_template: “{{ ( states(‘sensor.gaszahler_counter_c1’) | int / 1000 ) | round(1) }}”
Is this the right approach?
Im still struggling with the yaml format - can’t get it to work properly.
Can someone help me with the right format ? With the right Entry in configuration.yaml for this new desired sensor in m3?
Thank You!
Regards
oli118
(Oli)
January 5, 2023, 6:03pm
9
Hi,
I have the same problem. I included the following lines in configuration.yaml:
template:
- sensor:
- name: "Gaszähler m3"
unique_id: gaszaehler_m3
state: "{{ states ('sensor.tasmota_counter_c1') | float * 0.01 }}"
unit_of_measurement: "m³"
icon: "mdi:gas-station"
device_class: gas
state_class: total_increasing
- sensor:
- name: "Gaszähler kWh"
unique_id: gaszaehler_kwh
state: "{{ (states ('sensor.gaszaehler_m3') | float(0) * 0.9533 * 10.3) | round(0) }}"
unit_of_measurement: "kWh"
icon: "mdi:gas-station"
device_class: energy
state_class: total_increasing
The first converts binary impulses to m³, the second m³ to kWh. In the energy dashboard, I only have kWh as a source.
How did you make the conversions on the Tasmota device? Is it a self compiled custom build?
Hi Oli,
that did it
Thank you so much!
I can now select m3 or kWh in the energy dashboard. I selected kWh.
In my first post in this tread you can find 2 links - I bought the sensor on eBay.
There is also a wiki page - there you can see how the seller did it.
Thank You
Regards
1 Like
Hi Oli,
probably a stupid question
I have the following gas data -
I Can just update them in the configuration.yaml - in the highlighted green box?
After a reboot everything then is fine?
THX!
oli118
(Oli)
January 6, 2023, 10:50am
12
Hi,
yes, correct.
By the way: In my setup there are still some peaks in energy dashboard when the sensor was offline. Still investigating that.
Thank you Oli,
another small question, the kWh sensor counts in full kWh, can we do it in 0,1 kWh so I have a more detailed view in the Energy Dashboard?
oli118
(Oli)
January 6, 2023, 12:59pm
14
Not sure, maybe with round(1)
. Didn’t try that so far
Flocke1
(Oj)
January 23, 2023, 7:25am
15
Hallo zusammen, bin ein Neuling undhabe eure Codes benutzt nur bekomme ich keine daten im Energie dashboard da der sensor nicht gefunden wird.
Muss ich noch etwas beachten
Hallo,
hier die Einträge welche hier funktioniert haben:
customize.yaml:
sensor.gaszahler_counter_c1:
device_class: gas
unit_of_measurement: m³
state_class: total_increasing
configuration.yaml:
homeassistant:
customize: !include customize.yaml
template:
- sensor:
- name: "Gaszaehler Keller m3"
unique_id: gaszaehler_keller_m3
state: "{{ states ('sensor.gaszahler_counter_c1') | float * 0.01 }}"
unit_of_measurement: "m³"
icon: "mdi:gas-station"
device_class: gas
state_class: total_increasing
- sensor:
- name: "Gaszaehler Keller kWh"
unique_id: gaszahler_kwh
state: "{{ (states ('sensor.gaszaehler_keller_m3') | float(0) * 0.9505 * 11.495) | round(1) }}"
unit_of_measurement: "kWh"
icon: "mdi:gas-station"
device_class: energy
state_class: total_increasing
1 Like
Flocke1
(Oj)
January 25, 2023, 9:28am
18
Danke für deine Antwort nun hat es geklappt, warum weiß ich noch nicht. Habe nur die Daten custome nicht genommen weil es nicht gefunden wurde obwohl ich es angelegt hatte. Desweiteren musste ich den Namen " Gaszaehler Keller m3 " übernehmen sobald ich ihn geändert hatte ging es nicht. Wenn ich den Brennwert ändere geht es auch nicht. Werde aber weiter probieren bin ja froh das es erstmal klappt.
Danke
Hi,
note the line: include customize.yaml in the configuration.yaml.
If this line is not present the customize.yaml won’t be used.
Regards
ElHoni
(Ansgar)
September 22, 2024, 7:55am
20
Hey, I did it the same way an it works, But, after it counts some m3 there soul be a number for kWh. But I still found 0 kWh…
stepea
October 2, 2024, 6:05pm
21
Has anyone bought one of these to use on the same type of gas meter in the UK. Also how do the gas companies feel attaching one of these devices to their meters.