Skip to content

poulzz11/hassio-addons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

hassio-addons

Docker addons for HassIO

HassIO HassIO-Build

Addon folder

addon_name:
  README.md
  Dockerfile
  config.json
  run.sh

Use FROM %%BASE_IMAGE%% inside your docker file. We use alpine linux 3.5 for addons. It need also a this line:

ENV VERSION %%VERSION%%

Addon config

{
  "name": "xy",
  "version": "1.2",
  "slug": "folder",
  "description": "long descripton",
  "startup": "before|after|once",
  "boot": "auto|manual",
  "ports": {
    "123/tcp": 123
   },
  "map_config": "bool|false",
  "map_ssl": "bool|false",
  "map_hassio": "bool|false",
  "options": {},
  "schema": {
    "bla": "str|int|float|bool|email|url",
    "list1": [
      "str|int|float|bool|email|url"
    ],
    "list2": [
      { "ble": "str|int|float|bool|email|url" }
    ]
  },
  "image": "for custom addons",
}

If you want to set a value to requered and need to be set from user before it start the addon, set it to null.

Addon need to known

/data is a volume with a persistant store. /data/options.json have the user config inside. You can use jq inside shell script to parse this data. A other nice tool for write plugin is Supervisor.

About

➕ Docker add-ons for Hass.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 58.7%
  • Ruby 21.2%
  • Dockerfile 16.1%
  • Python 4.0%