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

Is it possible to add all cell voltages in your integration? #141

Open
Karatzie opened this issue Oct 17, 2024 · 1 comment
Open

Is it possible to add all cell voltages in your integration? #141

Karatzie opened this issue Oct 17, 2024 · 1 comment

Comments

@Karatzie
Copy link

Hi Patrick,

I own a AC200MAX and use the HA with the Bluetti ADDON bluetti_mqtt.

https://github.com/warhammerkid/bluetti_mqtt

This ADDON delivers additional sensors from the Bluetti.
It is possible to add cell voltages and some additional sensors over the configuration yaml.
I have add this code in this file:

mqtt:
  sensor:
    - name: "AC200M SPG Zelle 01"
      unique_id: ac200mcell1
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[0] }}"
    - name: "AC200M SPG Zelle 02"
      unique_id: ac200mcell2
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[1] }}"
    - name: "AC200M SPG Zelle 03"
      unique_id: ac200mcell3
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[2] }}"
    - name: "AC200M SPG Zelle 04"
      unique_id: ac200mcell4
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[3] }}"
    - name: "AC200M SPG Zelle 05"
      unique_id: ac200mcell5
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[4] }}"
    - name: "AC200M SPG Zelle 06"
      unique_id: ac200mcell6
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[5] }}"
    - name: "AC200M SPG Zelle 07"
      unique_id: ac200mcell7
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[6] }}"
    - name: "AC200M SPG Zelle 08"
      unique_id: ac200mcell8
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[7] }}"
    - name: "AC200M SPG Zelle 09"
      unique_id: ac200mcell9
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[8] }}"
    - name: "AC200M SPG Zelle 10"
      unique_id: ac200mcell10
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[9] }}"
    - name: "AC200M SPG Zelle 11"
      unique_id: ac200mcell11
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[10] }}"
    - name: "AC200M SPG Zelle 12"
      unique_id: ac200mcell12
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[11] }}"
    - name: "AC200M SPG Zelle 13"
      unique_id: ac200mcell13
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[12] }}"
    - name: "AC200M SPG Zelle 14"
      unique_id: ac200mcell14
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[13] }}"
    - name: "AC200M SPG Zelle 15"
      unique_id: ac200mcell15
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[14] }}"
    - name: "AC200M SPG Zelle 16"
      unique_id: ac200mcell16
      icon: mdi:battery
      state_topic: "bluetti/state/AC200M-2204000267875/pack_details1"
      unit_of_measurement: "V"
      value_template: "{{ value_json.voltages[15] }}"
    - name: "AC200M AC Frequenz"
      unique_id: ac200macfrequenz
      icon: mdi:electron-framework
      state_topic: "bluetti/state/AC200M-2204000267875/internal_ac_frequency"
      unit_of_measurement: "hz"
      value_template: "{{ value_json }}"
    - name: "AC200M AC SPG"
      unique_id: ac200macspg
      icon: mdi:electron-framework
      state_topic: "bluetti/state/AC200M-2204000267875/internal_ac_voltage"
      unit_of_measurement: "V"
      value_template: "{{ value_json }}"
    - name: "AC200M Intern Power"
      unique_id: ac200minternalpower
      icon: mdi:electron-framework
      state_topic: "bluetti/state/AC200M-2204000267875/internal_power_one"
      unit_of_measurement: "W"
      value_template: "{{ value_json }}"
    - name: "AC200M AC Inverter Mode"
      unique_id: ac200macinvertermode
      icon: mdi:electron-framework
      state_topic: "bluetti/state/AC200M-2204000267875/ac_output_mode"

It would be a greate thing to add this sensors in your integration.

BR Andreas

@Karatzie
Copy link
Author

I saw in the debug log following infaomation.
grafik
The cell voltages are collected from the battery in HA.
It should be possible to add this values easily.
But I do not know how this is to do.

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

1 participant