Hi all, I’ve finally got my setup working and reading my inverter, but now can’t get the sensors configured using my MQTT feed. Can someone tell me where I’m going wrong please?
- name: “Sofar: Grid power”
unique_id: “sofar_grid_power”
state_topic: "sofar/grid_power"
device_class: “power”
unit_of_measurement: "kW"
state_class: “measurement”
icon: "mdi:flash"
- name: “Sofar: Solar generation (today)”
unique_id: “sofar_solar_generation_today”
state_topic: "sofar/today_generation"
device_class: “power”
unit_of_measurement: "kW"
state_class: “measurement”
icon: "mdi:solar-power-variant"
- name: “Sofar: Solar power now”
unique_id: “sofar_solar_power_now”
state_topic: "sofar/solarPV”
device_class: “power”
unit_of_measurement: "kW"
state_class: “measurement”
icon: "mdi:solar-power-variant"
- name: "Sofar: Import (today)"
unique_id: “Sofar_import_today"
state_topic: "sofar/today_import"
device_class: "energy"
unit_of_measurement: "kWh"
state_class: "measurement"
icon: "mdi:home-import-outline"
- name: “Sofar: House consumption now”
unique_id: “sofar_house_consumption_now”
state_topic: "sofar/consumption“
device_class: “power”
unit_of_measurement: "kW"
state_class: “measurement”
icon: "mdi:home-import-outline"
- name: “Sofar: House I/O power now”
unique_id: “sofar_house_IO_power_now”
state_topic: "sofar/IOPower“
device_class: “power”
unit_of_measurement: "kW"
state_class: “measurement”
icon: "mdi:home-import-outline"
- name: "Sofar: Export (today)"
unique_id: “Sofar_export_today"
state_topic: "sofar/today_export”
device_class: "energy"
unit_of_measurement: "kWh"
state_class: "measurement"
icon: "mdi:home-export-outline"
- name: "Sofar Battery: Temp”
unique_id: “sofar_battery_temp"
state_topic: "sofar/battery_temp"
device_class: “temperature”
unit_of_measurement: “C”
state_class: "measurement"
icon: "mdi:thermometer"
- name: "Sofar: Inverter state”
unique_id: “Sofar_inverter_state”
state_topic: "sofar/inverter_state"
state_class: "measurement"
icon: "mdi:home-import-outline"
- name: "Sofar: Inverter temp”
unique_id: “Sofar_inverter_temp”
state_topic: "sofar/inverter_temp”
device_class: “temperature”
unit_of_measurement: “C”
state_class: "measurement"
icon: "mdi:thermometer"
- name: "Sofar: Battery SoC”
unique_id: “Sofar_battery_SoC”
state_topic: "sofar/battery_SOC”
device_class: “battery”
unit_of_measurement: “%”
state_class: "measurement"
icon: "mdi:battery-charging-outline"
- name: "Sofar: Battery cycles”
unique_id: “Sofar_battery_cycles”
state_topic: "sofar/battery_cycles”
state_class: "measurement"
icon: "mdi:battery-clock-outline"
- name: “Sofar: Battery power”
unique_id: “sofar_battery_power”
state_topic: "sofar/battery_power"
device_class: “power”
unit_of_measurement: "kW"
state_class: “measurement”
icon: "mdi:battery-charging"
- name: "Sofar: Consumption (today)"
unique_id: “Sofar_consumption_today"
state_topic: "sofar/today_consumption"
device_class: "energy"
unit_of_measurement: "kWh"
state_class: "measurement"
icon: "mdi:home-lightning-bolt-outline"