Skip to content

Commit

Permalink
Updated ThermIQ_Card.yaml to better handle MQTT data without EVU
Browse files Browse the repository at this point in the history
Tweaks in Thermiq regs
Made binary_sensor more future proof
  • Loading branch information
ThermIQ committed Oct 11, 2024
1 parent b2a8cf9 commit 8afae6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ThermIQ_Card.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ entities:
<ha-icon icon="mdi:fan" id="hpwidget-BRINESPIN" style="position:absolute;top:126px;left:11px;z-index:2;{% if (states('binary_sensor.thermiq_mqtt_vp1_brine_pump_on')=='on') %}animation: rotating 2s linear infinite;{% endif %}"></ha-icon>
<ha-icon icon="mdi:fan" id="hpwidget-CIRKPSPIN" style="position:absolute;top:228px;left:147px;z-index:2;{% if (states('binary_sensor.thermiq_mqtt_vp1_supply_pump_on')=='on') %}animation: rotating 2s linear infinite;{% endif %}"></ha-icon>
<ha-icon icon="mdi:alert-circle" id="hpwidget-ALERT" style="color:red;position:absolute;top:42px;left:82px;z-index:4;animation: blink 1s steps(5, start) infinite;{% if (states('sensor.thermiq_mqtt_vp1_communication_status')=='Ok') %}display:none{% endif %}"></ha-icon>
<ha-icon icon="mdi:stop" id="hpwidget-EVU" style="color:red;position:absolute;top:62px;left:82px;z-index:120;animation: blink 1s steps(5, start) infinite;{% if (states('sensor.thermiq_mqtt_vp1_heatpump_evu_block') | int ==0) %}display:none{% endif %}">EVU</ha-icon>
<ha-icon icon="mdi:stop" id="hpwidget-EVU" style="color:red;position:absolute;top:62px;left:82px;z-index:120;animation: blink 1s steps(5, start) infinite;{% if (states('sensor.thermiq_mqtt_vp1_heatpump_evu_block') | int ==1) %} {% else %}display:none{% endif %}">EVU</ha-icon>
</div>
<div class="hpwidget-vald" title="Indoor Temperature" style="position:absolute;top:70px;left: 24px;z-index:2;><span class="hpwidget-name-span" id="hpwidget-INDR_T"></span>{{ states('sensor.thermiq_mqtt_vp1_indoor_t') }}<span class="hpwidget-unit-spand">&nbsp;C</span></div>
<div class="hpwidget-vald" title="Indoor Temperature" style="position:absolute;top:20px;left:24px;z-index:2;><span class="hpwidget-name-span" id="hpwidget-OUTDOOR_T"></span>{{ states('sensor.thermiq_mqtt_vp1_outdoor_t') }}<span class="hpwidget-unit-spand">&nbsp;C</span></div>
Expand Down
7 changes: 3 additions & 4 deletions custom_components/thermiq_mqtt/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@
reg_id,
)

if TYPE_CHECKING:
from functools import cached_property
else:
from homeassistant.backports.functools import cached_property

from functools import cached_property


_LOGGER = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions custom_components/thermiq_mqtt/heatpump/thermiq_regs.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
'integral1_curve_n5' : ['r39', 'temperature_input', 'ºC', -5, 5, 4, 8 ],
'heating_stop_t' : ['r3a', 'temperature_input', 'ºC', 0, 200, 4, 8 ],
'reduction_t' : ['r3b', 'temperature_input', 'ºC', 0, 100, 4, 10 ],
'room_factor' : ['r3c', 'temperature_input', 'ºC', 0, 4, 4, 11 ],
'room_factor' : ['r3c', 'sensor_input', 'factor', 0, 4, 4, 11 ],
'integral2_curve_slope' : ['r3d', 'temperature_input', 'ºC', 0, 200, 6, 0 ],
'integral2_curve_min' : ['r3e', 'temperature_input', 'ºC', 0, 200, 6, 1 ],
'integral2_curve_max' : ['r3f', 'temperature_input', 'ºC', 0, 200, 6, 2 ],
Expand Down Expand Up @@ -150,7 +150,7 @@
'rssi': ['rssi', 'generated_sensor', '', 0, 0, 0, 0],
'app_info': ['app_info', 'generated_sensor', '', 0, 0, 0, 0],
'communication_status': ['communication_status','generated_sensor','',0,0,0,0],

}

# Translation dictionary
Expand Down

0 comments on commit 8afae6c

Please sign in to comment.