commit 9ba98e927c019de777859806a3721264c3a810ae Author: Yousef Date: Thu Jan 1 15:02:50 2026 +0100 first commit diff --git a/homeassistant/zigbee2mqtt_external_converters/README.md b/homeassistant/zigbee2mqtt_external_converters/README.md new file mode 100644 index 0000000..3a2dcab --- /dev/null +++ b/homeassistant/zigbee2mqtt_external_converters/README.md @@ -0,0 +1,8 @@ + + +- get the dp_id from tuya development platfrom +- adjust the .js file +- add the js file to external converters folder under /share/zigbee2mqtt/external_converters can be reached from ssh in HA +- add this block to configurations of zigbee2mqtt in yml format: + external_converters: + - tuya_door_sensor_alarm.js diff --git a/homeassistant/zigbee2mqtt_external_converters/tuya_door_sensor_alarm.js b/homeassistant/zigbee2mqtt_external_converters/tuya_door_sensor_alarm.js new file mode 100644 index 0000000..1c45df2 --- /dev/null +++ b/homeassistant/zigbee2mqtt_external_converters/tuya_door_sensor_alarm.js @@ -0,0 +1,44 @@ +const exposes = require('zigbee-herdsman-converters/lib/exposes'); +const tuya = require('zigbee-herdsman-converters/lib/tuya'); +const e = exposes.presets; +const ea = exposes.access; + +const definition = { + fingerprint: [{ modelID: 'TS0601', manufacturerName: '_TZE284_u8ouaqsz' }], + model: 'tuya_door_sensor_alarm', + vendor: 'Tuya', + description: 'Tuya door sensor / alarm', + extend: [tuya.modernExtend.tuyaBase({dp: true})], + exposes: [ + e.enum("doorcontact_state", ea.STATE, ["open", "closed"]).withDescription("Contact state"), + e.numeric('battery_percentage', ea.STATE) + .withUnit('%') + .withValueMin(0) + .withValueMax(100) + .withDescription('Battery percentage'), + e.binary('armed_state', ea.STATE_SET, true, false).withDescription('Alarm armed state'), + e.binary('led', ea.STATE_SET, true, false).withDescription('LED state'), + e.numeric('volume', ea.STATE_SET) + .withValueMin(0).withValueMax(100) + .withDescription('Alarm volume level'), + exposes.numeric('alarm_duration', ea.STATE_SET) + .withUnit('s').withValueMin(0).withValueMax(180) + .withDescription('Alarm duration'), + ], + meta: { + tuyaDatapoints: [ + [1, 'doorcontact_state', tuya.valueConverterBasic.lookup({open: tuya.enum(true), closed: tuya.enum(false)})], + [2, 'battery_percentage', tuya.valueConverter.raw], + [101, 'armed_state', tuya.valueConverter.raw], + [102, 'led', tuya.valueConverter.raw], + [103, 'volume', tuya.valueConverter.raw], + [104, 'alarm_duration', tuya.valueConverter.raw], + ], + }, + onEvent: (type, data, device) => { + if (type === 'deviceAnnounce') { + return; + } + }, +}; +module.exports = definition; diff --git a/server/Adding_a_new_subdomain.md b/server/Adding_a_new_subdomain.md new file mode 100644 index 0000000..3c29c52 --- /dev/null +++ b/server/Adding_a_new_subdomain.md @@ -0,0 +1,7 @@ +add subdomain to +https://dash.cloudflare.com/bc900a7c2e5da42e2312a925561f39a6/homeyassistant.de/dns/records +with cname and Target (can differ on a new setup) +ddd39399-dbff-49b2-8bf9-ffe7336dae83.cfargotunnel.com + +add network proxy to the new service in docker compose file +add new part to caddyfile