-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathexample_shell_command_usage_yaml.txt
More file actions
17 lines (15 loc) · 1.36 KB
/
example_shell_command_usage_yaml.txt
File metadata and controls
17 lines (15 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## Examples of Shell Command usage
# input_select with desired arguments should be prior defined in Home Assistant
# Shell Command provides variable input parameters to ChangeMateStatusModBus.py via input_select
# Shell Command provides fix paramets to ChangeMateStatusModBus.py (i.e StartBulk)
# Shell Command provides fix parameters to ReadMateStatusModBus.py -- useful for automation, run-once to force quick updates
# YAML
shell_command:
outback_change_grid_input_mode: "python3 /media/web/mate3_homeassistant/ChangeMateStatusModBus.py {{states.input_select.solar_grid_input_mode.state}}"
outback_change_charger_mode: "python3 /media/web/mate3_homeassistant/ChangeMateStatusModBus.py {{states.input_select.solar_charger_mode.state}}"
outback_start_bulk: "python3 /media/web/mate3_homeassistant/ChangeMateStatusModBus.py StartBulk"
outback_stop_bulk: "python3 /media/web/mate3_homeassistant/ChangeMateStatusModBus.py StopBulk"
outback_start_eq: "python3 /media/web/mate3_homeassistant/ChangeMateStatusModBus.py StartEQ"
outback_stop_eq: "python3 /media/web/mate3_homeassistant/ChangeMateStatusModBus.py StopEQ"
outback_change_mate_status: "python3 /media/web/mate3_homeassistant/ChangeMateStatusModBus.py"
outback_read_mate_status: "python3 /media/web/mate3_homeassistant/ReadMateStatusModBus.py daemon_active=false SQL_active=false MQTT_discovery_active=false"