Skip to content

Commit

Permalink
debug sensoren toegevoegd
Browse files Browse the repository at this point in the history
 * Debug sensoren toegevoegd aan de web interface, om te kijken of hij goed op blijft tellen. Deze resetten na reboot en update weer naar 0.
  • Loading branch information
huizebruin committed Dec 30, 2022
1 parent f26f4d5 commit 1194448
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 23 deletions.
16 changes: 8 additions & 8 deletions esphome/components/DSZ12D.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ sensor:
accuracy_decimals: 3
lambda: return id(initial_kwh_usage) + (id(total_kwh_pulses) * 0.001);

# # ⬇ kwh pulses ⬇ #
# - platform: template
# id: kwh_pulses
# name: "kwh pulses totaal"
# state_class: "total_increasing"
# lambda: return id(total_kwh_pulses);
# accuracy_decimals: 0

# ⬇ kwh pulses only web interface for debugging ⬇ #
- platform: template
id: kwh_pulses
name: "kwh pulses totaal"
state_class: "total_increasing"
lambda: return id(total_kwh_pulses);
accuracy_decimals: 0
internal: True
15 changes: 8 additions & 7 deletions esphome/components/LEM022SJ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ sensor:
accuracy_decimals: 3
lambda: return id(initial_kwh_usage) + (id(total_kwh_pulses) * 0.001);

# # ⬇ kwh pulses ⬇ #
# - platform: template
# id: kwh_pulses
# name: "kwh pulses totaal"
# state_class: "total_increasing"
# lambda: return id(total_kwh_pulses);
# accuracy_decimals: 0
# ⬇ kwh pulses only web interface for debugging ⬇ #
- platform: template
id: kwh_pulses
name: "kwh pulses totaal"
state_class: "total_increasing"
lambda: return id(total_kwh_pulses);
accuracy_decimals: 0
internal: True
16 changes: 8 additions & 8 deletions esphome/components/kwhpuls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ sensor:
accuracy_decimals: 3
lambda: return id(initial_kwh_usage) + (id(total_kwh_pulses) * (1.0 / id(Select_pulse_rate).state) );

# # ⬇ kwh pulses ⬇ #
# - platform: template
# id: kwh_pulses
# name: "kwh pulses totaal"
# state_class: "total_increasing"
# lambda: return id(total_kwh_pulses);
# accuracy_decimals: 0

# ⬇ kwh pulses only web interface for debugging ⬇ #
- platform: template
id: kwh_pulses
name: "kwh pulses totaal"
state_class: "total_increasing"
lambda: return id(total_kwh_pulses);
accuracy_decimals: 0
internal: True
9 changes: 9 additions & 0 deletions esphome/components/s0-watermeter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,12 @@ sensor:
unit_of_measurement: ""
accuracy_decimals: 3
lambda: return id(initial_water_usage) + (id(total_water_pulses) * atof(id(Select_pulse_water).state.c_str()));

# ⬇ Waterpulses only web interface for debugging ⬇ #
- platform: template
id: watermeter_pulses
name: "watermeter pulses totaal"
state_class: "total_increasing"
accuracy_decimals: 0
lambda: return id(total_water_pulses);
internal: True
10 changes: 10 additions & 0 deletions esphome/components/watermeter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,13 @@ sensor:
unit_of_measurement: ""
accuracy_decimals: 3
lambda: return id(initial_water_usage) + (id(total_water_pulses) * atof(id(Select_pulse_water).state.c_str()));

# ⬇ Waterpulses only web interface for debugging ⬇ #
- platform: template
id: watermeter_pulses
name: "watermeter pulses totaal"
state_class: "total_increasing"
accuracy_decimals: 0
lambda: return id(total_water_pulses);
internal: True

File renamed without changes.

0 comments on commit 1194448

Please sign in to comment.