avmctl − Control AVM Smart Home switches
avmctl [OPTION] {COMMAND} ...
avmctl helps you to control your AVM Smart Home switches like the AVM FRITZ!Powerline 546E. These switches can be listed, inspected and last but not least turned on and off. You could use this application from a simple Bash script.
The following
options are understood:
-h --help
Show the available operations / arguments |
-v --version
Show version information |
-c --config <file>
Set the path to a config file |
-H --host
Set a host for the operations (overwrites config host) |
-u --user
Set a username for session (overwrites config username) |
-p --password
Set a password for the session (overwrites config password) |
check-config
Try to start a test session and on success end it |
list
List all usable actors and print some meta information about them |
present [AIN]
Check if the configured actor is present/connected (EXIT_SUCCESS = present, EXIT_FAILURE = not present) |
state [AIN]
Retrieve the current state of the actor (EXIT_SUCCESS = on, EXIT_FAILURE = off) |
status [AIN]
Print information about presence and state of the actor |
toggle [AIN]
Toggle the state of the actor |
off [AIN]
Turn the actor off |
on [AIN]
Turn the actor on |
All configuration arguments (-H, -u, -p and any [AIN]) overwrites their counter parts from a configuration file. This is can be handy if you just want to operate on another actor with the same credentials or on another FRITZ!Box with the same username and password.
The avmctl can consume a avm-motion-trigger.conf (5) configuration file.
Hermann Mayer <jack@jity.de>