Skip to content

Commit

Permalink
Refactory specifying device type specific configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Nov 1, 2020
1 parent 6cfcff6 commit 462617b
Show file tree
Hide file tree
Showing 553 changed files with 168 additions and 1,028 deletions.
12 changes: 11 additions & 1 deletion docgen/device_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ ${getHomeAssistantConfig(device)}
}

function getNotes(device) {
let deviceTypeSpecificConfigurationHeader = false;
const note = notes
.filter((n) => {
if (n.hasOwnProperty('supports') && n.supports.filter((s) => device.supports.includes(s)).length === 0) {
Expand Down Expand Up @@ -93,7 +94,16 @@ function getNotes(device) {

return n.model === device.model || (Array.isArray(n.vendor) ? n.vendor.includes(device.vendor) : n.vendor === device.vendor);
})
.map((n) => n.note)
.map((n) => {
if (n.deviceTypeSpecificConfiguration && !deviceTypeSpecificConfigurationHeader) {
deviceTypeSpecificConfigurationHeader = true;
return `### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*
${n.note}`;
} else {
return n.note;
}
})
.join('\n');
return note === '' ? 'None' : note;
}
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/046677476816.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/046677551780.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/067771.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Legrand 067771 via Zigbee2MQTT with whatever smart

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
5 changes: 5 additions & 0 deletions docs/devices/067773.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ To disable the legacy integration add the following to your `configuration.yaml`
```
{% endraw %}
### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*
* `legacy`: Set to `true` to disable the legacy integration (highly recommended!)


### Model numbers
Model number depends on the country and the colour of the devices.
Expand Down
1 change: 0 additions & 1 deletion docs/devices/067776.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ description: "Integrate your Legrand 067776 via Zigbee2MQTT with whatever smart

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*

Expand Down
2 changes: 0 additions & 2 deletions docs/devices/07004D.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Immax 07004D via Zigbee2MQTT with whatever smart ho

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/07005B.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Immax 07005B via Zigbee2MQTT with whatever smart ho

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/07008L.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ description: "Integrate your Immax 07008L via Zigbee2MQTT with whatever smart ho
### How to reset device
Turn power on/off five times.


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/07047L.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Immax 07047L via Zigbee2MQTT with whatever smart ho

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `illuminance_lux_precision`: Controls the precision of `illuminance_lux` values, e.g. `0` or `1`; default `1`.
To control the precision based on the illuminance_lux value set it to e.g. `{1000: 0, 100: 1}`,
when illuminance_lux >= 1000 precision will be 0, when illuminance_lux >= 100 precision will be 1.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/07115L.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Immax 07115L via Zigbee2MQTT with whatever smart ho

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/100.075.74.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Paul Neuhaus 100.075.74 via Zigbee2MQTT with whatev

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/100.110.51.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Paul Neuhaus 100.110.51 via Zigbee2MQTT with whatev

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/10011725.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your HORNBACH 10011725 via Zigbee2MQTT with whatever sma

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
1 change: 0 additions & 1 deletion docs/devices/11830304.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ description: "Integrate your Lonsonho 11830304 via Zigbee2MQTT with whatever sma

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*

Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1402755.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Namron 1402755 via Zigbee2MQTT with whatever smart

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/151570.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your TCI 151570 via Zigbee2MQTT with whatever smart home

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1741830P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1742930P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1743030P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1743130P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1743230P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/17435_30_P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/17436_30_P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1743830P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1744130P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1745630P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1746130P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1746330P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/1746430P7.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ Rules:
- `hue_power_on_color_temperature` and `hue_power_on_color` cannot be provided together, only one can be set
- When setting `hue_power_on_behavior` = `on`, any not provided values will be reset to their factory defaults


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/22670.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your GE 22670 via Zigbee2MQTT with whatever smart home

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `transition`: Controls the transition time (in seconds) of on/off, brightness,
color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).
Note that this value is overridden if a `transition` value is present in the MQTT command payload.
Expand Down
2 changes: 0 additions & 2 deletions docs/devices/2AJZ4KPFT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ description: "Integrate your Konke 2AJZ4KPFT via Zigbee2MQTT with whatever smart

## Notes


### Device type specific configuration
*[How to use device type specific configuration](../information/configuration.md)*


* `temperature_precision`: Controls the precision of `temperature` values,
e.g. `0`, `1` or `2`; default `2`.
To control the precision based on the temperature value set it to e.g. `{30: 0, 10: 1}`,
Expand Down
Loading

0 comments on commit 462617b

Please sign in to comment.