mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Fix MQTT where ON and OFF showed as true and false (#7140)
This commit is contained in:
parent
51783763ad
commit
9c3ef8298e
@ -24,8 +24,8 @@ It uses a sensor under the hood to obtain the current temperature.
|
||||
climate:
|
||||
- platform: mqtt
|
||||
name: Study
|
||||
current_temperature_topic: /sensors/hvac_study/current_temp
|
||||
temperature_command_topic: /sensors/hvac_study/target_temp
|
||||
current_temperature_topic: sensors/hvac_study/current_temp
|
||||
temperature_command_topic: sensors/hvac_study/target_temp
|
||||
```
|
||||
|
||||
{% configuration %}
|
||||
@ -58,12 +58,12 @@ payload_on:
|
||||
description: The payload that represents enabled state.
|
||||
required: false
|
||||
type: string
|
||||
default: ON
|
||||
default: "ON"
|
||||
payload_off:
|
||||
description: The payload that represents disabled state.
|
||||
required: false
|
||||
type: string
|
||||
default: OFF
|
||||
default: "OFF"
|
||||
availability_topic:
|
||||
description: The MQTT topic subscribed to receive availability (online/offline) updates.
|
||||
required: false
|
||||
@ -224,9 +224,9 @@ climate:
|
||||
- platform: mqtt
|
||||
name: Study
|
||||
modes:
|
||||
- off
|
||||
- on
|
||||
- auto
|
||||
- "off"
|
||||
- "on"
|
||||
- "auto"
|
||||
mode_command_topic: "study/ac/mode/set"
|
||||
mode_state_topic: "study/ac/mode/state"
|
||||
mode_state_template: "{{ value_json }}"
|
||||
@ -246,16 +246,16 @@ climate:
|
||||
- platform: mqtt
|
||||
name: Study
|
||||
modes:
|
||||
- off
|
||||
- cool
|
||||
- fan_only
|
||||
- "off"
|
||||
- "cool"
|
||||
- "fan_only"
|
||||
swing_modes:
|
||||
- on
|
||||
- off
|
||||
- "on"
|
||||
- "off"
|
||||
fan_modes:
|
||||
- high
|
||||
- medium
|
||||
- low
|
||||
- "high"
|
||||
- "medium"
|
||||
- "low"
|
||||
power_command_topic: "study/ac/power/set"
|
||||
mode_command_topic: "study/ac/mode/set"
|
||||
temperature_command_topic: "study/ac/temperature/set"
|
||||
|
@ -50,12 +50,12 @@ payload_on:
|
||||
description: The payload that represents the running state.
|
||||
required: false
|
||||
type: string
|
||||
default: ON
|
||||
default: "ON"
|
||||
payload_off:
|
||||
description: The payload that represents the stop state.
|
||||
required: false
|
||||
type: string
|
||||
default: OFF
|
||||
default: "OFF"
|
||||
state_value_template:
|
||||
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the state."
|
||||
required: false
|
||||
|
@ -50,12 +50,12 @@ state_on:
|
||||
description: The payload that represents the on state.
|
||||
required: false
|
||||
type: string
|
||||
default: ON
|
||||
default: "ON"
|
||||
state_off:
|
||||
description: The payload that represents the off state.
|
||||
required: false
|
||||
type: string
|
||||
default: OFF
|
||||
default: "OFF"
|
||||
command_topic:
|
||||
description: The MQTT topic to publish commands to change the switch state.
|
||||
required: false
|
||||
@ -68,12 +68,12 @@ payload_on:
|
||||
description: The payload that represents enabled state.
|
||||
required: false
|
||||
type: string
|
||||
default: ON
|
||||
default: "ON"
|
||||
payload_off:
|
||||
description: The payload that represents disabled state.
|
||||
required: false
|
||||
type: string
|
||||
default: OFF
|
||||
default: "OFF"
|
||||
payload_available:
|
||||
description: The payload that represents the available state.
|
||||
required: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user