31 Commits

Author SHA1 Message Date
e45bfc9936 Update HACS details 2021-12-18 14:16:52 +00:00
130a79da16 Improve error handling 2021-12-18 14:16:40 +00:00
9355c0917a Use HA defintions rather than our own 2021-11-14 16:47:20 +00:00
3e24460b24 More error handling for failed queries and unavailable Prometheus 2021-11-14 16:44:44 +00:00
1ad0c03cdd Remove unneeded imports 2021-11-14 16:36:45 +00:00
FriendlyNGeeks
e6ee2c4b4a readme 2021-11-11 10:50:53 -05:00
FriendlyNGeeks
a4f8a5d259 device_class 2021-11-11 10:45:51 -05:00
FriendlyNGeeks
962ab5e3fa device_class added 2021-11-11 10:44:40 -05:00
lfasci
d3510719c3 Merge pull request #6 from kamaradclimber/master
Compatibility for energy dashboard
2021-10-06 06:44:17 +02:00
Grégoire Seux
85d4acb229 Migrate to SensorEntity base class
Goal is to be usable as a source of energy in the energy dashboard.
Starting with HA 2021.9 (still in beta), sensors will be have long term
stats and be usable in energy dashboard.
It also gives a better integration with base classes of home assistant
and decrease code in this custom component.

Change-Id: Ide1967ac181c0cf7f093cff539aae2b1cdccd9b4
2021-08-29 21:14:40 +02:00
Grégoire Seux
f40cf1bfec Support unique_id
Support is a bit fragile since we don't really have a serial number to
base on. However we have a reasonnable default (source prometheus +
expression) and a way for user to specify id easily if they to change
the prometheus query.
2021-08-29 21:14:40 +02:00
Grégoire Seux
4fbe9c5660 Support state class propoerty for sensor
Fix lfasci/homeassistant-prometheus-query#5

Goal is to make a first pass to allow to be exposed in the energy
dashboard.
This requires usage of HA version 2021.9 (which is beta at time of
writing) if we want to allow total_increase state_class
2021-08-29 21:14:40 +02:00
lfasci
7bb6eb0166 Merge pull request #4 from radhus/master
HACS compliant
2021-07-08 05:40:19 +02:00
William Johansson
0c73f9932f Create custom_components root directory 2021-07-07 18:37:48 +02:00
William Johansson
aa958d6c43 manifest: add issue_tracker 2021-07-07 18:37:48 +02:00
William Johansson
c5d4082cb7 Remove pycache files 2021-07-07 18:37:48 +02:00
William Johansson
3adea353bf manifest: specify iot_class 2021-07-07 18:37:41 +02:00
lfasci
b8397a1653 Merge branch 'master' of https://github.com/lfasci/homeassistant-prometheus-query 2021-06-16 22:00:42 +02:00
lfasci
9315daa94a Modified manifest.json to match new requirements, chaged the folder name with underscore 2021-06-16 22:00:23 +02:00
lfasci
88c7d66c7a Update README.md 2021-06-14 07:54:11 +02:00
lfasci
f8f259a161 new folder 2021-06-14 06:56:37 +02:00
lfasci
ef45877d40 Changed folder name 2021-06-14 06:52:15 +02:00
lfasci
fff92dfbbf Update manifest.json 2021-06-14 06:47:22 +02:00
lfasci
f4981b5824 Update manifest.json
Renamed folder to underscore
2021-06-14 06:43:58 +02:00
lfasci
f176c7c927 Update README.md 2020-10-28 22:17:55 +01:00
lfasci
3c506b229a Update README.md 2020-10-28 21:54:07 +01:00
a.livolsi@stetel.com
ea373a35c0 Changed folders to make compatible with HACS 2020-10-28 21:51:26 +01:00
a.livolsi@stetel.com
d05443ff8c Changed folders to make compatible with HACS 2020-10-28 21:49:52 +01:00
lfasci
80d508196e Create info.md 2020-10-28 21:41:33 +01:00
lfasci
0fd4fd8979 Create hacs.json 2020-10-28 21:39:24 +01:00
lfasci@gmail.com
9e4dab510f First upload to github 2020-03-26 07:21:56 +01:00