Git Product home page Git Product logo

hass-broadlink-ac-mqtt's Introduction

Hi there 👋

hass-broadlink-ac-mqtt's People

Contributors

arbuzov avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hass-broadlink-ac-mqtt's Issues

How to hide the cooling button, how to use the power limitation option like in AC freedom

  1. I have a converted auxiliary air conditioning for a heat pump, the addon works well, but I wanted to hide the cooling option button so that someone would not press it by accident, which would result in damage to the central heating and air conditioning system.
  2. Is it possible to control the power limitation of the air conditioner as it can be done in the AC freedom application?

Not getting any info from AC unit

i get no info out of the unit

i only get this on the log:

Starting Monitor...
(200, ('192.168.100.28', 80))
Stopping
Starting Monitor...
(200, ('192.168.100.28', 80))
Stopping
Starting Monitor...
(200, ('192.168.100.28', 80))
Stopping
Starting Monitor...
(200, ('192.168.100.28', 80))
Stopping
Starting Monitor...
(200, ('192.168.100.28', 80))
Stopping
Starting Monitor...
(200, ('192.168.100.28', 80))
Stopping

this is my yaml

service:
daemon_mode: true
update_interval: 10
self_discovery: false
bind_to_ip: false
mqtt:
host: 192.168.100.49
port: 1883
client_id: ac_to_mqtt
user: mqtt-user
passwd: #########
topic_prefix: /aircon
auto_discovery_topic: homeassistant
auto_discovery_topic_retain: false
discovery: false
devices:

  • ip: 192.168.100.28
    mac: ###############
    name: Clima
    port: 80

Connection fail

This is my log. What is the problem?
successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun broadlink-ac-mqtt (no readiness notification)
s6-rc: info: service legacy-services successfully started
Starting Monitor...
Authentication Failed to AC
init() should return None, not 'bool'
Stopping
Starting Monitor...
Authentication Failed to AC
init() should return None, not 'bool'
Stopping

No Feedback in HA after a while

Hi,

The Add-on looks perfect, I can control my AIR-CON - Thanks a lot!!

Sometimes i need to restart the ADD-ON after HA restart as not able to control the AIR-CON. I have created an Automation to restart ADD-ON 30 seconds after the HA restarts. I'll build a button to triger this as needed .. but it will be nice to resolve this.

Also, it looks that after the AIRCON receives the commands, after some seconds, the feedback is not visible aymore, so HA don't know if the AIRCOn is ON or OFF. Some info, temperature, fan, remains with the last info, but starts resets to OFF.

That will be nice to resolve!
Thanks a lot again!
Razvan

Error on log: Invalid swing_modes mode: 0

Hello,

Thank you for this addon! Everything works fine, however HA LOGS constantly throwing this error: Invalid swing_modes mode: 0.

How I could avoid that? Maybe there is something has to be adjusted in code?
Thank you in advance for your replies.

error

Devices become unavailable after time-out

whenever a command cannot be sent due to a time-out, all of the devices become unavailable and I need to restart the service for them to become available again.
1 of my airco's keeps giving random time-outs, funny enough it's the one closest to my router.

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun broadlink-ac-mqtt (no readiness notification)
s6-rc: info: service legacy-services successfully started
Starting Monitor...
(200, ('192.168.1.98', 80))
(200, ('192.168.1.98', 80))
(200, ('192.168.1.98', 80))
(200, ('192.168.1.98', 80))
(200, ('192.168.1.98', 80))
(200, ('192.168.1.98', 80))
(200, ('192.168.1.98', 80))
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/share/broadlink_ac_mqtt-1.2.1b/broadlink_ac_mqtt/classes/broadlink/ac_db.py", line 252, in send_packet
response = self.cs.recvfrom(1024)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3591, in _thread_main
self.loop_forever(retry_first_connection=True)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
rc = self._loop(timeout)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1164, in _loop
rc = self.loop_read()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1556, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
return self._handle_publish()
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
self._handle_on_message(message)
File "/usr/local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
on_message(self, self._userdata, message)
File "/usr/share/broadlink_ac_mqtt-1.2.1b/broadlink_ac_mqtt/AcToMqtt.py", line 408, in _on_mqtt_message
status = self.device_objects[address].set_fanspeed(value)
File "/usr/share/broadlink_ac_mqtt-1.2.1b/broadlink_ac_mqtt/classes/broadlink/ac_db.py", line 439, in set_fanspeed
self.get_ac_states()
File "/usr/share/broadlink_ac_mqtt-1.2.1b/broadlink_ac_mqtt/classes/broadlink/ac_db.py", line 710, in get_ac_states
response = self.send_packet(0x6a, GET_STATES)
File "/usr/share/broadlink_ac_mqtt-1.2.1b/broadlink_ac_mqtt/classes/broadlink/ac_db.py", line 258, in send_packet
raise ConnectTimeout(200,self.host)
broadlink_ac_mqtt.classes.broadlink.ac_db.ConnectTimeout: (200, ('192.168.1.98', 80))

something went wrong, no devices found

Does not work.

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun broadlink-ac-mqtt (no readiness notification)
s6-rc: info: service legacy-services successfully started
Starting Monitor…
Stopping
something went wrong, no devices found
Starting Monitor…
Stopping
something went wrong, no devices found
Starting Monitor…
Stopping

Here is my addon configuration file:

service:
daemon_mode: true
update_interval: 10
self_discovery: true
bind_to_ip: false
mqtt:
host: addon_core_mosquitto
port: 1883
client_id: ac_to_mqtt
user: mqtt-user
passwd: “mypassword”
topic_prefix: /aircon
auto_discovery_topic: homeassistant
auto_discovery_topic_retain: false
discovery: false
devices:

ip: 10.10.10.139
mac: c8f742348bec
name: Living Room AC
port: 80
ip: 10.10.10.80
mac: a043b008e504
name: Office AC
port: 80
ip: 10.10.10.79
mac: a043b0088f14
name: Home Cinema AC
port: 80

Shows °F but the actual numbers are coming in as °C

I am migrating from a VM running the original scripts. I had to update the actual Python in my version so that it told HomeAssistant that is was reporting in °C and then HomeAssistant would properly convert to °F. Since this just pulls the original repo I am not sure if there is a way to fix this one item.

Keeps stopping

Hi,

I've installed the plugin, but it keeps stopping:

s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun broadlink-ac-mqtt (no readiness notification)
s6-rc: info: service legacy-services successfully started
Starting Monitor...
(200, ('192.168.1.46', 80))
Stopping
Starting Monitor...
(200, ('192.168.1.46', 80))
Stopping
Starting Monitor...
(200, ('192.168.1.46', 80))
Stopping
Starting Monitor...
(200, ('192.168.1.46', 80))
Stopping

My settings:

daemon_mode: true
update_interval: 10
self_discovery: false
bind_to_ip: false
host: addon_core_mosquitto
port: 1883
client_id: ac_to_mqtt
user: **
passwd: **
topic_prefix: /aircon
auto_discovery_topic: homeassistant
auto_discovery_topic_retain: false
discovery: false
- ip: 192.168.1.46
  mac: e868e75732a6
  name: Airco
  port: 80

Mosquito logs:

1659555350: New connection from 172.30.33.1:52039 on port 1883.
1659555350: New client connected from 172.30.33.1:52039 as ac_to_mqtt (p2, c1, k60, u'**').
1659555351: Client ac_to_mqtt disconnected.

What could this be?
Version: 0.6.2
HA version: 2022.7.7
Mosquito: 6.1.2

Install problems

Sorry for the dumb question... but...
I've added the repository to addon store and still can't find and install the addon.
What am I making wrong?

Issue with CPU consumption

Hi, thanks for you hard work. Plugin work like a charm but I have noticed big CPU consumption. Take a look:

image

Can you check what the problem is?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.