Mam tak:
- w configuraton.yaml
mqtt: !include mqtt_include.yaml
- w mqtt_include.yaml z podziałem na rodzaje urządzeń
sensor: !include /config/mqtt_sensors.yaml
switch: !include /config/mqtt_switch.yaml
climate: !include /config/mqtt_climate.yaml
fan: !include /config/mqtt_fan.yaml
- dla np. sensorów
####################sofar-solar###############
- name: "Pordukcja dzienna"
state_topic: "Sofar/DayEnergy"
unit_of_measurement: 'kWh'
device_class: energy
icon: mdi:counter
- name: "Pordukcja total"
state_topic: "Sofar/TotalEnergy"
unit_of_measurement: 'kWh'
device_class: energy
icon: mdi:counter
- name: "Moc inw."
state_topic: "Sofar/Power_P"
unit_of_measurement: 'Watt'
device_class: power
# icon: mdi:counter
- name: "Napięcie PV1"
state_topic: "Sofar/V1"
unit_of_measurement: 'V'
device_class: voltage
# icon: mdi:counter
... i reszta sensorów