Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Integracja z Home Assistant
#18
Thumbs Up 
(02-03-2023, 04:34 PM)hapi napisał(a): I have add "state_class: total_increasingg" for energy entities (device_class: energy) so that the entity can be used in the energy panel in the home assistant.

Hello, great, thank you, you will no longer need a custom for the energy panel. Smile  (Only the units still need to be modified in ymal and custom vid. code). But INPD1-4 i.e. the sensor in H.A (binary_sensor.inpd1) to work in Home Assistant still does not work for automation, it will be fixed in the next update. Thank you very much
Kod:
homeassistant:
  name: Home
  unit_system: metric
  customize:
    sensor.energy1: # Spotreba studená voda v m3 do Energi panelu Spotreba vody
      unit_of_measurement: m³
      device_class: water
      state_class: total_increasing
    sensor.energy2: # Spotreba teplá voda v m3 do Energi panelu Spotreba vody
      unit_of_measurement: m³
      device_class: water
      state_class: total_increasing
    sensor.energy3: # Spotreba Plynu - plynomer v m3
      unit_of_measurement: m³
      device_class: gas
      state_class: total_increasing
    sensor.power4: # Dovoz P4 činnej energie kWh tj. Spotreba Elektriky-FVE. Dat do Energi panelu do Spotreba zo siete
      unit_of_measurement: kWh
      device_class: energy
      state_class: total_increasing
    sensor.power5: # Export P5 aktívnej energie kWh
      unit_of_measurement: kWh
      device_class: energy
      state_class: total_increasing
    sensor.power6: # Celková P6 spotreba v kW Exp+Imp-Celková aktívna energia kWh
      unit_of_measurement: kWh
      device_class: energy
      state_class: total_increasing
Odpowiedz


Wiadomości w tym wątku

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości