Install MQTT broker (server) on Anroid
https://apkpure.com/mqtt-broker-app/server.com.mqtt/download
Create MQTT sensor
https://www.home-assistant.io/integrations/sensor.mqtt/
# ~/.homeassistant/configuration.yam
# /mnt/data/supervisor/homeassistant/configuration.yaml (on Raspery PI)
...
mqtt: !include inverter.yaml
# inverter.yaml
sensor:
- name: "Inverter AC Power"
unique_id: "inverter_ac"
state_topic: "inverter/HM/ch0/P_AC"
unit_of_measurement: "W"
device_class: "energy"
state_class: "measurement"
- name: "Inverter DC Power"
unique_id: "inverter_dc"
state_topic: "inverter/HM/ch0/P_DC"
unit_of_measurement: "W"
device_class: "energy"
state_class: "measurement"
- name: "Inverter DC Power CH1"
unique_id: "inverter_dc_ch1"
state_topic: "inverter/HM/ch1/P_DC"
unit_of_measurement: "W"
device_class: "energy"
state_class: "measurement"
- name: "Inverter DC Power CH2"
unique_id: "inverter_dc_ch2"
state_topic: "inverter/HM/ch2/P_DC"
unit_of_measurement: "W"
device_class: "energy"
state_class: "measurement"
- name: "Inverter Yield Day"
unique_id: "inverter_yield_day"
state_topic: "inverter/HM/ch0/YieldDay"
unit_of_measurement: "Wh"
- name: "Inverter Yield Total"
unique_id: "inverter_yield_total"
state_topic: "inverter/HM/ch0/YieldTotal"
unit_of_measurement: "kWh"
device_class: "energy"
state_class: "measurement"
- name: "Inverter Temperature"
unique_id: "inverter_temperature"
state_topic: "inverter/HM/ch0/Temp"
unit_of_measurement: "°C"
icon: "mdi:thermometer"
Install mosquitto (MQTT broker) on Raspery PI OS as docker container