Fix hvac mode keys (#24866)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Avishay 2022-11-16 22:08:47 +02:00 committed by GitHub
parent 0eb98f3c81
commit 9b4a9cf9c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,14 +420,21 @@ modbus:
hvac_mode_register: hvac_mode_register:
address: 11 address: 11
values: values:
auto: 0 state_auto: 0
cool: 1 state_cool: 1
heat: 2 state_heat: 2
fan_only: 3 state_fan_only: 3
dry: 4 state_dry: 4
state_off: 5
hvac_onoff_register: 11 hvac_onoff_register: 11
``` ```
{% details "Previous configuration format" %}
The configuration format of `hvac_mode_register` has changed. The old format uses keys such as `off`, `auto`, `cool` instead of `state_off`, `state_auto` and `state_cool` that is currently used. The old keys should no longer be used and is deprecated.
{% enddetails %}
{% configuration %} {% configuration %}
climates: climates:
description: A list of all climates available in this modbus instance. description: A list of all climates available in this modbus instance.
@ -486,31 +493,31 @@ climates:
required: true required: true
type: [map] type: [map]
keys: keys:
"off": state_off:
description: The register value corresponding to HVAC Off mode. description: The register value corresponding to HVAC Off mode.
required: false required: false
type: integer type: integer
heat: state_heat:
description: The register value corresponding to HVAC Heat mode. description: The register value corresponding to HVAC Heat mode.
required: false required: false
type: integer type: integer
cool: state_cool:
description: The register value corresponding to HVAC Cool mode. description: The register value corresponding to HVAC Cool mode.
required: false required: false
type: integer type: integer
auto: state_auto:
description: The register value corresponding to HVAC Auto mode. description: The register value corresponding to HVAC Auto mode.
required: false required: false
type: integer type: integer
dry: state_dry:
description: The register value corresponding to HVAC Dry mode. description: The register value corresponding to HVAC Dry mode.
required: false required: false
type: integer type: integer
fan_only: state_fan_only:
description: The register value corresponding to HVAC Fan only mode. description: The register value corresponding to HVAC Fan only mode.
required: false required: false
type: integer type: integer
heat_cool: state_heat_cool:
description: The register value corresponding to HVAC Heat/Cool mode. description: The register value corresponding to HVAC Heat/Cool mode.
required: false required: false
type: integer type: integer