Skip to content

Commit

Permalink
tellstick: Collection of small improvements (home-assistant#916)
Browse files Browse the repository at this point in the history
* tellstick: Move data run to data folder

* tellstick: Prettier JSON & YAML files

* tellstick: Documentation tweaks
  • Loading branch information
frenck authored and pvizeli committed Dec 19, 2019
1 parent 4f22201 commit 6a3c596
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 29 deletions.
2 changes: 1 addition & 1 deletion tellstick/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ RUN apk add --no-cache \
&& rm -rf /usr/src/telldus

# Copy data for add-on
COPY run.sh /
COPY data/run.sh /

CMD [ "/run.sh" ]
20 changes: 10 additions & 10 deletions tellstick/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For more details, please check the TellStick [protocol list][protocol-list].

## Installation

The installation of this add-on is straightforward and easy to do.
Follow these steps to get the add-on installed on your system:

1. Navigate in your Home Assistant frontend to **Hass.io** -> **Add-on Store**.
2. Find the "TellStick" add-on and click it.
Expand Down Expand Up @@ -96,42 +96,42 @@ Add one or more devices entries to the add-on configuration for each
device you'd like to add. Please note the comma separator between each
device (see example above).

#### Option: `devices` -> `id` (required)
#### Option: `devices.id` (required)

A unique number / identifier that must be unique for each device.

#### Option: `devices` -> `name` (required)
#### Option: `devices.name` (required)

A name for your device, making it easy to identify it.
A name for your device, making it easier to identify it.

#### Option: `devices` -> `protocol` (required)
#### Option: `devices.protocol` (required)

This is the protocol the device uses. For a full list of supported protocols
(and thus valid values for this configuration option), check the
TellStick [protocol list][protocol-list].

#### Option: `devices` -> `model` (optional)
#### Option: `devices.model` (optional)

The model parameter is only used by some protocols where there exists different
types of devices using the same protocol. This can be dimmers versus non-dimmers,
codeswitch versus self-learning, etc.

#### Option: `devices` -> `house` (optional)
#### Option: `devices.house` (optional)

Depending on protocol the values here can vary a lot to identify
or group per house or type.

#### Option: `devices` -> `unit` (optional)
#### Option: `devices.unit` (optional)

Unit identifier, in most cases a value between 1 to 16 and often used in
combination with the house.

#### Option: `devices` -> `fade` (optional)
#### Option: `devices.fade` (optional)

Fade is either `true` or `false` and tells a dimmer if it should fade smooth
or instant between values (only for IKEA protocol as it seems).

#### Option: `devices` -> `code` (optional)
#### Option: `devices.code` (optional)

A number series based on ones and zeroes often used for dip-switch based devices.

Expand Down
15 changes: 7 additions & 8 deletions tellstick/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@
trigger:
branches:
include:
- master
- master
paths:
include:
- tellstick/*
- tellstick/*
pr: none

variables:
- name: versionBuilder
value: '2.0'
value: "2.0"
- group: docker


jobs:
- template: /.azure/azp-template-addon.yml
parameters:
addon: 'tellstick'
arch: '--all'
- template: /.azure/azp-template-addon.yml
parameters:
addon: "tellstick"
arch: "--all"
12 changes: 2 additions & 10 deletions tellstick/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,11 @@
"slug": "tellstick",
"description": "TellStick and TellStick Duo service",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/tellstick",
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "system",
"stdin": true,
"boot": "auto",
"devices": [
"/dev/bus/usb:/dev/bus/usb:rwm"
],
"devices": ["/dev/bus/usb:/dev/bus/usb:rwm"],
"options": {
"devices": [
{
Expand Down
File renamed without changes.

0 comments on commit 6a3c596

Please sign in to comment.