Forum Tiny Control Solution
Home Assistatn Inpa problems - Wersja do druku

+- Forum Tiny Control Solution (https://forum.tinycontrol.pl)
+-- Dział: LanKontroler - sprzęt i wersje wsadów, problemy, zastosowanie (https://forum.tinycontrol.pl/forumdisplay.php?fid=3)
+--- Dział: LanKontroler V4 (https://forum.tinycontrol.pl/forumdisplay.php?fid=36)
+--- Wątek: Home Assistatn Inpa problems (/showthread.php?tid=3000)



Home Assistatn Inpa problems - syky95 - 08-21-2024

Hello, I have a problem with the home assistant because when I add a sensor that measures my temperature via INPA, there is only the option V or mV, but that is wrong because there are no other options, the same is the case with current sensors where the consumption is 3 amperes but it shows volts


RE: Home Assistatn Inpa problems - dusanstr - 08-22-2024

Hello, I had a similar problem and I solved it by creating a new sensor in HA in configuration.yaml.
Adjust the name of the sensor and the measured quantity according to your needs.

Kod:
  - sensor:
      - name: "Prúd spotreba DC"
        unit_of_measurement: "A"
        icon: mdi:current-dc
        state: >
          {% set Prud_spotr_DC = states('sensor.inpa1') | float %}
          {{ Prud_spotr_DC | round(2, default=0) }}