Skip to content

Commit 8529b0c

Browse files
committed
Cleaned up Integration overview page
1 parent 9c6b2c9 commit 8529b0c

5 files changed

Lines changed: 27 additions & 20 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ Get the neccessary hardware from [Thermiq.net](https://thermiq.net), where you a
2828
1. HACS->Frontend->Explore/Add [HTML Jinja2 Template card](https://github.com/PiotrMachowski/Home-Assistant-Lovelace-HTML-Jinja2-Template-card)
2929
2. HACS->Frontend->Explore/Add [Number Box](https://github.com/htmltiger/numberbox-card)
3030
3. HACS->Frontend->Explore/Add [fold-entity-row](https://github.com/thomasloven/lovelace-fold-entity-row)
31-
4. Download/save the images [vp_base.png](vp_base.png), [vp_base_hgwon.png](vp_base_hgwon.png) and [vp_base_hw.png](vp_base_hw.png)
32-
5. Upload the downloaded files to your Home Assistant machine to either the folder **www/community/** or (**local/community/**)
33-
6. Go to your dashboard and add a new manual card
34-
7. Copy/paste the contents of [ThermIQ_Card.yaml](https://github.com/ThermIQ/thermiq_mqtt-ha/blob/master/ThermIQ_Card.yaml) into your manual card
35-
8. Before you save the card, adjust the ID if you've used anything else than the default **vp1** when setting up the integration. If you do: Ctrl+F with find/replace is your friend.
31+
4. HACS->Frontend->Explore/Add [apexcharts-card]https://github.com/RomRider)
32+
5. Download/save the images [vp_base.png](vp_base.png), [vp_base_hgwon.png](vp_base_hgwon.png) and [vp_base_hw.png](vp_base_hw.png)
33+
6. Upload the downloaded files to your Home Assistant machine to either the folder **www/community/** or (**local/community/**)
34+
7. Go to your dashboard and add a new manual card
35+
8. Copy/paste the contents of [ThermIQ_Card.yaml](https://github.com/ThermIQ/thermiq_mqtt-ha/blob/master/ThermIQ_Card.yaml) into your manual card
36+
9. Before you save the card, adjust the ID if you've used anything else than the default **vp1** when setting up the integration. If you do: Ctrl+F with find/replace is your friend.
3637

3738
### Debugging
3839

custom_components/thermiq_mqtt/binary_sensor.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525
)
2626
from .const import (
2727
DOMAIN,
28+
MANUFACTURER,
29+
DEVVERSION,
2830
CONF_ID,
2931
)
3032

33+
3134
from .heatpump.thermiq_regs import (
3235
FIELD_BITMASK,
3336
FIELD_MAXVALUE,
@@ -124,15 +127,16 @@ def __init__(self, hass, heatpump, device_id, vp_reg, friendly_name, bitmask):
124127
self._async_update_event,
125128
)
126129

127-
# Is this needed
128-
self._attr_device_info = {
129-
ATTR_IDENTIFIERS: {(heatpump._id, "ThermIQ-MQTT")},
130-
ATTR_NAME: friendly_name,
131-
ATTR_MANUFACTURER: "ThermIQ",
132-
ATTR_MODEL: "v1.0",
130+
# This is needed
131+
self._attr_device_info = {
132+
ATTR_IDENTIFIERS: {(DOMAIN,heatpump._id)},
133+
ATTR_NAME: "Heatpump status",
134+
ATTR_MANUFACTURER: MANUFACTURER,
135+
ATTR_MODEL: DEVVERSION,
133136
"entry_type": DeviceEntryType.SERVICE,
134137
}
135138

139+
136140
@property
137141
def name(self):
138142
"""Return the name of the sensor."""

custom_components/thermiq_mqtt/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Component domain, used to store component data in hass data.
44
DOMAIN = "thermiq_mqtt"
55
MANUFACTURER = "ThermIQ.net"
6+
DEVVERSION ="1.1"
67

78
# == ThermIQ Const
89
CONF_ID = "id_name"

custom_components/thermiq_mqtt/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"documentation": "https://github.com/thermiq/thermiq_mqtt-ha",
88
"iot_class": "local_push",
99
"issue_tracker": "https://github.com/thermiq/thermiq_mqtt-ha/issues",
10-
"version": "2.3.8"
10+
"version": "2.4.0"
1111
}

custom_components/thermiq_mqtt/sensor.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from .const import (
2727
DOMAIN,
2828
MANUFACTURER,
29+
DEVVERSION,
2930
CONF_ID,
3031
)
3132

@@ -182,15 +183,15 @@ def __init__(
182183
)
183184

184185
# This is needed
185-
186-
187-
self._attr_device_info = {
188-
self.device_info[ATTR_IDENTIFIERS] = {(DOMAIN, heatpump._id)}
189-
self.device_info[ATTR_NAME] = friendly_name
190-
self.device_info[ATTR_MANUFACTURER] = friendly_name
191-
self.device_info[ATTR_MODEL] = DEVVERSION
192-
self.device_info[entry_type] = DeviceEntryType.SERVICE
186+
self._attr_device_info = {
187+
ATTR_IDENTIFIERS: {(DOMAIN,heatpump._id)},
188+
ATTR_NAME: "Heatpump status",
189+
ATTR_MANUFACTURER: MANUFACTURER,
190+
ATTR_MODEL: DEVVERSION,
191+
"entry_type": DeviceEntryType.SERVICE,
192+
}
193193

194+
194195

195196
@property
196197
def name(self):

0 commit comments

Comments
 (0)