Skip to content

Commit

Permalink
Added sensors for energy and operational time
Browse files Browse the repository at this point in the history
  • Loading branch information
gunstr committed Dec 18, 2023
1 parent 4430363 commit 82fa86a
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions rego1000.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,65 @@ sensor:
# state_class: "total_increasing"
# device_class: "energy"
# accuracy_decimals: 2
- platform: rego1000
id: op_time_compressor_heating
name: OpTime compressor heating
rego_variable: $STATS_COMPRESSOR_HEATING
unit_of_measurement: h
state_class: "total_increasing"
device_class: "duration"
filters:
- lambda: return x / 3600.0;
accuracy_decimals: 2
- platform: rego1000
id: op_time_compressor_dwh
name: OpTime compressor dhw
rego_variable: $STATS_COMPRESSOR_DHW
unit_of_measurement: h
state_class: "total_increasing"
device_class: "duration"
filters:
- lambda: return x / 3600.0;
accuracy_decimals: 2
- platform: template
id: energy_consumption_compressor
name: Energy consumption compressor
unit_of_measurement: kWh
state_class: "total_increasing"
device_class: "energy"
accuracy_decimals: 2
lambda: |-
return (id(op_time_compressor_heating).state + id(op_time_compressor_dwh).state) * 2.3;
update_interval: 60s
- platform: rego1000
id: energy_consumption_add_heating
name: Energy consumption add heating
rego_variable: $STATS_ELECTR_ADD_HEATING
value_factor: .001
unit_of_measurement: kWh
state_class: "total_increasing"
device_class: "energy"
accuracy_decimals: 2
- platform: rego1000
id: energy_consumption_add_dhw
name: Energy consumption add dhw
rego_variable: $STATS_ELECTR_ADD_DHW
value_factor: .001
unit_of_measurement: kWh
state_class: "total_increasing"
device_class: "energy"
accuracy_decimals: 2
- platform: template
id: energy_consumption_add
name: Energy consumption add
unit_of_measurement: kWh
state_class: "total_increasing"
device_class: "energy"
accuracy_decimals: 2
lambda: |-
return id(energy_consumption_add_heating).state + id(energy_consumption_add_dhw).state;
update_interval: 60s


binary_sensor:
- platform: rego1000
Expand Down

0 comments on commit 82fa86a

Please sign in to comment.