From 28956ad9e052837b206fa60c84956f902a330c21 Mon Sep 17 00:00:00 2001 From: Stefan Ostermann Date: Sun, 18 Aug 2024 21:13:03 +0100 Subject: [PATCH] zigbee2mqtt --- zb2mqttdata/configuration.yaml | 33 ++++++++++++++++++++ zb2mqttdata/dresden.js | 13 ++++++++ zb2mqttdata/state.json | 56 ++++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 zb2mqttdata/configuration.yaml create mode 100644 zb2mqttdata/dresden.js create mode 100644 zb2mqttdata/state.json diff --git a/zb2mqttdata/configuration.yaml b/zb2mqttdata/configuration.yaml new file mode 100644 index 0000000..821db84 --- /dev/null +++ b/zb2mqttdata/configuration.yaml @@ -0,0 +1,33 @@ +permit_join: true +mqtt: + server: mqtt://mqtt:1883 + serial: + port: /dev/ttyACM0 +frontend: true +advanced: + homeassistant_legacy_entity_attributes: false + legacy_api: false + legacy_availability_payload: false + log_level: debug +external_converters: + - dresden.js +device_options: + legacy: false +devices: + '0xf0d1b800001ffcf2': + friendly_name: Bogenlampe + '0xa4c138570b1956d9': + friendly_name: '0xa4c138570b1956d9' + '0xa4c1383ec7aa7d95': + friendly_name: '0xa4c1383ec7aa7d95' + '0xa4c1383db5531833': + friendly_name: '0xa4c1383db5531833' + '0x000d6f00109eb214': + friendly_name: Fernbedienung + '0x00212effff0cb8b6': + friendly_name: Lichtschlauch + color_sync: true + state_action: false +homeassistant: + legacy_entity_attributes: false + legacy_triggers: false diff --git a/zb2mqttdata/dresden.js b/zb2mqttdata/dresden.js new file mode 100644 index 0000000..3c3066a --- /dev/null +++ b/zb2mqttdata/dresden.js @@ -0,0 +1,13 @@ +const {deviceEndpoints, identify, light} = require('zigbee-herdsman-converters/lib/modernExtend'); + +const definition = { + zigbeeModel: ['FLS-PP3 White'], + model: 'FLS-PP3 White', + vendor: 'dresden elektronik', + description: 'Automatically generated definition', + extend: [deviceEndpoints({"endpoints":{"10":10,"11":11}}), identify(), light({"colorTemp":{"range":[153,500]},"color":{"modes":["xy","hs"],"enhancedHue":true}}), light()], + meta: {"multiEndpoint":true}, +}; + +module.exports = definition; + diff --git a/zb2mqttdata/state.json b/zb2mqttdata/state.json new file mode 100644 index 0000000..323328e --- /dev/null +++ b/zb2mqttdata/state.json @@ -0,0 +1,56 @@ +{ + "0xf0d1b800001ffcf2": { + "color_mode": "color_temp", + "update": { + "state": "idle", + "installed_version": 51999504, + "latest_version": 51999504 + }, + "brightness": 135, + "state": "ON", + "color": { + "x": 0.4273, + "y": 0.4005 + }, + "color_temp": 318, + "linkquality": 199 + }, + "0xa4c138570b1956d9": { + "temperature": 25.87, + "humidity": 53.49, + "battery": 76, + "linkquality": 223 + }, + "0xa4c1383ec7aa7d95": { + "temperature": 27.2, + "humidity": 53.85, + "battery": 73, + "linkquality": 215 + }, + "0xa4c1383db5531833": { + "temperature": 24.4, + "humidity": 59.7, + "battery": 24, + "linkquality": 223 + }, + "0x000d6f00109eb214": { + "linkquality": 151 + }, + "0x00212effff0cb8b6": { + "color_mode": "color_temp", + "linkquality": 255, + "state": "ON", + "color_temp": 250, + "color": { + "x": 0.3804, + "y": 0.3767, + "hue": 40, + "saturation": 49, + "h": 40, + "s": 49 + }, + "brightness": 185, + "brightness_10": 1, + "state_10": "OFF" + } +} \ No newline at end of file