Created
July 20, 2024 15:04
-
-
Save e3e6/4a26874951b46411b26ef6805d793b29 to your computer and use it in GitHub Desktop.
How to control APC UPS beeper from Home Assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hassio Core 2024.7.2 | |
DSM 7.2 | |
APC UPS connected to Synology NAS via USB. | |
--- | |
1. Enable UPS service in Synology | |
https://kb.synology.com/en-uk/DSM/help/DSM/AdminCenter/system_hardware_ups?version=7 | |
2. Add UPS to HomeAssistant using NUT integration to get https://www.home-assistant.io/integrations/nut | |
- [host] Synology local IP address | |
- [port] 3493 | |
- [username] monuser | |
- [password] secret | |
At this point you can inspect UPS status, load, etc. | |
3. Enable SSH access to Synology | |
https://kb.synology.com/en-uk/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet | |
4. Login via SSH | |
> ssh [username]@[ip] | |
5. Find user configuration file (creds to https://github.com/renatopanda/synology-nas-beeper) | |
> find /usr/syno/etc/ups/ /etc/ups/ -name "upsd.users" | |
6. Edit the file | |
> sudo vi /usr/syno/etc/ups/upsd.users | |
or | |
> sudo vi /etc/ups/upsd.users | |
7. At the end of the file find user config | |
[monuser] | |
password = secret | |
upsmon master | |
8. Add few extra lines so it become | |
[monuser] | |
password = secret | |
upsmon master | |
actions = SET | |
instcmds = beeper.enable beeper.disable ups.beeper.status | |
This will allow the monuser to execute commands beeper.enable beeper.disable ups.beeper.status | |
9. Restart Synology | |
10. Create automation in Home Asisstant | |
- Create blank automation from the UI | |
- Section: Then do -> Add Action -> Device | |
- Device name: Ups | |
- Action: Disable UPS beeper/buzzer | |
11. Run action and inspect Traces to check that all good | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment