mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Evohome update Jinja templates to snake_case (#10728)
This commit is contained in:
parent
b8979b00ba
commit
9706b2de67
@ -86,11 +86,11 @@ In Home Assistant, all this is done via `HVAC_MODE` and `PRESET_MODE` (but also
|
|||||||
|
|
||||||
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`.
|
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`.
|
||||||
|
|
||||||
For the Controller, see `systemModeStatus`:
|
For the Controller, see `system_mode_status`:
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```text
|
```text
|
||||||
{% if state_attr('climate.my_home', 'status').systemModeStatus.mode == "Away" %}
|
{% if state_attr('climate.my_home', 'status').system_mode_status.mode == "Away" %}
|
||||||
The system is in Away mode
|
The system is in Away mode
|
||||||
{% else %}
|
{% else %}
|
||||||
The system is not in Away mode
|
The system is not in Away mode
|
||||||
@ -102,7 +102,7 @@ For the Zones, it is `setpointStatus`:
|
|||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```text
|
```text
|
||||||
{{ state_attr('climate.kitchen', 'status').setpointStatus.setpointMode }}
|
{{ state_attr('climate.kitchen', 'status').setpoint_status.setpoint_mode }}
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ The Zones will expose the current/upcoming scheduled `setpoints`:
|
|||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```text
|
```text
|
||||||
{{ state_attr('climate.kitchen', 'status').setpoints.next.temperature }}
|
{{ state_attr('climate.kitchen', 'status').setpoints.next_sp_temp }}
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
@ -118,8 +118,8 @@ All evohome entities may have faults, and these can be turned into sensors, or:
|
|||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
```text
|
```text
|
||||||
{% if state_attr('climate.bedroom', 'status').activeFaults %}
|
{% if state_attr('climate.bedroom', 'status').active_faults %}
|
||||||
{% if state_attr('climate.bedroom', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
|
{% if state_attr('climate.bedroom', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %}
|
||||||
There is a low battery
|
There is a low battery
|
||||||
{% endif %}
|
{% endif %}
|
||||||
There is a Fault!
|
There is a Fault!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user