Skip to content

Commit 9706b2d

Browse files
namadorifrenck
authored andcommitted
Evohome update Jinja templates to snake_case (home-assistant#10728)
1 parent b8979b0 commit 9706b2d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/_integrations/evohome.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ In Home Assistant, all this is done via `HVAC_MODE` and `PRESET_MODE` (but also
8686

8787
The actual operating mode of evohome entities can be tracked via their state attributes, which includes a JSON data structure for the current state called `status`.
8888

89-
For the Controller, see `systemModeStatus`:
89+
For the Controller, see `system_mode_status`:
9090

9191
{% raw %}
9292
```text
93-
{% if state_attr('climate.my_home', 'status').systemModeStatus.mode == "Away" %}
93+
{% if state_attr('climate.my_home', 'status').system_mode_status.mode == "Away" %}
9494
The system is in Away mode
9595
{% else %}
9696
The system is not in Away mode
@@ -102,24 +102,24 @@ For the Zones, it is `setpointStatus`:
102102

103103
{% raw %}
104104
```text
105-
{{ state_attr('climate.kitchen', 'status').setpointStatus.setpointMode }}
105+
{{ state_attr('climate.kitchen', 'status').setpoint_status.setpoint_mode }}
106106
```
107107
{% endraw %}
108108

109109
The Zones will expose the current/upcoming scheduled `setpoints`:
110110

111111
{% raw %}
112112
```text
113-
{{ state_attr('climate.kitchen', 'status').setpoints.next.temperature }}
113+
{{ state_attr('climate.kitchen', 'status').setpoints.next_sp_temp }}
114114
```
115115
{% endraw %}
116116

117117
All evohome entities may have faults, and these can be turned into sensors, or:
118118

119119
{% raw %}
120120
```text
121-
{% if state_attr('climate.bedroom', 'status').activeFaults %}
122-
{% if state_attr('climate.bedroom', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
121+
{% if state_attr('climate.bedroom', 'status').active_faults %}
122+
{% if state_attr('climate.bedroom', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %}
123123
There is a low battery
124124
{% endif %}
125125
There is a Fault!

0 commit comments

Comments
 (0)