<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi, sthank you. Sorry to answer only now.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Le 26/02/2021 à 23:29, Roger Price a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.2102262214170.6375@maria.rogerprice.org">On
      Thu, 25 Feb 2021, Jey via Nut-upsuser wrote:
      <br>
      <br>
      <blockquote type="cite">Hi :)
        <br>
      </blockquote>
      <br>
      Hi!
      <br>
      <br>
      <blockquote type="cite">I use NUT on Home Assistant, the version
        of the add-on is 0.6.2. Home Assistant is installed on a
        Raspberry Pi 4b.
        <br>
        A have a APC 1400, the UPS is connected with USB to the Rasp.
        <br>
        <br>
        I'm working to built an automation, to receive notifications
        when there is a power cut.
        <br>
        So I used OB DISCHRG (On battery discharge) to detect the power
        cut and trigger the automation.
        <br>
      </blockquote>
      <br>
      It is sufficient to use OB.  Not all UPS's show DISCHARG
      <br>
    </blockquote>
    <br>
    Ok.<br>
    <br>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.2102262214170.6375@maria.rogerprice.org">
      <br>
      <blockquote type="cite">Then I use OB CHRG to detect that the
        power is coming back and the battery is charging.
        <br>
      </blockquote>
      <br>
      It is better to use OL which says that you are receiving utility
      power, and therefore charging.
      <br>
      <br>
      <blockquote type="cite">Then OL the normal operation, with a full
        battery.
        <br>
      </blockquote>
      <br>
      OL should appear before battery.charge = 100%
      <br>
    </blockquote>
    <br>
    Nop, "OL" is coming when the battery is fully charged.<br>
    <br>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.2102262214170.6375@maria.rogerprice.org">
      <br>
      <blockquote type="cite">In the same time I send notification to
        follow the % of battery (97 > 93 > 90 etc). It's working.
        <br>
      </blockquote>
      <br>
      I assume you do this by monitoring variable battery.charge.
      <br>
    </blockquote>
    <br>
    Yes.<br>
    <br>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.2102262214170.6375@maria.rogerprice.org">
      <br>
      <blockquote type="cite">During my real test, the load was to light
        (3%, only a rasp pi), so it was slow to empty the battery. So I
        connected and started my main PC, than the load was 18%.
        <br>
      </blockquote>
      <br>
      If you want faster testing, you could also connect a 60W light
      bulb.
      <br>
      <br>
      <blockquote type="cite">Then the battery fell to 48%, and instead
        to have OB DISCHRG, I had FSD OB DISCHRG (Fast Shutdown On
        Battery Discharge).
        <br>
      </blockquote>
      <br>
      What is the value of battery.charge.low in your setup?  It is
      surprising to see FSD appear with no LB status.  Do you have
      upsmon running?  What is your system shutdown criterion in
      upsmon?  Do you rely on the built-in emergency shutdown on OB LB?
      <br>
    </blockquote>
    <br>
    I use Network UPS Tools, on Home Assistant (HASS.IO) on a Raspberry
    Pi 4.<br>
    I don't see any "battery.charge.low"<br>
    I don't know for UPSMON.<br>
    <br>
    <br>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.2102262214170.6375@maria.rogerprice.org">
      <br>
      <blockquote type="cite">Then I re-plugged the UPS to charge it.
        <br>
        And I was surprised to see FSD OL CHRG until the 100%.
        <br>
      </blockquote>
      <br>
      FSD is held fixed in upsd.  upsd does not turn it off, since it is
      assumed that there will be a system shutdown followed by a system
      restart which clears ups.status.
      <br>
      <br>
      <blockquote type="cite">Then, I had FSD OL, even everything was
        back and normal, and the battery fully charged.
        <br>
        <br>
        I saw today, few days later, than now it's only OL (Online). I
        imagine that FSD disappeared after a reboot or when I
        disconnected some USB cables.
        <br>
        <br>
        <br>
        So, I have some questions. I didn't find this kind of
        information on internet.
        <br>
        <br>
         - please, could you explain why FSD is coming ? Is it depending
        of the load, or the % of battery?
        <br>
         - Why FSD didn't disappear when the current was back and the
        UPS was charging the battery or full?
        <br>
        - Is there a list of all "modes" that NUT can show? (because my
        automation didn't work any more when FSD appeared, so I would
        like to know all modes).
        <br>
      </blockquote>
      <br>
      What do you mean by "mode" ?  The possible status symbols, OL, OB,
      LB, ...?
      <br>
    </blockquote>
    Yes, status.<br>
    <br>
    <br>
    Thanks for your help :)<br>
    <br>
    <br>
    <br>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.2102262214170.6375@maria.rogerprice.org">Roger<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Nut-upsuser mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nut-upsuser@alioth-lists.debian.net">Nut-upsuser@alioth-lists.debian.net</a>
<a class="moz-txt-link-freetext" href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>