Ihc with two controllers (#7302)

* Update for secondary controller support

* Update binary_sensor.ihc.markdown

* Update binary_sensor.ihc.markdown

* Update light.ihc.markdown

* Update sensor.ihc.markdown

* Update switch.ihc.markdown

* Update ihc.markdown

* Update switch.ihc.markdown

* Update ihc.markdown

* Update ihc.markdown

* Minor changes

* Minor changes

* Minor changes

* Fix configuration sample

* Remove periods

* Update ihc.markdown

* Update binary_sensor.ihc.markdown

* Update light.ihc.markdown

* Update binary_sensor.ihc.markdown

* Update sensor.ihc.markdown

* Update switch.ihc.markdown

* Update sensor.ihc.markdown

* Update sensor.ihc.markdown

* Update light.ihc.markdown

* Update light.ihc.markdown

* Update binary_sensor.ihc.markdown

* Update ihc.markdown

* Update binary_sensor.ihc.markdown

* Update switch.ihc.markdown

* Update binary_sensor.ihc.markdown

* Update light.ihc.markdown

* Update sensor.ihc.markdown

* Update switch.ihc.markdown

* ✏️ Tweak

* ✏️ Tweak

* ✏️ Tweak

* ✏️ Tweak
This commit is contained in:
mopolus 2018-12-05 09:03:06 +01:00 committed by Franck Nijhof
parent 4935d9d704
commit dae35007b3
5 changed files with 85 additions and 38 deletions

View File

@ -29,19 +29,22 @@ be found in the IHC project and setup as binary sensors:
## {% linkable_title Manual configuration %} ## {% linkable_title Manual configuration %}
To manually configure IHC Binary Sensors To manually configure IHC Binary Sensors insert the "binary_sensors" section in your IHC configuration:
insert this section in your configuration:
```yaml ```yaml
binary_sensor: # Example configuration.yaml entry
- platform: ihc ihc:
- url: 'http://192.168.1.3'
username: YOUR_USERNAME
password: YOUR_PASSWORD
info: true
binary_sensors: binary_sensors:
- id: 12345 - id: 12345
name: mysensor name: switch_front_door
type: opening inverting: false
inverting: True note: Magnet contact
- id: 12346 position: Switch in door
... type: door
``` ```
{% configuration %} {% configuration %}
@ -60,7 +63,7 @@ binary_sensors:
type: boolean type: boolean
default: false default: false
name: name:
description: The name of the component description: The name of the sensor.
required: false required: false
type: string type: string
type: type:
@ -70,6 +73,14 @@ binary_sensors:
for available types. for available types.
required: false required: false
type: string type: string
note:
description: Descriptive note
required: false
type: string
position:
description: Where is it placed
required: false
type: string
{% endconfiguration %} {% endconfiguration %}
The resource id should be an id of a boolean IHC resource. For more information The resource id should be an id of a boolean IHC resource. For more information

View File

@ -21,12 +21,16 @@ An `ihc` section must be present in the `configuration.yaml` file and contain
the following options: the following options:
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry for two IHC controllers
ihc: ihc:
url: http://192.168.1.3 - url: 'http://192.168.1.3'
username: YOUR_USERNAME username: YOUR_USERNAME
password: YOUR_PASSWORD password: YOUR_PASSWORD
info: true info: true
- url: 'http://192.168.1.4'
username: YOUR_USERNAME2
password: YOUR_PASSWORD2
info: true
``` ```
{% configuration %} {% configuration %}

View File

@ -27,18 +27,19 @@ project and setup as light devices:
- Wireless mobile dimmer - Wireless mobile dimmer
- Dataline lamp outlet - Dataline lamp outlet
To manually configure IHC lights insert this section in your configuration: To manually configure IHC lights insert the "lights" section in
your IHC configuration:
```yaml ```yaml
light: ihc:
- platform: ihc - url: 'http://192.168.1.3'
username: YOUR_USERNAME2
password: YOUR_PASSWORD2
info: true
lights: lights:
- id: 12345 - id: 12345
name: tablelight name: tablelight
dimmable: True - id: 23432
- id: 12346
name: anotherlight
...
``` ```
{% configuration %} {% configuration %}
@ -48,7 +49,7 @@ lights:
type: map type: map
keys: keys:
dimmable: dimmable:
description: Set to True if the IHC resource is a light level description: Set to True if the IHC resource is a light level.
required: false required: false
type: boolean type: boolean
default: false default: false
@ -60,6 +61,14 @@ lights:
description: The name of the component description: The name of the component
required: false required: false
type: string type: string
note:
description: Descriptive note.
required: false
type: string
position:
description: Where it is placed.
required: false
type: string
{% endconfiguration %} {% endconfiguration %}
In the example above 12345 is ihc resource id and "tablelight" is the name. In the example above 12345 is ihc resource id and "tablelight" is the name.

View File

@ -23,22 +23,28 @@ project and setup as sensors:
- Dataline Humidity - Will insert 1 humidity and 2 temperature sensors (calculated dewpoint) - Dataline Humidity - Will insert 1 humidity and 2 temperature sensors (calculated dewpoint)
- Dataline Lux - will insert 1 light and 1 temperature sensor - Dataline Lux - will insert 1 light and 1 temperature sensor
To manually configure IHC sensors insert this section: To manually configure IHC sensors insert the "sensors"
section in your IHC configuration:
```yaml ```yaml
sensor: ihc:
- platform: ihc - url: 'http://192.168.1.3'
username: YOUR_USERNAME2
password: YOUR_PASSWORD2
info: true
sensors: sensors:
- id: 12345 - id: 12345
name: 'mysensor' name: Temperatur_living_room
unit_of_measurement: '°C' unit_of_measurement: '°C'
- id: 12346 note: Floor and wall temp.
position: On wall between windows
- id: 23456
... ...
``` ```
{% configuration %} {% configuration %}
sensors: sensors:
description: List of sensors to setup manually description: List of sensors to setup manually.
required: false required: false
type: map type: map
keys: keys:
@ -47,13 +53,21 @@ sensors:
required: true required: true
type: integer type: integer
name: name:
description: The name of the component description: The name of the sensor.
required: false required: false
type: string type: string
unit_of_measurement: unit_of_measurement:
description: Defines the unit of measurement of the sensor, if any. description: Defines the unit of measurement of the sensor, if any.
required: false required: false
type: string type: string
note:
description: Descriptive note.
required: false
type: string
position:
description: Where it is placed.
required: false
type: string
{% endconfiguration %} {% endconfiguration %}
The resource id should be a IHC float resource. For more information about IHC The resource id should be a IHC float resource. For more information about IHC

View File

@ -24,17 +24,18 @@ project and setup as switch devices:
- Mobile wireless relay - Mobile wireless relay
- Dataline plug outlet - Dataline plug outlet
To manually configure IHC switches insert this section in your configuration: To manually configure IHC switches insert the "switches" section in your
IHC configuration:
```yaml ```yaml
switch: ihc:
- platform: ihc - url: 'http://192.168.1.3'
auto_setup: True username: YOUR_USERNAME
password: YOUR_PASSWORD
info: true
switches: switches:
- id: 12345 - id: 12345
name: myswitch - id: 12346
- id: 12346
....
``` ```
{% configuration %} {% configuration %}
@ -51,6 +52,14 @@ switches:
description: The name of the component description: The name of the component
required: false required: false
type: string type: string
note:
description: Descriptive note.
required: false
type: string
position:
description: Where it is placed.
required: false
type: string
{% endconfiguration %} {% endconfiguration %}
The resource id should be a boolean resource (On/Off). The resource id should be a boolean resource (On/Off).