Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suport for AC200L #104

Open
Kathou99 opened this issue Feb 25, 2024 · 12 comments
Open

Suport for AC200L #104

Kathou99 opened this issue Feb 25, 2024 · 12 comments

Comments

@Kathou99
Copy link

Hi, with the AC200L I can't connect with the HA addon, see below the output I got.

Run the the HA addon

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
cont-init: info: running /etc/cont-init.d/00-banner.sh

-----------------------------------------------------------
 Add-on: Bluetti to MQTT
 MQTT bridge between Bluetti and Home Assistant
-----------------------------------------------------------
 Add-on version: 1.4.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.5  (amd64 / qemux86-64)
 Home Assistant Core: 2024.2.3
 Home Assistant Supervisor: 2024.02.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[14:10:13] INFO: Reading configuration settings...
[14:10:14] INFO: Starting bluetti-logger...
[14:10:14] INFO: Messages are NOT published to the MQTT broker in logger mode.
Traceback (most recent call last):
  File "/usr/local/bin/bluetti-logger", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/logger_cli.py", line 119, in main
    asyncio.run(log(args.address, args.log))
  File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/logger_cli.py", line 55, in log
    devices = await check_addresses({address})
  File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/bluetooth/__init__.py", line 55, in check_addresses
    return [build_device(d.address, d.name) for d in filtered]
  File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/bluetooth/__init__.py", line 55, in <listcomp>
    return [build_device(d.address, d.name) for d in filtered]
  File "/usr/local/lib/python3.10/site-packages/bluetti_mqtt/bluetooth/__init__.py", line 28, in build_device
    if match[1] == 'AC200M':
TypeError: 'NoneType' object is not subscriptable
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
@filippo5589
Copy link

Hi I also have the same problem with AC200L, you can't connect

@filippo5589
Copy link

IMG_0015

@ftrueck
Copy link

ftrueck commented Apr 7, 2024

There are lots of changes required. Basically the AC200L is similar to the AC200M. There are some minor quirks but basically it uses the same code. One of the bigger problems though is that the mqtt code seems in need to be fixed. In my local version I had lots of issues getting it to work.

@MikeWolfeGHC
Copy link

@ftrueck were you able to get it to work? I have the same problem, and any insight you can give would be appreciated.

@tripzero
Copy link

tripzero commented Apr 29, 2024

There is this: #106

I wonder if there are controls for ac input available.

@ftrueck
Copy link

ftrueck commented May 3, 2024

@MikeWolfeGHC Here is my working fork with support for AC200L:

https://github.com/ftrueck/bluetti_mqtt

@ftrueck
Copy link

ftrueck commented May 3, 2024

@tripzero there are controls for:

  • AC Output
  • DC Output
  • Power Off
  • Display Timeout

The input can not be changed at the moment.

@MikeWolfeGHC
Copy link

MikeWolfeGHC commented May 3, 2024 via email

@filippo5589
Copy link

filippo5589 commented May 3, 2024

Hi, I can't make it work, can you help me? @ftrueck I can't enter your repository.
image

@tripzero
Copy link

tripzero commented May 3, 2024

@tripzero there are controls for:

  • AC Output
  • DC Output
  • Power Off
  • Display Timeout

The input can not be changed at the moment.

Is that an bluetooth API thing or just we lack the right commands? I can't control it from the app, so I'm guessing it's the former...

@ftrueck
Copy link

ftrueck commented May 4, 2024

Hi, I can't make it work, can you help me? @ftrueck I can't enter your repository. image

What URL did you use?
The URL I posted is only for the library, not the HA Addon.
I have a rudimentary fork in my github for the HA Addon which just changes the origin of the library. But I can not test it at the moment, since my HA device is too far away from my bluetty AC200L, so I have no idea if it will work. If you want to give it a try.
The repo URL for the addon is: https://github.com/ftrueck/bluetti2mqtt. There is no guarantee that it will work because i have no idea of docker currently. :-)

@ftrueck
Copy link

ftrueck commented May 7, 2024

@tripzero there are controls for:

  • AC Output
  • DC Output
  • Power Off
  • Display Timeout

The input can not be changed at the moment.

Is that an bluetooth API thing or just we lack the right commands? I can't control it from the app, so I'm guessing it's the former...

I think probably both. The protocol is not disclosed from bluetti. So everything needs to be reverse engineered by hand. I do not know if someone already found the needed commands. I guess they exist, since you can control the inputs over bluetooth with the official bluetti app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants