Fix MQTT where ON and OFF showed as true and false (#7140)

This commit is contained in:
Ryan Wagoner 2018-10-28 07:43:44 -04:00 committed by Fabian Affolter
parent 51783763ad
commit 9c3ef8298e
3 changed files with 21 additions and 21 deletions

View File

@ -24,8 +24,8 @@ It uses a sensor under the hood to obtain the current temperature.
climate: climate:
- platform: mqtt - platform: mqtt
name: Study name: Study
current_temperature_topic: /sensors/hvac_study/current_temp current_temperature_topic: sensors/hvac_study/current_temp
temperature_command_topic: /sensors/hvac_study/target_temp temperature_command_topic: sensors/hvac_study/target_temp
``` ```
{% configuration %} {% configuration %}
@ -58,12 +58,12 @@ payload_on:
description: The payload that represents enabled state. description: The payload that represents enabled state.
required: false required: false
type: string type: string
default: ON default: "ON"
payload_off: payload_off:
description: The payload that represents disabled state. description: The payload that represents disabled state.
required: false required: false
type: string type: string
default: OFF default: "OFF"
availability_topic: availability_topic:
description: The MQTT topic subscribed to receive availability (online/offline) updates. description: The MQTT topic subscribed to receive availability (online/offline) updates.
required: false required: false
@ -224,9 +224,9 @@ climate:
- platform: mqtt - platform: mqtt
name: Study name: Study
modes: modes:
- off - "off"
- on - "on"
- auto - "auto"
mode_command_topic: "study/ac/mode/set" mode_command_topic: "study/ac/mode/set"
mode_state_topic: "study/ac/mode/state" mode_state_topic: "study/ac/mode/state"
mode_state_template: "{{ value_json }}" mode_state_template: "{{ value_json }}"
@ -246,16 +246,16 @@ climate:
- platform: mqtt - platform: mqtt
name: Study name: Study
modes: modes:
- off - "off"
- cool - "cool"
- fan_only - "fan_only"
swing_modes: swing_modes:
- on - "on"
- off - "off"
fan_modes: fan_modes:
- high - "high"
- medium - "medium"
- low - "low"
power_command_topic: "study/ac/power/set" power_command_topic: "study/ac/power/set"
mode_command_topic: "study/ac/mode/set" mode_command_topic: "study/ac/mode/set"
temperature_command_topic: "study/ac/temperature/set" temperature_command_topic: "study/ac/temperature/set"

View File

@ -50,12 +50,12 @@ payload_on:
description: The payload that represents the running state. description: The payload that represents the running state.
required: false required: false
type: string type: string
default: ON default: "ON"
payload_off: payload_off:
description: The payload that represents the stop state. description: The payload that represents the stop state.
required: false required: false
type: string type: string
default: OFF default: "OFF"
state_value_template: state_value_template:
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the state." description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the state."
required: false required: false

View File

@ -50,12 +50,12 @@ state_on:
description: The payload that represents the on state. description: The payload that represents the on state.
required: false required: false
type: string type: string
default: ON default: "ON"
state_off: state_off:
description: The payload that represents the off state. description: The payload that represents the off state.
required: false required: false
type: string type: string
default: OFF default: "OFF"
command_topic: command_topic:
description: The MQTT topic to publish commands to change the switch state. description: The MQTT topic to publish commands to change the switch state.
required: false required: false
@ -68,12 +68,12 @@ payload_on:
description: The payload that represents enabled state. description: The payload that represents enabled state.
required: false required: false
type: string type: string
default: ON default: "ON"
payload_off: payload_off:
description: The payload that represents disabled state. description: The payload that represents disabled state.
required: false required: false
type: string type: string
default: OFF default: "OFF"
payload_available: payload_available:
description: The payload that represents the available state. description: The payload that represents the available state.
required: false required: false