Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lolouk44 committed Aug 11, 2021
1 parent 72f1674 commit 276fe96
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.2.0] - 2021-08-11
### Added
- Added last 24h and last 30 days energy used in KWh to the attributes

## [0.1.10] - 2021-08-10
### Changed
- Removed "Setting up State Class" error message used for testing
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ template:
unit_of_measurement: '°C'
state: '{{ state_attr("sensor.current_cost", "Temperature") | float -3 }}' # Manual adjustment of -3°C in case the temp sensor is high than real temperature
device_class: temperature
state_class: measurement
state_class: measurement # Add state_class: measurement for long term statistics are required
- sensor:
- name: "CurrentCost Power"
unit_of_measurement: 'W'
Expand All @@ -73,6 +73,11 @@ template:
state: '{{ state_attr("sensor.current_cost", "Appliance 2") }}'
device_class: power
state_class: measurement
- sensor:
- name: "Total Energy Used Last 24h" # Note: this data is published by the Current Cost device every 2h
unit_of_measurement: 'KWh'
state: '{{ state_attr("sensor.current_cost", "Appliance 0 Last 24h") }}'
device_class: energy
```
Expand Down
2 changes: 1 addition & 1 deletion custom_components/currentcost/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "currentcost",
"name": "Current Cost",
"version": "0.1.9",
"version": "0.2.0",
"documentation": "https://github.com/lolouk44/CurrentCost_HA_CC",
"requirements": [
"pyserial-asyncio==0.4",
Expand Down
7 changes: 6 additions & 1 deletion info.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ template:
unit_of_measurement: '°C'
state: '{{ state_attr("sensor.current_cost", "Temperature") | float -3 }}' # Manual adjustment of -3°C in case the temp sensor is high than real temperature
device_class: temperature
state_class: measurement
state_class: measurement # Add state_class: measurement for long term statistics are required
- sensor:
- name: "CurrentCost Power"
unit_of_measurement: 'W'
Expand All @@ -39,6 +39,11 @@ template:
state: '{{ state_attr("sensor.current_cost", "Appliance 2") }}'
device_class: power
state_class: measurement
- sensor:
- name: "Total Energy Used Last 24h" # Note: this data is published by the Current Cost device every 2h
unit_of_measurement: 'KWh'
state: '{{ state_attr("sensor.current_cost", "Appliance 0 Last 24h") }}'
device_class: energy
```
{% if installed %}
Expand Down

0 comments on commit 276fe96

Please sign in to comment.