From 90135613d2069550f3be37437e5e1592e80bdd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20=C3=98stergaard=20Nielsen?= Date: Thu, 11 Feb 2021 17:00:15 +0100 Subject: [PATCH] Services documentation added the IHC integration (#16378) --- source/_integrations/ihc.markdown | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/source/_integrations/ihc.markdown b/source/_integrations/ihc.markdown index d65766f0ca5..c4a2f38a776 100644 --- a/source/_integrations/ihc.markdown +++ b/source/_integrations/ihc.markdown @@ -328,3 +328,47 @@ switch: {% endconfiguration %} The resource id should be a boolean resource (On/Off). For more information about IHC resource ids see [Manual Setup](#manual-setup). + +## Services + +Below are the service functions for the IHC integrations. + +### Service `ihc.pulse` + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | --------------------------------------------------------------------------------------------------- | +| `controller_id` | yes | If you have multiple controller, this is the index of you controller starting with 0 (0 is default) | +| `ihc_id` | no | The boolean IHC resource ID. | + +This service will send a pulse to the specified IHC resource. +On and Off with a 400ms delay. + +### Service `ihc.set_runtime_value_bool` + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | --------------------------------------------------------------------------------------------------- | +| `controller_id` | yes | If you have multiple controller, this is the index of you controller starting with 0 (0 is default) | +| `ihc_id` | no | The boolean IHC resource ID. | +| `value` | no | The boolean value to set. (true or false) | + +This service will set the specified boolean resource on the IHC controller. + +### Service `ihc.set_runtime_value_float` + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | --------------------------------------------------------------------------------------------------- | +| `controller_id` | yes | If you have multiple controller, this is the index of you controller starting with 0 (0 is default) | +| `ihc_id` | no | The float IHC resource ID. | +| `value` | no | The float value to set. | + +This service will set the specified float resource on the IHC controller. + +### Service `ihc.set_runtime_value_int` + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | --------------------------------------------------------------------------------------------------- | +| `controller_id` | yes | If you have multiple controller, this is the index of you controller starting with 0 (0 is default) | +| `ihc_id` | no | The integer IHC resource ID. | +| `value` | no | The integer value to set. | + +This service will set the specified integer resource on the IHC controller.