Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! exchange main and te…
Browse files Browse the repository at this point in the history
…triary power meters
  • Loading branch information
groupsky committed Oct 15, 2023
1 parent eb8071c commit d8f3c36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
6 changes: 6 additions & 0 deletions config/home-assistant/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ homeassistant:
customize_glob:
sensor.*:
last_reset: '1970-01-01T00:00:00+00:00'
sensor.heat_pump_energy_used:
last_reset: '2023-10-15T07:00:00+00:00'
sensor.main_energy_used:
last_reset: '2023-10-15T07:00:00+00:00'
sensor.main_energy_returned:
last_reset: '2023-10-15T07:00:00+00:00'
external_url: !env_var EXTERNAL_URL
internal_url: !env_var INTERNAL_URL

Expand Down
13 changes: 0 additions & 13 deletions config/home-assistant/configuration/mqtt/sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
- name: Main energy used
state_topic: "/modbus/main/main/reading"
value_template: "{{ value_json.total_import_kwh | float(default=0) }}"
last_reset_value_template: "2023-10-15T07:00:00+00:00"
<<: &common_used_energy
device_class: energy
state_class: total
Expand All @@ -80,71 +79,59 @@
- name: Main energy returned
state_topic: "/modbus/main/main/reading"
value_template: "{{ value_json.total_export_kwh | float(default=0) }}"
last_reset_value_template: "2023-10-15T07:00:00+00:00"
<<: *common_used_energy

- name: Water pump energy used
state_topic: "/modbus/secondary/water_pump/reading"
value_template: "{{ value_json.tot_act | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Waste pump energy used
state_topic: "/modbus/secondary/waste_pump/reading"
value_template: "{{ value_json.tot_act | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Oven energy used
state_topic: "/modbus/secondary/oven/reading"
value_template: "{{ value_json.tot | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Stove energy used
state_topic: "/modbus/secondary/stove/reading"
value_template: "{{ value_json.tot | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Dishwasher energy used
state_topic: "/modbus/secondary/dishwasher/reading"
value_template: "{{ value_json.tot | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Kitchen energy used
state_topic: "/modbus/secondary/kitchen/reading"
value_template: "{{ value_json.tot | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Laundry energy used
state_topic: "/modbus/secondary/laundry/reading"
value_template: "{{ value_json.tot | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Boiler energy used
state_topic: "/modbus/secondary/boiler/reading"
value_template: "{{ value_json.tot | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Heat pump energy used
state_topic: "/modbus/tetriary/heat_pump/reading"
value_template: "{{ value_json.tot_act | float(default=0) }}"
last_reset_value_template: "2023-10-15T07:00:00+00:00"
<<: *common_used_energy

- name: Stabilizator energy used
state_topic: "/modbus/monitoring2/stab-em/reading"
value_template: "{{ value_json.totalActiveEnergy | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

- name: Microwave energy used
state_topic: "/modbus/secondary/microwave/reading"
value_template: "{{ value_json.tot | float(default=0) }}"
last_reset_value_template: '1970-01-01T00:00:00+00:00'
<<: *common_used_energy

0 comments on commit d8f3c36

Please sign in to comment.