Skip to content

Commit

Permalink
LT sensor set to fixed name for use in a.g. apecharts
Browse files Browse the repository at this point in the history
  • Loading branch information
vingerha committed May 10, 2024
1 parent e68a1f3 commit 003f584
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ Reworked from the great repo by yukulehe/gazpar2mqtt. Main differences are in th
For usage and installation etc. see [DOCUMENTATION](https://github.com/vingerha/gazpar_2_mqtt/wiki)

## Changelogs :
- 0.7.0
The LTS sensor name can no longer be chosen and is fixed to
- sensor.[device]_[pce-alias]_consumption_stat : for daily figures
- sensor.[device]_[pce-alias]_consumption_stat_pub : for periodically 'published' figures
Reason: previously the LTS sensors were added without a regular sensor, this makes their use impossible for e.g. apexcharts who uses the regular sensor-name also for statistics.
These 2 sensors will appear both in HA as in HA statistics

- 0.6.5
- Allow to select a date from which to collect data from GRDF (max 3y back in time)
- Allow import of published measures into Long Term Statistics
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.5
0.7.0
6 changes: 6 additions & 0 deletions addon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.7.0 (10-05-2024)
The LTS sensor name can no longer be chosen and is fixed to :

sensor.[device]_[pce-alias]_consumption_stat : for daily figures
sensor.[device]_[pce-alias]_consumption_stat_pub : for periodically 'published' figures

## 0.6.5 (09-05-2024)

Allow import of published measures into Long Term Statistics
Expand Down
2 changes: 1 addition & 1 deletion addon/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Gazpar 2 MQTT"
description: "Extracts GRDF data into MQTT a.o."
version: 0.6.5
version: 0.7.0
slug: "gazpar_2_mqtt"
init: false
homeassistant_api: true
Expand Down
2 changes: 1 addition & 1 deletion app/gazpar2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


# gazpar2mqtt constants
G2M_VERSION = '0.6.5'
G2M_VERSION = '0.7.0'
G2M_DB_VERSION = '0.2.0'
G2M_INFLUXDB_VERSION = '0.1.0'

Expand Down
1 change: 0 additions & 1 deletion app/param.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def __init__(self):
# Publication in HA long term statistics
self.hassLts = False
self.hassLtsDelete = False
self.hassLtsSensorName = "sensor.gazpar2mqtt_total"
self.hassToken = "" # Long-Lived Access Token
self.hassStatisticsUri = "/api/services/recorder/import_statistics"
self.hassHost = "http://192.168.x.y:8213"
Expand Down

0 comments on commit 003f584

Please sign in to comment.