Câu lệnh cài đặt Custom components gán LUX inverter vào Home Assistant dùng bất cứ trình terminal nào trên Home Assistant cũng được.
Thực hiện copy dán từng dòng vào terminal rồi enter
Bash
cd homeassistant
cd custom_components
wget https://bachtran.net/ha/luxpower.zip
unzip luxpower.zipSau khi giải nén xong thư mục vào cài đặt -> Thiết bị và dịch vụ -> Sau khi giải nén xong thư mục vào cài đặt -> Thiết bị và dịch vụ tìm Lux

Thêm vào các thông tin IP mã serial và mã của logger

Sau khi gán xong thêm tự động lấy dữ liệu sau thời gian nhất định
Card hiển thị LUX trên Dashboard
YAML
type: custom:lux-power-distribution-card
inverter_count: 1
parallel:
average_voltage: true
parallel_first: true
battery_soc:
entities:
- sensor.lux_battery
battery_flow:
entities:
- sensor.lux_battery_flow_live
home_consumption:
entities:
- sensor.lux_home_consumption_live
grid_flow:
entities:
- sensor.lux_grid_flow_live
lux_dongle:
- BA40101645
inverter_alias:
- Inverter 1
battery_voltage:
entities:
- sensor.lux_battery_voltage_live
pv_power:
entities:
- sensor.lux_solar_output_live
backup_power:
entities:
- sensor.lux_power_to_eps_live
grid_voltage:
entities:
- sensor.lux_grid_voltage_live
update_time:
entities:
- sensor.lux_data_received_time
show_last_update: true
grid_indicator:
hue: true
status_codes:
entities:
- sensor.lux_status
no_grid_is_warning: true
refresh_button: right
Chúc các bạn thành công! Nếu bạn ko thích tự làm có thể thuê mình làm từ a tới ă nhé 😀

