Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #92 from yoedf/master
Browse files Browse the repository at this point in the history
Add swing control to HA config
  • Loading branch information
Karman de Lange authored Jun 10, 2022
2 parents e1c6b19 + 6640e7a commit a5aff70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions broadlink_ac_mqtt/AcToMqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,17 @@ def make_devices_array_from_devices(self,devices):
,"mode_command_topic" : self.config["mqtt_topic_prefix"]+ device.status["macaddress"]+"/mode_homeassistant/set"
,"temperature_command_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/temp/set"
,"fan_mode_command_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/fanspeed_homeassistant/set"
,"swing_mode_command_topic": self.config["mqtt_topic_prefix"] + device.status["macaddress"] + "/fixation_v/set"
,"action_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/homeassistant/set"
##Read values
,"current_temperature_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/ambient_temp/value"
,"mode_state_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/mode_homeassistant/value"
,"temperature_state_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/temp/value"
,"fan_mode_state_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/fanspeed_homeassistant/value"
,"fan_mode_state_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/fanspeed_homeassistant/value"
,"swing_mode_state_topic" : self.config["mqtt_topic_prefix"] + device.status["macaddress"]+"/fixation_v/value"
,"fan_modes": ["Auto","Low","Medium", "High","Turbo","Mute"]
,"modes": ['off',"cool","heat","fan_only","dry"]
,"modes": ["off","cool","heat","fan_only","dry"]
,"swing_modes": ["TOP", "MIDDLE1", "MIDDLE2", "MIDDLE3", "BOTTOM", "SWING", "AUTO"]
,"max_temp":32.0
,"min_temp":16.0
,"precision": 0.5
Expand Down

0 comments on commit a5aff70

Please sign in to comment.