Evohome update Jinja templates to snake_case (#10728)

This commit is contained in:
Nicholas Amadori 2019-12-06 12:31:43 +01:00 committed by Franck Nijhof
parent b8979b00ba
commit 9706b2de67

View File

@ -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`.
For the Controller, see `systemModeStatus`:
For the Controller, see `system_mode_status`:
{% raw %}
```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
{% else %}
The system is not in Away mode
@ -102,7 +102,7 @@ For the Zones, it is `setpointStatus`:
{% raw %}
```text
{{ state_attr('climate.kitchen', 'status').setpointStatus.setpointMode }}
{{ state_attr('climate.kitchen', 'status').setpoint_status.setpoint_mode }}
```
{% endraw %}
@ -110,7 +110,7 @@ The Zones will expose the current/upcoming scheduled `setpoints`:
{% raw %}
```text
{{ state_attr('climate.kitchen', 'status').setpoints.next.temperature }}
{{ state_attr('climate.kitchen', 'status').setpoints.next_sp_temp }}
```
{% endraw %}
@ -118,8 +118,8 @@ All evohome entities may have faults, and these can be turned into sensors, or:
{% raw %}
```text
{% if state_attr('climate.bedroom', 'status').activeFaults %}
{% if state_attr('climate.bedroom', 'status').activeFaults[0].faultType == 'TempZoneActuatorLowBattery' %}
{% if state_attr('climate.bedroom', 'status').active_faults %}
{% if state_attr('climate.bedroom', 'status').active_faults[0].fault_type == 'TempZoneActuatorLowBattery' %}
There is a low battery
{% endif %}
There is a Fault!