I use actual HAOS install, on my ubuntu supervised install i use command upscmd -u user -p password name_ups beeper.toggle
But in HAOS it’s don’t work, Is there a way to do this in HAOS?
My NUT ad-don config:
The NUT Integration provides NUT client-like capabilities. There is a way, and its a bit of a strange way that HA went about it, but you have to use “Device Triggers” to actually execute a upscmd command like this.
What I do is create an automation in the UI that I manually run whenever needed:
alias: Run NUT Command
description: ""
triggers: []
conditions: []
actions:
- type: beeper_disable
device_id: idmadeupbyha
domain: nut
mode: single
You can copy-n-paste this YAML into your automation (in YAML mode), but then go back to visual editor mode, and click on the “Then Do” entry and select your actual UPS device in the device pull-down, and in the Action, you should get a list of commands that NUT will run.
I then simply manually run the automation to execute this.
Thanks for your reply!
I tried this method, but I can’t access the visual editor for the “Then Do” field. I get an error that says:
The visual editor is not supported for this configuration.
The editor is not available for an unknown device.
You can still edit the configuration using YAML.
I’ve tried using different values, including my server name, upsha_local.
Umm…start with a new automation, and “add action” and in the “Then Do” search for “Device” and select it. Then select your NUT device. After selecting your NUT UPS device, you should be able to pick a command from the list.