Created
July 21, 2022 13:22
-
-
Save piitaya/670dbdf48aa5fd88afb02a6bd21b47dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mqtt: | |
climate: | |
- name: Intex Spa Heater | |
icon: mdi:fire | |
unique_id: mqtt_intex_spa_heater | |
availability: | |
- topic: "intex/state" | |
payload_available: "online" | |
payload_not_available: "offline" | |
value_template: >- | |
{% set values = { 'offline':'offline','online':'online','error':'offline'} %} | |
{{ values[value] if value in values.keys() else 'offline' }} | |
payload_on: "on" | |
payload_off: "off" | |
modes: | |
- "off" | |
- "heat" | |
mode_state_topic: "intex/pool/heater" | |
mode_state_template: >- | |
{% set values = { 'off':'off','on':'heat','standby':'heat'} %} | |
{{ values[value] if value in values.keys() else 'off' }} | |
mode_command_topic: "intex/pool/heater/set" | |
mode_command_template: >- | |
{% set values = {'heat':'on','off':'off'} %} | |
{{ values[value] if value in values.keys() else 'off' }} | |
action_topic: "intex/pool/heater" | |
action_template: >- | |
{% set values = { 'off':'off','on':'heating','standby':'idle'} %} | |
{{ values[value] if value in values.keys() else 'off' }} | |
current_temperature_topic: "intex/pool/current_temperature" | |
temperature_state_topic: "intex/pool/target_temperature" | |
temperature_command_topic: "intex/pool/target_temperature/set" | |
temperature_command_template: "{{ value | int }}" | |
temp_step: 1.0 | |
precision: 1.0 | |
min_temp: 20 | |
max_temp: 40 | |
switch: | |
- name: Intex Spa Power | |
unique_id: mqtt_intex_spa_power | |
icon: mdi:power | |
availability: | |
- topic: "intex/state" | |
payload_available: "online" | |
payload_not_available: "offline" | |
value_template: >- | |
{% set values = { 'offline':'offline','online':'online','error':'offline'} %} | |
{{ values[value] if value in values.keys() else 'offline' }} | |
payload_on: "on" | |
payload_off: "off" | |
state_topic: "intex/pool/power" | |
command_topic: "intex/pool/power/set" | |
- name: Intex Spa Bubble | |
icon: mdi:chart-bubble | |
unique_id: mqtt_intex_spa_bubble | |
availability: | |
- topic: "intex/state" | |
payload_available: "online" | |
payload_not_available: "offline" | |
value_template: >- | |
{% set values = { 'offline':'offline','online':'online','error':'offline'} %} | |
{{ values[value] if value in values.keys() else 'offline' }} | |
payload_on: "on" | |
payload_off: "off" | |
state_topic: "intex/pool/bubble" | |
command_topic: "intex/pool/bubble/set" | |
- name: Intex Spa Filter | |
unique_id: mqtt_intex_spa_filter | |
icon: mdi:air-filter | |
availability: | |
- topic: "intex/state" | |
payload_available: "online" | |
payload_not_available: "offline" | |
value_template: >- | |
{% set values = { 'offline':'offline','online':'online','error':'offline'} %} | |
{{ values[value] if value in values.keys() else 'offline' }} | |
payload_on: "on" | |
payload_off: "off" | |
state_topic: "intex/pool/filter" | |
command_topic: "intex/pool/filter/set" | |
sensor: | |
- name: Intex Spa Case Temperature | |
unique_id: mqtt_intex_spa_case_temperature | |
icon: mdi:thermometer-alert | |
availability: | |
- topic: "intex/state" | |
payload_available: "online" | |
payload_not_available: "offline" | |
value_template: >- | |
{% set values = { 'offline':'offline','online':'online','error':'offline'} %} | |
{{ values[value] if value in values.keys() else 'offline' }} | |
state_topic: "intex/board/temperature" | |
device_class: temperature | |
state_class: measurement | |
entity_category: diagnostic | |
unit_of_measurement: °C | |
- name: Intex Spa Water Temperature | |
unique_id: mqtt_intex_spa_water_temperature | |
icon: mdi:thermometer-water | |
availability: | |
- topic: "intex/state" | |
payload_available: "online" | |
payload_not_available: "offline" | |
value_template: >- | |
{% set values = { 'offline':'offline','online':'online','error':'offline'} %} | |
{{ values[value] if value in values.keys() else 'offline' }} | |
state_topic: "intex/pool/current_temperature" | |
device_class: temperature | |
state_class: measurement | |
unit_of_measurement: °C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment