Files
tellstick-addon/tellstick/config.json
endor-force d5263e9b6e Fix bash variable input (#207)
* Fix bash variable input

This will cause error in validation.
i have tried with 
if ! msg="$(tdtool --"$input")"; then
if ! msg="$(tdtool --"${input}")"; then
if ! msg="$(tdtool --${input})"; then
without success.
The only one i got working in real life is the one in this PR.

* Trying variable with curlies

Changed frm only output errors to output all output from tdtool. 
Enables listing of devices and sensors with output to add-on log.

* Update config.json

* fix not used exec

* fix lint

* update output
2017-12-06 11:35:30 +01:00

47 lines
1.2 KiB
JSON

{
"name": "TellStick",
"version": "0.3",
"slug": "tellstick",
"description": "TellStick and TellStick Duo service.",
"url": "https://home-assistant.io/addons/tellstick/",
"startup": "services",
"stdin": "true",
"boot": "auto",
"devices": ["/dev/bus/usb:/dev/bus/usb:rwm"],
"options": {
"devices": [
{
"id": 1,
"name": "Example device",
"protocol": "everflourish",
"model": "selflearning-switch",
"house": "A",
"unit": "1"
},
{
"id": 2,
"name": "Example device two",
"protocol": "everflourish",
"model": "selflearning-switch",
"house": "A",
"unit": "2"
}
]
},
"schema": {
"devices": [
{
"id": "int(1,)",
"name": "str",
"protocol": "match(arctech|brateck|everflourish|fuhaote|hasta|ikea|kangtai|risingsun|sartano|silvanchip|upm|waveman|x10|yidong)",
"model": "match(codeswitch|bell|selflearning-switch|selflearning-dimmer|selflearning|ecosavers|kp100)?",
"house": "str?",
"code": "str?",
"unit": "str?",
"fade": "str?"
}
]
},
"image": "homeassistant/{arch}-addon-tellstick"
}