HassIO Server
Host Controll
Communicate over unix socket with a host daemon.
- commands
# info
-> {'os', 'version', 'level', 'hostname'}
# reboot
# shutdown
# host-update [v]
# supervisor-update [v]
# network info
# network hostname xy
# network wlan ssd xy
# network wlan password xy
# network int ip xy
# network int netmask xy
# network int route xy
level:
- 1: power functions
- 2: supervisor update
- 4: host update
- 8: network functions
Answer:
{}|OK|ERROR|WRONG
- {}: json
- OK: call was successfully
- ERROR: error on call
- WRONG: not supported
HassIO REST API
Interface for HomeAssistant to controll things from supervisor.
On error:
{
"result": "error",
"message": ""
}
On success
{
"result": "ok",
"data": { }
}
HassIO
/supervisor/info
{
"version": INSTALL_VERSION,
"current": CURRENT_VERSION
}
-
/supervisor/updatePayload: {"version": "0.XX"} If version is None it read last version from server. -
/supervisor/optionPayload: {"beta": true|false}
Host
-
/host/shutdown -
/host/info
See HostControll info command.
-
/host/updateOn some device we support host upates. Like ResinOS. -
/host/network/info -
/host/network/updatePayload: {'hostname': '', 'mode': 'dhcp|fixed', 'ssid': '', 'ip': '', 'netmask': '', 'gateway': ''} -
/host/reboot
HomeAssistant
/homeassistant/info
{
"version": INSTALL_VERSION,
"current": CURRENT_VERSION
}
/homeassistant/updatePayload: {"version": "0.XX.Y"} If version is None it read last version from server.
REST API addons
-
/addons/info -
/addons/reload -
/addons/{addon}/startPayload: {'options': {}} -
/addons/{addon}/stop -
/addons/{addon}/installPayload: {"version": "x.x"} -
/addons/{addon}/uninstall -
/addons/{addon}/updatePayload: {"version": "x.x"} If version is None it read last version from server.