home.social

#nut — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nut, aggregated by home.social.

fetched live
  1. ИБП Энергия Smart.2 в Home Assistant: два одинаковых с виду ИБП и два разных протокола

    Всем привет! Примерно с лета 2025 у меня работает ИБП Энергия Smart.2 1000W с внешней LiFePO4-батареей, и всё это время он был подключен к Home Assistant - я видел напряжение сети, заряд батареи, нагрузку и всё остальное прямо в дашборде. Написать об этом статью мне тогда в голову не пришло, т.к. всё завелось довольно быстро и казалось, что ничего интересного тут нет. Исправляюсь. А поводом всё-таки сесть и написать стало то, что недавно я купил второй ИБП - Энергия Smart.2 600W под роутеры. Логика была простая: модель та же, конфиг уже готов, скопировал - работает. По факту же скопированный конфиг не заработал вообще, все сенсоры повисли в unavailable, и в процессе разбирательств выяснилось, что под одним и тем же названием «Smart.2» продаются два ИБП на совершенно разных платформах с разными протоколами. Об этом и расскажу: как подключить оба варианта, чем они отличаются и на какие грабли я наступил. Кстати, в марте на Хабре выходила статья про подключение Энергии Smart к NUT - там 1000-ваттник подключали через dummy-ups и самописный Python-скрипт. Способ рабочий, но у меня к тому моменту уже давно всё работало более простым путём - через нативную интеграцию Modbus в Home Assistant, без NUT и без скриптов. Его и покажу первым.

    habr.com/ru/articles/1060646/

    #ИБП #Home_Assistant #Modbus #NUT #Network_UPS_Tools #Умный_дом #Энергия_Smart2 #энергия #резервное_питание #raspberry_pi

  2. ИБП Энергия Smart.2 в Home Assistant: два одинаковых с виду ИБП и два разных протокола

    Всем привет! Примерно с лета 2025 у меня работает ИБП Энергия Smart.2 1000W с внешней LiFePO4-батареей, и всё это время он был подключен к Home Assistant - я видел напряжение сети, заряд батареи, нагрузку и всё остальное прямо в дашборде. Написать об этом статью мне тогда в голову не пришло, т.к. всё завелось довольно быстро и казалось, что ничего интересного тут нет. Исправляюсь. А поводом всё-таки сесть и написать стало то, что недавно я купил второй ИБП - Энергия Smart.2 600W под роутеры. Логика была простая: модель та же, конфиг уже готов, скопировал - работает. По факту же скопированный конфиг не заработал вообще, все сенсоры повисли в unavailable, и в процессе разбирательств выяснилось, что под одним и тем же названием «Smart.2» продаются два ИБП на совершенно разных платформах с разными протоколами. Об этом и расскажу: как подключить оба варианта, чем они отличаются и на какие грабли я наступил. Кстати, в марте на Хабре выходила статья про подключение Энергии Smart к NUT - там 1000-ваттник подключали через dummy-ups и самописный Python-скрипт. Способ рабочий, но у меня к тому моменту уже давно всё работало более простым путём - через нативную интеграцию Modbus в Home Assistant, без NUT и без скриптов. Его и покажу первым.

    habr.com/ru/articles/1060646/

    #ИБП #Home_Assistant #Modbus #NUT #Network_UPS_Tools #Умный_дом #Энергия_Smart2 #энергия #резервное_питание #raspberry_pi

  3. ИБП Энергия Smart.2 в Home Assistant: два одинаковых с виду ИБП и два разных протокола

    Всем привет! Примерно с лета 2025 у меня работает ИБП Энергия Smart.2 1000W с внешней LiFePO4-батареей, и всё это время он был подключен к Home Assistant - я видел напряжение сети, заряд батареи, нагрузку и всё остальное прямо в дашборде. Написать об этом статью мне тогда в голову не пришло, т.к. всё завелось довольно быстро и казалось, что ничего интересного тут нет. Исправляюсь. А поводом всё-таки сесть и написать стало то, что недавно я купил второй ИБП - Энергия Smart.2 600W под роутеры. Логика была простая: модель та же, конфиг уже готов, скопировал - работает. По факту же скопированный конфиг не заработал вообще, все сенсоры повисли в unavailable, и в процессе разбирательств выяснилось, что под одним и тем же названием «Smart.2» продаются два ИБП на совершенно разных платформах с разными протоколами. Об этом и расскажу: как подключить оба варианта, чем они отличаются и на какие грабли я наступил. Кстати, в марте на Хабре выходила статья про подключение Энергии Smart к NUT - там 1000-ваттник подключали через dummy-ups и самописный Python-скрипт. Способ рабочий, но у меня к тому моменту уже давно всё работало более простым путём - через нативную интеграцию Modbus в Home Assistant, без NUT и без скриптов. Его и покажу первым.

    habr.com/ru/articles/1060646/

    #ИБП #Home_Assistant #Modbus #NUT #Network_UPS_Tools #Умный_дом #Энергия_Smart2 #энергия #резервное_питание #raspberry_pi

  4. The #nut butter battle rages on; we've evolved in complexity & depth of flavor.
    I require a submissive to do some PBCBT! The task is simple:
    - heat some PB until it's drippy, then drizzle it on your #balls like candle wax. 30-45 seconds in the microwave should do, we want the temperature between 115°F & 149°F (46°C-65°C) aka wax play temps!
    - Once your balls are covered in butter...
    1/2
    #femdom #femaleDomination

  5. The #nut butter battle rages on; we've evolved in complexity & depth of flavor.
    I require a submissive to do some PBCBT! The task is simple:
    - heat some PB until it's drippy, then drizzle it on your #balls like candle wax. 30-45 seconds in the microwave should do, we want the temperature between 115°F & 149°F (46°C-65°C) aka wax play temps!
    - Once your balls are covered in butter...
    1/2
    #femdom #femaleDomination

  6. The #nut butter battle rages on; we've evolved in complexity & depth of flavor.
    I require a submissive to do some PBCBT! The task is simple:
    - heat some PB until it's drippy, then drizzle it on your #balls like candle wax. 30-45 seconds in the microwave should do, we want the temperature between 115°F & 149°F (46°C-65°C) aka wax play temps!
    - Once your balls are covered in butter...
    1/2
    #femdom #femaleDomination

  7. The #nut butter battle rages on; we've evolved in complexity & depth of flavor.
    I require a submissive to do some PBCBT! The task is simple:
    - heat some PB until it's drippy, then drizzle it on your #balls like candle wax. 30-45 seconds in the microwave should do, we want the temperature between 115°F & 149°F (46°C-65°C) aka wax play temps!
    - Once your balls are covered in butter...
    1/2
    #femdom #femaleDomination

  8. When does a UPS/gateway race condition happen? When you are lots of kms from the office, of course…
    So, I learned how to solve the race condition correctly using #nut and #OpenBSD with my #Eaton UPS (strongly recommended 'cos they don't cloudy cloud and speak USB or serial perfectly).
    The problem statement is simple:

    * UPS on battery
    * shutdown initiated
    * shutdown completes
    * power returns before UPS is a 0%
    * gateway machine remains happily off because there is no up/down on the power
    * you are far from the office and there is nobody to press the power button on the gateway for you.

    The solution I worked out with documentation and searches (thank you @kagihq ) is:

    upsmon detects FSD (low battery / POWERDOWNFLAG trigger)
    -> creates POWERDOWNFLAG file (e.g. /var/run/killpower)
    -> executes SHUTDOWNCMD ("shutdown -p now")
    -> OS shuts down processes, remounts FS read-only
    -> /etc/rc.shutdown runs
    -> checks: upsmon -K (exits 0 if POWERDOWNFLAG exists)
    -> calls: upsdrvctl shutdown
    -> starts a fresh driver instance: usbhid-ups -a eaton -k
    -> driver sends "shutdown.return" to UPS
    -> UPS timer starts (ups.delay.shutdown seconds)
    -> OS completes power-off via ACPI
    -> UPS cuts load output
    -> (mains may already be back)
    -> UPS restores load on mains presence
    -> BIOS "boot on power restore" fires

    Hope this helps someone else too :flan_hacker:​

  9. When does a UPS/gateway race condition happen? When you are lots of kms from the office, of course…
    So, I learned how to solve the race condition correctly using #nut and #OpenBSD with my #Eaton UPS (strongly recommended 'cos they don't cloudy cloud and speak USB or serial perfectly).
    The problem statement is simple:

    * UPS on battery
    * shutdown initiated
    * shutdown completes
    * power returns before UPS is a 0%
    * gateway machine remains happily off because there is no up/down on the power
    * you are far from the office and there is nobody to press the power button on the gateway for you.

    The solution I worked out with documentation and searches (thank you @kagihq ) is:

    upsmon detects FSD (low battery / POWERDOWNFLAG trigger)
    -> creates POWERDOWNFLAG file (e.g. /var/run/killpower)
    -> executes SHUTDOWNCMD ("shutdown -p now")
    -> OS shuts down processes, remounts FS read-only
    -> /etc/rc.shutdown runs
    -> checks: upsmon -K (exits 0 if POWERDOWNFLAG exists)
    -> calls: upsdrvctl shutdown
    -> starts a fresh driver instance: usbhid-ups -a eaton -k
    -> driver sends "shutdown.return" to UPS
    -> UPS timer starts (ups.delay.shutdown seconds)
    -> OS completes power-off via ACPI
    -> UPS cuts load output
    -> (mains may already be back)
    -> UPS restores load on mains presence
    -> BIOS "boot on power restore" fires

    Hope this helps someone else too :flan_hacker:​

  10. When does a UPS/gateway race condition happen? When you are lots of kms from the office, of course…
    So, I learned how to solve the race condition correctly using #nut and #OpenBSD with my #Eaton UPS (strongly recommended 'cos they don't cloudy cloud and speak USB or serial perfectly).
    The problem statement is simple:

    * UPS on battery
    * shutdown initiated
    * shutdown completes
    * power returns before UPS is a 0%
    * gateway machine remains happily off because there is no up/down on the power
    * you are far from the office and there is nobody to press the power button on the gateway for you.

    The solution I worked out with documentation and searches (thank you @kagihq ) is:

    upsmon detects FSD (low battery / POWERDOWNFLAG trigger)
    -> creates POWERDOWNFLAG file (e.g. /var/run/killpower)
    -> executes SHUTDOWNCMD ("shutdown -p now")
    -> OS shuts down processes, remounts FS read-only
    -> /etc/rc.shutdown runs
    -> checks: upsmon -K (exits 0 if POWERDOWNFLAG exists)
    -> calls: upsdrvctl shutdown
    -> starts a fresh driver instance: usbhid-ups -a eaton -k
    -> driver sends "shutdown.return" to UPS
    -> UPS timer starts (ups.delay.shutdown seconds)
    -> OS completes power-off via ACPI
    -> UPS cuts load output
    -> (mains may already be back)
    -> UPS restores load on mains presence
    -> BIOS "boot on power restore" fires

    Hope this helps someone else too :flan_hacker:​

  11. When does a UPS/gateway race condition happen? When you are lots of kms from the office, of course…
    So, I learned how to solve the race condition correctly using #nut and #OpenBSD with my #Eaton UPS (strongly recommended 'cos they don't cloudy cloud and speak USB or serial perfectly).
    The problem statement is simple:

    * UPS on battery
    * shutdown initiated
    * shutdown completes
    * power returns before UPS is a 0%
    * gateway machine remains happily off because there is no up/down on the power
    * you are far from the office and there is nobody to press the power button on the gateway for you.

    The solution I worked out with documentation and searches (thank you @kagihq ) is:

    upsmon detects FSD (low battery / POWERDOWNFLAG trigger)
    -> creates POWERDOWNFLAG file (e.g. /var/run/killpower)
    -> executes SHUTDOWNCMD ("shutdown -p now")
    -> OS shuts down processes, remounts FS read-only
    -> /etc/rc.shutdown runs
    -> checks: upsmon -K (exits 0 if POWERDOWNFLAG exists)
    -> calls: upsdrvctl shutdown
    -> starts a fresh driver instance: usbhid-ups -a eaton -k
    -> driver sends "shutdown.return" to UPS
    -> UPS timer starts (ups.delay.shutdown seconds)
    -> OS completes power-off via ACPI
    -> UPS cuts load output
    -> (mains may already be back)
    -> UPS restores load on mains presence
    -> BIOS "boot on power restore" fires

    Hope this helps someone else too :flan_hacker:​

  12. When does a UPS/gateway race condition happen? When you are lots of kms from the office, of course…
    So, I learned how to solve the race condition correctly using #nut and #OpenBSD with my #Eaton UPS (strongly recommended 'cos they don't cloudy cloud and speak USB or serial perfectly).
    The problem statement is simple:

    * UPS on battery
    * shutdown initiated
    * shutdown completes
    * power returns before UPS is a 0%
    * gateway machine remains happily off because there is no up/down on the power
    * you are far from the office and there is nobody to press the power button on the gateway for you.

    The solution I worked out with documentation and searches (thank you @kagihq ) is:

    upsmon detects FSD (low battery / POWERDOWNFLAG trigger)
    -> creates POWERDOWNFLAG file (e.g. /var/run/killpower)
    -> executes SHUTDOWNCMD ("shutdown -p now")
    -> OS shuts down processes, remounts FS read-only
    -> /etc/rc.shutdown runs
    -> checks: upsmon -K (exits 0 if POWERDOWNFLAG exists)
    -> calls: upsdrvctl shutdown
    -> starts a fresh driver instance: usbhid-ups -a eaton -k
    -> driver sends "shutdown.return" to UPS
    -> UPS timer starts (ups.delay.shutdown seconds)
    -> OS completes power-off via ACPI
    -> UPS cuts load output
    -> (mains may already be back)
    -> UPS restores load on mains presence
    -> BIOS "boot on power restore" fires

    Hope this helps someone else too :flan_hacker:​

  13. This little guy was #busy scurrying by with a peanut in his mouth. A little motion blur on his back end. 📷 Pentax K-70 🔘 Pentax 18-135mm APS-C #Photography #Animals #Squirrel #SquirrelSaturday #Peanut #Nut #Wildlife #Nature #NaturePhotography #EastCoastKin #ECK #BlueSkyArtShow #Pentax #P558

  14. This little guy was #busy scurrying by with a peanut in his mouth. A little motion blur on his back end. 📷 Pentax K-70 🔘 Pentax 18-135mm APS-C #Photography #Animals #Squirrel #SquirrelSaturday #Peanut #Nut #Wildlife #Nature #NaturePhotography #EastCoastKin #ECK #BlueSkyArtShow #Pentax #P558

  15. This little guy was #busy scurrying by with a peanut in his mouth. A little motion blur on his back end. 📷 Pentax K-70 🔘 Pentax 18-135mm APS-C #Photography #Animals #Squirrel #SquirrelSaturday #Peanut #Nut #Wildlife #Nature #NaturePhotography #EastCoastKin #ECK #BlueSkyArtShow #Pentax #P558

  16. This little guy was #busy scurrying by with a peanut in his mouth. A little motion blur on his back end. 📷 Pentax K-70 🔘 Pentax 18-135mm APS-C #Photography #Animals #Squirrel #SquirrelSaturday #Peanut #Nut #Wildlife #Nature #NaturePhotography #EastCoastKin #ECK #BlueSkyArtShow #Pentax #P558

  17. europesays.com/africa/264604/ Oyo School Abductions: Teachers, NLC, CDHR, civil society organizations lead protest #CDHR #Nigeria #NLC #NUT #Oyo

  18. Italian Soda Recipe

    Sweet, creamy, and absolutely refreshing, the Italian soda is a sleeper hit of summer drinks. If you’re the…
    #Italy #Europe #Europa #EU #dessert #Easter #gluten-free #nut-free #vegetarian
    europesays.com/italy/20566/

  19. Well THIS certainly looks handy! I can power down AND power up my server automatically with NUT on a Pi? 🤯

    #Linux #HomeLab #SelfHost #NUT #RaspberryPi

    linuxlinks.com/upswake-sends-w

  20. Well THIS certainly looks handy! I can power down AND power up my server automatically with NUT on a Pi? 🤯

    linuxlinks.com/upswake-sends-w

  21. Well THIS certainly looks handy! I can power down AND power up my server automatically with NUT on a Pi? 🤯

    #Linux #HomeLab #SelfHost #NUT #RaspberryPi

    linuxlinks.com/upswake-sends-w

  22. Well THIS certainly looks handy! I can power down AND power up my server automatically with NUT on a Pi? 🤯

    #Linux #HomeLab #SelfHost #NUT #RaspberryPi

    linuxlinks.com/upswake-sends-w

  23. Well THIS certainly looks handy! I can power down AND power up my server automatically with NUT on a Pi? 🤯

    #Linux #HomeLab #SelfHost #NUT #RaspberryPi

    linuxlinks.com/upswake-sends-w

  24. Your UPS is useless if Linux doesn't know it's dying. 🔋

    Full NUT setup guide for Linux — driver detection, graceful shutdowns, email alerts & proper shutdown testing. Great for homelabs & older UPS hardware.

    medium.com/@chribonn/48f962977

    #Linux #Homelab #SysAdmin #NUT #SelfHosted #TTMO

  25. Your UPS is useless if Linux doesn't know it's dying. 🔋

    Full NUT setup guide for Linux — driver detection, graceful shutdowns, email alerts & proper shutdown testing. Great for homelabs & older UPS hardware.

    medium.com/@chribonn/48f962977

    #Linux #Homelab #SysAdmin #NUT #SelfHosted #TTMO