Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rinnai air conditioner broadlink_ac_mqtt configuration for Home Assistant
Context:
https://community.home-assistant.io/t/sendo-a-c-unit-with-wifi-control-broadlink-oem-t1
---------------------------
configuration.yaml snippits
---------------------------
# These entities tend to spam the logbook, so I excluded them
logbook:
exclude:
entities:
- automation.ac_living_room_fan_speed_receive
- automation.ac_living_room_fan_speed_send
- automation.ac_living_room_mode_receive
- automation.ac_living_room_mode_send
- automation.ac_living_room_temp_receive
- automation.ac_living_room_temp_send
mqtt:
broker: localhost
client_id: hass
switch:
- platform: mqtt
name: "Living Room AC Power"
state_topic: "/aircon/MACADDRESS/power/value"
command_topic: "/aircon/MACADDRESS/power/set"
input_select:
aclivingroom_mode:
name: Mode
options:
- Auto
- Cooling
- Heating
- Dry
- Fan
icon: "mdi:animation-outline"
aclivingroom_fanspeed:
name: Fan speed
options:
- Auto
- Low
- Mid
- High
icon: "mdi:weather-windy"
input_number:
aclivingroom_temp:
name: "Temp"
initial: 22
min: 16
max: 32
step: 0.5
icon: "mdi:thermometer"
-------------------------
automations.yaml snippits
-------------------------
- id: '1579319153815'
alias: AC Living Room mode send
description: ''
trigger:
- entity_id: input_select.aclivingroom_mode
platform: state
condition: []
action:
- data:
payload_template: '{{ states.input_select.aclivingroom_mode.state }}'
topic: /aircon/MACADDRESS/mode/set
service: mqtt.publish
- id: '1579319566290'
alias: AC Living Room mode receive
description: ''
trigger:
- platform: mqtt
topic: /aircon/MACADDRESS/mode/value
condition: []
action:
- service: automation.turn_off
data:
entity_id: automation.ac_living_room_mode_send
- service: input_select.select_option
data_template:
option: '{{ trigger.payload|title }}'
entity_id: input_select.aclivingroom_mode
- service: automation.turn_on
data:
entity_id: automation.ac_living_room_mode_send
- id: ac-living-room-fanspeed-send
alias: AC Living Room Fan Speed Send
description: ''
trigger:
- entity_id: input_select.aclivingroom_fanspeed
platform: state
condition: []
action:
- data:
payload_template: '{{ states.input_select.aclivingroom_fanspeed.state }}'
topic: /aircon/MACADDRESS/fanspeed/set
service: mqtt.publish
- id: ac-living-room-fanspeed-receive
alias: AC Living Room Fan Speed receive
description: ''
trigger:
- platform: mqtt
topic: /aircon/MACADDRESS/fanspeed/value
condition: []
action:
- service: automation.turn_off
data:
entity_id: automation.ac-living-room-fanspeed-send
- service: input_select.select_option
data_template:
option: '{{ trigger.payload|title }}'
entity_id: input_select.aclivingroom_fanspeed
- service: automation.turn_on
data:
entity_id: automation.ac-living-room-fanspeed-send
- id: ac-living-room-temp-receive
alias: AC Living Room Temp receive
description: ''
trigger:
- platform: mqtt
topic: /aircon/MACADDRESS/temp/value
condition: []
action:
- service: automation.turn_off
data:
entity_id: automation.ac-living-room-temp-send
- service: input_number.set_value
data_template:
value: '{{ trigger.payload }}'
entity_id: input_number.aclivingroom_temp
- service: automation.turn_on
data:
entity_id: automation.ac-living-room-temp-send
- id: ac-living-room-temp-send
alias: AC Living Room Temp send
description: ''
trigger:
- entity_id: input_number.aclivingroom_temp
platform: state
condition: []
action:
- data:
payload_template: '{{ states.input_number.aclivingroom_temp.state }}'
topic: /aircon/MACADDRESS/temp/set
service: mqtt.publish
-----------
entity card
-----------
entities:
- entity: switch.living_room_ac_power
icon: 'mdi:power'
name: Power
- entity: input_select.aclivingroom_mode
- entity: input_number.aclivingroom_temp
- entity: input_select.aclivingroom_fanspeed
show_header_toggle: false
theme: default
title: Living Room AC
type: entities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment