forked from Koenkk/zigbee2mqtt.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
162 changed files
with
7,803 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
const imageBase = '../images/devices/'; | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
function getImageName(model) { | ||
const replaceByDash = [new RegExp('/', 'g'), new RegExp(':', 'g'), new RegExp(' ', 'g')]; | ||
let image = model; | ||
replaceByDash.forEach((r) => image = image.replace(r, '-')); | ||
return `${image}.jpg`; | ||
} | ||
|
||
module.exports = { | ||
normalizeModel: (model) => { | ||
const find = '[/| |:]'; | ||
const re = new RegExp(find, 'g'); | ||
return model.replace(re, '_'); | ||
}, | ||
getImage: (model) => { | ||
const replaceByDash = [new RegExp('/', 'g'), new RegExp(':', 'g'), new RegExp(' ', 'g')]; | ||
let image = model; | ||
replaceByDash.forEach((r) => image = image.replace(r, '-')); | ||
image = imageBase + `${image}.jpg`; | ||
return image; | ||
getImage: (definition, imagePathBase) => { | ||
let result = getImageName(definition.model); | ||
|
||
if (definition.whiteLabelOf && !fs.existsSync(path.join(imagePathBase, result))) { | ||
result = getImageName(definition.whiteLabelOf.model); | ||
} | ||
|
||
return imageBase + result; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
--- | ||
title: "Danfoss 014G2461 control via MQTT" | ||
description: "Integrate your Danfoss 014G2461 via Zigbee2MQTT with whatever smart home | ||
infrastructure you are using without the vendors bridge or gateway." | ||
--- | ||
|
||
*To contribute to this page, edit the following | ||
[file](https://github.com/Koenkk/zigbee2mqtt.io/blob/master/docs/devices/014G2461.md)* | ||
|
||
# Danfoss 014G2461 | ||
|
||
| Model | 014G2461 | | ||
| Vendor | Danfoss | | ||
| Description | Ally thermostat | | ||
| Exposes | battery, lock (state), climate (occupied_heating_setpoint, local_temperature), linkquality | | ||
| Picture | ![Danfoss 014G2461](../images/devices/014G2461.jpg) | | ||
|
||
## Notes | ||
|
||
None | ||
|
||
|
||
## Exposes | ||
### Battery (numeric) | ||
Remaining battery in %. | ||
Value can be found in the published state on the `battery` property. | ||
It's not possible to read (`/get`) or write (`/set`) this value. | ||
The minimimal value is `0` and the maximum value is `100`. | ||
The unit of this value is `%`. | ||
|
||
### Lock | ||
The current state of this lock is in the published state under the `keypad_lockout` property (value is `1` or `0`). | ||
To control this lock publish a message to topic `zigbee2mqtt/FRIENDLY_NAME/set` with payload `{"keypad_lockout": "1"}` or `{"keypad_lockout": "0"}`. | ||
To read the current state of this lock publish a message to topic `zigbee2mqtt/FRIENDLY_NAME/get` with payload `{"keypad_lockout": ""}`. | ||
|
||
### Climate | ||
This climate device supports the following features: `occupied_heating_setpoint`, `local_temperature`. | ||
- `occupied_heating_setpoint`: Temperature setpoint. To control publish a message to topic `zigbee2mqtt/FRIENDLY_NAME/set` with payload `{"occupied_heating_setpoint": VALUE}` where `VALUE` is the °C between `6` and `28`. To read send a message to `zigbee2mqtt/FRIENDLY_NAME/get` with payload `{"occupied_heating_setpoint": ""}`. | ||
- `local_temperature`: Current temperature measured on the device (in °C). To read send a message to `zigbee2mqtt/FRIENDLY_NAME/get` with payload `{"local_temperature": ""}`. | ||
|
||
### Linkquality (numeric) | ||
Link quality (signal strength). | ||
Value can be found in the published state on the `linkquality` property. | ||
It's not possible to read (`/get`) or write (`/set`) this value. | ||
The minimimal value is `0` and the maximum value is `255`. | ||
The unit of this value is `lqi`. | ||
|
||
## Manual Home Assistant configuration | ||
Although Home Assistant integration through [MQTT discovery](../integration/home_assistant) is preferred, | ||
manual integration is possible with the following configuration: | ||
|
||
|
||
{% raw %} | ||
```yaml | ||
sensor: | ||
- platform: "mqtt" | ||
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>" | ||
availability_topic: "zigbee2mqtt/bridge/state" | ||
unit_of_measurement: "%" | ||
value_template: "{{ value_json.battery }}" | ||
device_class: "battery" | ||
|
||
lock: | ||
- platform: "mqtt" | ||
state_topic: true | ||
availability_topic: "zigbee2mqtt/bridge/state" | ||
command_topic: "zigbee2mqtt/<FRIENDLY_NAME>/set" | ||
value_template: "{{ value_json.keypad_lockout }}" | ||
payload_lock: "1" | ||
payload_unlock: "0" | ||
command_topic_postfix: "keypad_lockout" | ||
|
||
climate: | ||
- platform: "mqtt" | ||
availability_topic: "zigbee2mqtt/bridge/state" | ||
temperature_unit: "C" | ||
temp_step: 0.5 | ||
min_temp: "6" | ||
max_temp: "28" | ||
current_temperature_topic: true | ||
current_temperature_template: "{{ value_json.local_temperature }}" | ||
temperature_command_topic: "occupied_heating_setpoint" | ||
temperature_state_template: "{{ value_json.occupied_heating_setpoint }}" | ||
temperature_state_topic: true | ||
|
||
sensor: | ||
- platform: "mqtt" | ||
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>" | ||
availability_topic: "zigbee2mqtt/bridge/state" | ||
unit_of_measurement: "lqi" | ||
value_template: "{{ value_json.linkquality }}" | ||
icon: "mdi:signal" | ||
``` | ||
{% endraw %} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
title: "Legrand 067646 control via MQTT" | ||
description: "Integrate your Legrand 067646 via Zigbee2MQTT with whatever smart home | ||
infrastructure you are using without the vendors bridge or gateway." | ||
--- | ||
|
||
*To contribute to this page, edit the following | ||
[file](https://github.com/Koenkk/zigbee2mqtt.io/blob/master/docs/devices/067646.md)* | ||
|
||
# Legrand 067646 | ||
|
||
| Model | 067646 | | ||
| Vendor | Legrand | | ||
| Description | Wireless shutter switch | | ||
| Exposes | battery, action, linkquality | | ||
| Picture | ![Legrand 067646](../images/devices/067646.jpg) | | ||
|
||
## Notes | ||
|
||
None | ||
|
||
|
||
## Exposes | ||
### Battery (numeric) | ||
Remaining battery in %. | ||
Value can be found in the published state on the `battery` property. | ||
It's not possible to read (`/get`) or write (`/set`) this value. | ||
The minimimal value is `0` and the maximum value is `100`. | ||
The unit of this value is `%`. | ||
|
||
### Action (enum) | ||
Triggered action (e.g. a button click). | ||
Value can be found in the published state on the `action` property. | ||
It's not possible to read (`/get`) or write (`/set`) this value. | ||
The possible values are: `identify`, `open`, `close`, `stop`, `moving`, `stopped`. | ||
|
||
### Linkquality (numeric) | ||
Link quality (signal strength). | ||
Value can be found in the published state on the `linkquality` property. | ||
It's not possible to read (`/get`) or write (`/set`) this value. | ||
The minimimal value is `0` and the maximum value is `255`. | ||
The unit of this value is `lqi`. | ||
|
||
## Manual Home Assistant configuration | ||
Although Home Assistant integration through [MQTT discovery](../integration/home_assistant) is preferred, | ||
manual integration is possible with the following configuration: | ||
|
||
|
||
{% raw %} | ||
```yaml | ||
sensor: | ||
- platform: "mqtt" | ||
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>" | ||
availability_topic: "zigbee2mqtt/bridge/state" | ||
unit_of_measurement: "%" | ||
value_template: "{{ value_json.battery }}" | ||
device_class: "battery" | ||
|
||
sensor: | ||
- platform: "mqtt" | ||
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>" | ||
availability_topic: "zigbee2mqtt/bridge/state" | ||
value_template: "{{ value_json.action }}" | ||
icon: "mdi:gesture-double-tap" | ||
|
||
sensor: | ||
- platform: "mqtt" | ||
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>" | ||
availability_topic: "zigbee2mqtt/bridge/state" | ||
unit_of_measurement: "lqi" | ||
value_template: "{{ value_json.linkquality }}" | ||
icon: "mdi:signal" | ||
``` | ||
{% endraw %} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.