first commit
This commit is contained in:
8
homeassistant/zigbee2mqtt_external_converters/README.md
Normal file
8
homeassistant/zigbee2mqtt_external_converters/README.md
Normal file
@@ -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
|
||||
@@ -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;
|
||||
7
server/Adding_a_new_subdomain.md
Normal file
7
server/Adding_a_new_subdomain.md
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user