@willieee802/zigbee-herdsman-converters 15.0.8-4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -0
- package/converters/fromZigbee.js +8439 -0
- package/converters/toZigbee.js +7162 -0
- package/devices/ITCommander.js +37 -0
- package/devices/RMC002.js +20 -0
- package/devices/acova.js +101 -0
- package/devices/acuity_brands_lighting.js +11 -0
- package/devices/adeo.js +256 -0
- package/devices/adurosmart.js +130 -0
- package/devices/aeotec.js +13 -0
- package/devices/airam.js +59 -0
- package/devices/ajax_online.js +49 -0
- package/devices/akuvox.js +28 -0
- package/devices/alchemy.js +18 -0
- package/devices/aldi.js +53 -0
- package/devices/alecto.js +98 -0
- package/devices/anchor.js +17 -0
- package/devices/atlantic.js +110 -0
- package/devices/atsmart.js +28 -0
- package/devices/aubess.js +21 -0
- package/devices/aurora_lighting.js +292 -0
- package/devices/automaton.js +44 -0
- package/devices/awox.js +184 -0
- package/devices/axis.js +22 -0
- package/devices/bankamp.js +11 -0
- package/devices/bega.js +22 -0
- package/devices/belkin.js +11 -0
- package/devices/bitron.js +334 -0
- package/devices/blaupunkt.js +27 -0
- package/devices/blitzwolf.js +47 -0
- package/devices/bosch.js +702 -0
- package/devices/brimate.js +15 -0
- package/devices/bseed.js +17 -0
- package/devices/bticino.js +118 -0
- package/devices/busch-jaeger.js +140 -0
- package/devices/byun.js +24 -0
- package/devices/calex.js +37 -0
- package/devices/candeo.js +49 -0
- package/devices/casaia.js +52 -0
- package/devices/centralite.js +359 -0
- package/devices/cleode.js +20 -0
- package/devices/cleverio.js +36 -0
- package/devices/climax.js +138 -0
- package/devices/commercial_electric.js +16 -0
- package/devices/connecte.js +46 -0
- package/devices/cree.js +11 -0
- package/devices/ctm.js +999 -0
- package/devices/current_products_corp.js +24 -0
- package/devices/custom_devices_diy.js +850 -0
- package/devices/cy-lighting.js +11 -0
- package/devices/danalock.js +26 -0
- package/devices/danfoss.js +340 -0
- package/devices/databyte.ch.js +55 -0
- package/devices/datek.js +246 -0
- package/devices/dawon_dns.js +338 -0
- package/devices/develco.js +868 -0
- package/devices/digi.js +14 -0
- package/devices/diyruz.js +305 -0
- package/devices/dlink.js +37 -0
- package/devices/dnake.js +11 -0
- package/devices/dresden_elektronik.js +47 -0
- package/devices/easyaccess.js +27 -0
- package/devices/eatonhalo_led.js +11 -0
- package/devices/echostar.js +25 -0
- package/devices/ecodim.js +145 -0
- package/devices/ecolink.js +21 -0
- package/devices/ecosmart.js +64 -0
- package/devices/ecozy.js +31 -0
- package/devices/edp.js +39 -0
- package/devices/eglo.js +25 -0
- package/devices/elko.js +176 -0
- package/devices/enbrighten.js +163 -0
- package/devices/enocean.js +52 -0
- package/devices/envilar.js +73 -0
- package/devices/essentialb.js +87 -0
- package/devices/eurotronic.js +48 -0
- package/devices/evanell.js +29 -0
- package/devices/evn.js +31 -0
- package/devices/evology.js +24 -0
- package/devices/evvr.js +17 -0
- package/devices/ewelink.js +184 -0
- package/devices/ezex.js +24 -0
- package/devices/fantem.js +77 -0
- package/devices/feibit.js +172 -0
- package/devices/fireangel.js +15 -0
- package/devices/frankever.js +23 -0
- package/devices/garza.js +11 -0
- package/devices/ge.js +111 -0
- package/devices/gewiss.js +48 -0
- package/devices/gidealed.js +11 -0
- package/devices/giderwel.js +11 -0
- package/devices/giex.js +222 -0
- package/devices/girier.js +19 -0
- package/devices/gledopto.js +756 -0
- package/devices/gmy.js +11 -0
- package/devices/gs.js +29 -0
- package/devices/halemeier.js +18 -0
- package/devices/hampton_bay.js +37 -0
- package/devices/heiman.js +805 -0
- package/devices/hej.js +107 -0
- package/devices/hfh.js +11 -0
- package/devices/hgkg.js +54 -0
- package/devices/hilux.js +11 -0
- package/devices/hive.js +524 -0
- package/devices/home_control_as.js +27 -0
- package/devices/hommyn.js +24 -0
- package/devices/honyar.js +29 -0
- package/devices/hornbach.js +53 -0
- package/devices/hzc.js +21 -0
- package/devices/hzc_electric.js +42 -0
- package/devices/icasa.js +121 -0
- package/devices/idinio.js +19 -0
- package/devices/ihorn.js +61 -0
- package/devices/ikea.js +1168 -0
- package/devices/ilightsin.js +11 -0
- package/devices/iluminize.js +262 -0
- package/devices/ilux.js +11 -0
- package/devices/immax.js +203 -0
- package/devices/innr.js +705 -0
- package/devices/inovelli.js +1315 -0
- package/devices/insta.js +110 -0
- package/devices/iolloi.js +20 -0
- package/devices/iotperfect.js +20 -0
- package/devices/iris.js +180 -0
- package/devices/istar.js +20 -0
- package/devices/jasco.js +55 -0
- package/devices/javis.js +37 -0
- package/devices/jethome.js +48 -0
- package/devices/jiawen.js +18 -0
- package/devices/jumitech.js +18 -0
- package/devices/jxuan.js +49 -0
- package/devices/kami.js +15 -0
- package/devices/keen_home.js +80 -0
- package/devices/klikaanklikuit.js +17 -0
- package/devices/kmpcil.js +148 -0
- package/devices/konke.js +141 -0
- package/devices/ksentry.js +17 -0
- package/devices/kurvia.js +17 -0
- package/devices/kwikset.js +120 -0
- package/devices/lanesto.js +11 -0
- package/devices/lds.js +11 -0
- package/devices/led_trading.js +69 -0
- package/devices/ledvance.js +353 -0
- package/devices/leedarson.js +130 -0
- package/devices/legrand.js +554 -0
- package/devices/lellki.js +146 -0
- package/devices/letsled.js +11 -0
- package/devices/letv.js +18 -0
- package/devices/leviton.js +142 -0
- package/devices/lg.js +18 -0
- package/devices/lidl.js +1000 -0
- package/devices/lifecontrol.js +92 -0
- package/devices/lightsolutions.js +37 -0
- package/devices/linkind.js +205 -0
- package/devices/livingwise.js +59 -0
- package/devices/livolo.js +286 -0
- package/devices/lixee.js +779 -0
- package/devices/lonsonho.js +218 -0
- package/devices/lubeez.js +18 -0
- package/devices/lupus.js +74 -0
- package/devices/lutron.js +32 -0
- package/devices/lux.js +40 -0
- package/devices/m-elec.js +18 -0
- package/devices/makegood.js +51 -0
- package/devices/matcall_bv.js +18 -0
- package/devices/meazon.js +47 -0
- package/devices/mercator.js +225 -0
- package/devices/miboxer.js +72 -0
- package/devices/micromatic.js +29 -0
- package/devices/moes.js +400 -0
- package/devices/mycket.js +11 -0
- package/devices/m/303/274ller_licht.js +220 -0
- package/devices/namron.js +774 -0
- package/devices/nanoleaf.js +11 -0
- package/devices/neo.js +86 -0
- package/devices/net2grid.js +29 -0
- package/devices/netvox.js +35 -0
- package/devices/niko.js +314 -0
- package/devices/ninja_blocks.js +24 -0
- package/devices/niviss.js +11 -0
- package/devices/nodon.js +109 -0
- package/devices/nordtronic.js +30 -0
- package/devices/nous.js +88 -0
- package/devices/novo.js +17 -0
- package/devices/nue_3a.js +417 -0
- package/devices/nyce.js +67 -0
- package/devices/onesti.js +59 -0
- package/devices/openlumi.js +22 -0
- package/devices/orvibo.js +515 -0
- package/devices/osram.js +519 -0
- package/devices/oujiabao.js +15 -0
- package/devices/owon.js +352 -0
- package/devices/ozsmartthings.js +11 -0
- package/devices/paul_neuhaus.js +96 -0
- package/devices/paulmann.js +158 -0
- package/devices/peq.js +24 -0
- package/devices/perenio.js +413 -0
- package/devices/philips.js +3118 -0
- package/devices/plaid.js +25 -0
- package/devices/plugwise.js +173 -0
- package/devices/popp.js +10 -0
- package/devices/profalux.js +47 -0
- package/devices/prolight.js +54 -0
- package/devices/qmotion.js +33 -0
- package/devices/qoto.js +113 -0
- package/devices/quotra.js +18 -0
- package/devices/rademacher.js +18 -0
- package/devices/rgb_genie.js +119 -0
- package/devices/robb.js +335 -0
- package/devices/roome.js +15 -0
- package/devices/rtx.js +90 -0
- package/devices/salus_controls.js +137 -0
- package/devices/samotech.js +93 -0
- package/devices/saswell.js +58 -0
- package/devices/scanproducts.js +32 -0
- package/devices/schlage.js +24 -0
- package/devices/schneider_electric.js +1039 -0
- package/devices/schwaiger.js +62 -0
- package/devices/seastar_intelligence.js +16 -0
- package/devices/securifi.js +39 -0
- package/devices/sengled.js +332 -0
- package/devices/sercomm.js +140 -0
- package/devices/shenzhen_homa.js +53 -0
- package/devices/shinasystem.js +686 -0
- package/devices/siglis.js +440 -0
- package/devices/sinope.js +1257 -0
- package/devices/siterwell.js +46 -0
- package/devices/skydance.js +112 -0
- package/devices/slv.js +27 -0
- package/devices/smart9.js +27 -0
- package/devices/smart_home_pty.js +18 -0
- package/devices/smartenit.js +42 -0
- package/devices/smartthings.js +495 -0
- package/devices/smartwings.js +24 -0
- package/devices/sohan_electric.js +13 -0
- package/devices/solaredge.js +11 -0
- package/devices/somgoms.js +47 -0
- package/devices/sonoff.js +262 -0
- package/devices/spotmau.js +36 -0
- package/devices/sprut.js +317 -0
- package/devices/stelpro.js +216 -0
- package/devices/sunricher.js +625 -0
- package/devices/swann.js +33 -0
- package/devices/sylvania.js +200 -0
- package/devices/tci.js +25 -0
- package/devices/technicolor.js +47 -0
- package/devices/terncy.js +64 -0
- package/devices/the_light_group.js +70 -0
- package/devices/third_reality.js +195 -0
- package/devices/titan_products.js +22 -0
- package/devices/tplink.js +42 -0
- package/devices/trust.js +114 -0
- package/devices/tubeszb.js +20 -0
- package/devices/tuya.js +4215 -0
- package/devices/ubisys.js +938 -0
- package/devices/uhome.js +25 -0
- package/devices/universal_electronics_inc.js +119 -0
- package/devices/urlighting.js +12 -0
- package/devices/useelink.js +52 -0
- package/devices/vbled.js +18 -0
- package/devices/vesternet.js +188 -0
- package/devices/viessmann.js +51 -0
- package/devices/villeroy_boch.js +18 -0
- package/devices/vimar.js +78 -0
- package/devices/visonic.js +80 -0
- package/devices/vrey.js +18 -0
- package/devices/wally.js +25 -0
- package/devices/waxman.js +45 -0
- package/devices/weiser.js +67 -0
- package/devices/weten.js +13 -0
- package/devices/wisdom.js +11 -0
- package/devices/woox.js +177 -0
- package/devices/wyze.js +23 -0
- package/devices/xiaomi.js +3223 -0
- package/devices/xinghuoyuan.js +11 -0
- package/devices/yale.js +227 -0
- package/devices/ynoa.js +68 -0
- package/devices/yookee.js +23 -0
- package/devices/ysrsai.js +26 -0
- package/devices/zemismart.js +254 -0
- package/devices/zen.js +34 -0
- package/devices/zipato.js +11 -0
- package/index.js +242 -0
- package/lib/color.js +784 -0
- package/lib/configureKey.js +944 -0
- package/lib/constants.js +316 -0
- package/lib/exposes.js +677 -0
- package/lib/extend.js +180 -0
- package/lib/kelvinToXy.js +1912 -0
- package/lib/legacy.js +2223 -0
- package/lib/light.js +111 -0
- package/lib/ota/OTA_URLs.md +119 -0
- package/lib/ota/common.js +476 -0
- package/lib/ota/index.js +10 -0
- package/lib/ota/inovelli.js +72 -0
- package/lib/ota/ledvance.js +52 -0
- package/lib/ota/lixee.js +57 -0
- package/lib/ota/salus.js +82 -0
- package/lib/ota/securifi.js +25 -0
- package/lib/ota/tradfri.js +45 -0
- package/lib/ota/ubisys.js +61 -0
- package/lib/ota/zigbeeOTA.js +161 -0
- package/lib/philips.js +667 -0
- package/lib/reporting.js +234 -0
- package/lib/store.js +57 -0
- package/lib/tuya.js +2027 -0
- package/lib/utils.js +527 -0
- package/lib/xiaomi.d.ts +11 -0
- package/lib/xiaomi.js +1288 -0
- package/lib/zosung.js +243 -0
- package/package.json +39 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = require('../converters/fromZigbee');
|
|
3
|
+
const reporting = require('../lib/reporting');
|
|
4
|
+
const extend = require('../lib/extend');
|
|
5
|
+
const e = exposes.presets;
|
|
6
|
+
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
zigbeeModel: ['EB-E14-P45-RGBW'],
|
|
10
|
+
model: 'EB-E14-P45-RGBW',
|
|
11
|
+
vendor: 'EssentielB',
|
|
12
|
+
description: 'Smart LED bulb',
|
|
13
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
zigbeeModel: ['EB-E14-FLA-CCT'],
|
|
17
|
+
model: 'EB-E14-FLA-CCT',
|
|
18
|
+
vendor: 'EssentielB',
|
|
19
|
+
description: 'E14 flame CCT light bulb',
|
|
20
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
zigbeeModel: ['EB-E27-A60-CCT-FC'],
|
|
24
|
+
model: 'EB-E27-A60-CCT-FC',
|
|
25
|
+
vendor: 'EssentielB',
|
|
26
|
+
description: 'E27 A60 CCT filament clear light bulb',
|
|
27
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
zigbeeModel: ['EB-E27-A60-CCT'],
|
|
31
|
+
model: 'EB-E27-A60-CCT',
|
|
32
|
+
vendor: 'EssentielB',
|
|
33
|
+
description: 'E27 A60 CCT light bulb',
|
|
34
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
zigbeeModel: ['EB-E27-A60-RGBW'],
|
|
38
|
+
model: 'EB-E27-A60-RGBW',
|
|
39
|
+
vendor: 'EssentielB',
|
|
40
|
+
description: 'E27 A60 RGBW light bulb',
|
|
41
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
zigbeeModel: ['EB-E27-G95-CCT-FV'],
|
|
45
|
+
model: 'EB-E27-G95-CCT-FV',
|
|
46
|
+
vendor: 'EssentielB',
|
|
47
|
+
description: 'Filament vintage globe light bulb',
|
|
48
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
zigbeeModel: ['EB-E27-ST64-CCT-FV'],
|
|
52
|
+
model: 'EB-E27-ST64-CCT-FV',
|
|
53
|
+
vendor: 'EssentielB',
|
|
54
|
+
description: 'Filament vintage edison light bulb',
|
|
55
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
zigbeeModel: ['EB-GU10-MR16-CCT'],
|
|
59
|
+
model: 'EB-GU10-MR16-CCT',
|
|
60
|
+
vendor: 'EssentielB',
|
|
61
|
+
description: 'GU10 MR16 CCT light bulb',
|
|
62
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
zigbeeModel: ['EB-GU10-MR16-RGBW'],
|
|
66
|
+
model: 'EB-GU10-MR16-RGBW',
|
|
67
|
+
vendor: 'EssentielB',
|
|
68
|
+
description: 'GU10 MR16 RGBW light bulb',
|
|
69
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
zigbeeModel: ['EB-SB-1B'],
|
|
73
|
+
model: 'EB-SB-1B',
|
|
74
|
+
vendor: 'EssentielB',
|
|
75
|
+
description: 'Smart button',
|
|
76
|
+
fromZigbee: [fz.battery, fz.command_on, fz.command_off, fz.command_step, fz.command_stop, fz.command_step_color_temperature],
|
|
77
|
+
toZigbee: [],
|
|
78
|
+
exposes: [e.battery(), e.action(['on', 'off', 'color_temperature_step_up', 'color_temperature_step_down',
|
|
79
|
+
'brightness_step_up', 'brightness_step_down', 'brightness_stop'])],
|
|
80
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
81
|
+
const endpoint = device.getEndpoint(1);
|
|
82
|
+
const binds = ['genBasic', 'genOnOff', 'genPowerCfg', 'lightingColorCtrl', 'genLevelCtrl'];
|
|
83
|
+
await reporting.bind(endpoint, coordinatorEndpoint, binds);
|
|
84
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const tz = require('../converters/toZigbee');
|
|
4
|
+
const ota = require('../lib/ota');
|
|
5
|
+
const constants = require('../lib/constants');
|
|
6
|
+
const reporting = require('../lib/reporting');
|
|
7
|
+
const e = exposes.presets;
|
|
8
|
+
|
|
9
|
+
module.exports = [
|
|
10
|
+
{
|
|
11
|
+
zigbeeModel: ['SPZB0001'],
|
|
12
|
+
model: 'SPZB0001',
|
|
13
|
+
vendor: 'Eurotronic',
|
|
14
|
+
description: 'Spirit Zigbee wireless heater thermostat',
|
|
15
|
+
fromZigbee: [fz.legacy.eurotronic_thermostat, fz.battery],
|
|
16
|
+
toZigbee: [tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
|
|
17
|
+
tz.thermostat_local_temperature_calibration, tz.eurotronic_thermostat_system_mode, tz.eurotronic_host_flags,
|
|
18
|
+
tz.eurotronic_error_status, tz.thermostat_setpoint_raise_lower, tz.thermostat_control_sequence_of_operation,
|
|
19
|
+
tz.thermostat_remote_sensing, tz.thermostat_local_temperature, tz.thermostat_running_state,
|
|
20
|
+
tz.eurotronic_current_heating_setpoint, tz.eurotronic_trv_mode, tz.eurotronic_valve_position],
|
|
21
|
+
exposes: [e.battery(), exposes.climate().withSetpoint('occupied_heating_setpoint', 5, 30, 0.5).withLocalTemperature()
|
|
22
|
+
.withSystemMode(['off', 'auto', 'heat']).withRunningState(['idle', 'heat'])
|
|
23
|
+
.withLocalTemperatureCalibration()
|
|
24
|
+
.withPiHeatingDemand(),
|
|
25
|
+
exposes.enum('trv_mode', exposes.access.ALL, [1, 2])
|
|
26
|
+
.withDescription('Select between direct control of the valve via the `valve_position` or automatic control of the '+
|
|
27
|
+
'valve based on the `current_heating_setpoint`. For manual control set the value to 1, for automatic control set the value '+
|
|
28
|
+
'to 2 (the default). When switched to manual mode the display shows a value from 0 (valve closed) to 100 (valve fully open) '+
|
|
29
|
+
'and the buttons on the device are disabled.'),
|
|
30
|
+
exposes.numeric('valve_position', exposes.access.ALL).withValueMin(0).withValueMax(255)
|
|
31
|
+
.withDescription('Directly control the radiator valve when `trv_mode` is set to 1. The values range from 0 (valve '+
|
|
32
|
+
'closed) to 255 (valve fully open)')],
|
|
33
|
+
ota: ota.zigbeeOTA,
|
|
34
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
35
|
+
const endpoint = device.getEndpoint(1);
|
|
36
|
+
const options = {manufacturerCode: 4151};
|
|
37
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'hvacThermostat']);
|
|
38
|
+
await reporting.thermostatTemperature(endpoint);
|
|
39
|
+
await reporting.thermostatPIHeatingDemand(endpoint);
|
|
40
|
+
await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
|
|
41
|
+
await reporting.thermostatUnoccupiedHeatingSetpoint(endpoint);
|
|
42
|
+
await endpoint.configureReporting('hvacThermostat', [{attribute: {ID: 0x4003, type: 41}, minimumReportInterval: 0,
|
|
43
|
+
maximumReportInterval: constants.repInterval.HOUR, reportableChange: 25}], options);
|
|
44
|
+
await endpoint.configureReporting('hvacThermostat', [{attribute: {ID: 0x4008, type: 34}, minimumReportInterval: 0,
|
|
45
|
+
maximumReportInterval: constants.repInterval.HOUR, reportableChange: 1}], options);
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = require('../converters/fromZigbee');
|
|
3
|
+
const tz = require('../converters/toZigbee');
|
|
4
|
+
const tuya = require('../lib/tuya');
|
|
5
|
+
const reporting = require('../lib/reporting');
|
|
6
|
+
const e = exposes.presets;
|
|
7
|
+
const ea = exposes.access;
|
|
8
|
+
|
|
9
|
+
module.exports = [
|
|
10
|
+
{
|
|
11
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_dmfguuli'}],
|
|
12
|
+
model: 'EZ200',
|
|
13
|
+
vendor: 'Evanell',
|
|
14
|
+
description: 'Thermostatic radiator valve',
|
|
15
|
+
fromZigbee: [fz.evanell_thermostat],
|
|
16
|
+
toZigbee: [tz.evanell_thermostat_current_heating_setpoint, tz.evanell_thermostat_system_mode,
|
|
17
|
+
tz.evanell_thermostat_child_lock],
|
|
18
|
+
onEvent: tuya.onEventSetTime,
|
|
19
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
20
|
+
const endpoint = device.getEndpoint(1);
|
|
21
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genBasic']);
|
|
22
|
+
},
|
|
23
|
+
exposes: [e.child_lock(), e.battery(),
|
|
24
|
+
exposes.climate()
|
|
25
|
+
.withSetpoint('current_heating_setpoint', 5, 30, 0.5, ea.STATE_SET).withLocalTemperature(ea.STATE)
|
|
26
|
+
.withSystemMode(['off', 'heat', 'auto'], ea.STATE_SET),
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
];
|
package/devices/evn.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const extend = require('../lib/extend');
|
|
3
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
zigbeeModel: ['ZBHS4RGBW'],
|
|
9
|
+
model: 'ZBHS4RGBW',
|
|
10
|
+
vendor: 'EVN',
|
|
11
|
+
description: 'Zigbee 4 channel RGBW remote control',
|
|
12
|
+
fromZigbee: [fz.battery, fz.command_move_to_color, fz.command_move_to_color_temp, fz.command_move_hue,
|
|
13
|
+
fz.command_step, fz.command_stop, fz.command_move, fz.command_recall, fz.command_on, fz.command_off],
|
|
14
|
+
exposes: [e.battery(), e.action([
|
|
15
|
+
'color_move', 'color_temperature_move', 'brightness_step_up', 'brightness_step_down',
|
|
16
|
+
'brightness_move_up', 'brightness_move_down', 'brightness_stop',
|
|
17
|
+
'hue_move', 'hue_stop', 'recall_*', 'on', 'off'])],
|
|
18
|
+
toZigbee: [],
|
|
19
|
+
meta: {multiEndpoint: true, battery: {dontDividePercentage: true}},
|
|
20
|
+
endpoint: (device) => {
|
|
21
|
+
return {ep1: 1, ep2: 2, ep3: 3, ep4: 4};
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
zigbeeModel: ['ZB24100VS'],
|
|
26
|
+
model: 'ZB24100VS',
|
|
27
|
+
vendor: 'EVN',
|
|
28
|
+
description: 'Zigbee multicolor controller with power supply',
|
|
29
|
+
extend: extend.light_onoff_brightness_colortemp_color({supportsHS: true, colorTempRange: [160, 450]}),
|
|
30
|
+
},
|
|
31
|
+
];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const fz = require('../converters/fromZigbee');
|
|
2
|
+
const tz = require('../converters/toZigbee');
|
|
3
|
+
const reporting = require('../lib/reporting');
|
|
4
|
+
const exposes = require('../lib/exposes');
|
|
5
|
+
const e = exposes.presets;
|
|
6
|
+
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
zigbeeModel: ['PSE03-V1.1.0'],
|
|
10
|
+
model: 'PSE03-V1.1.0',
|
|
11
|
+
vendor: 'EVOLOGY',
|
|
12
|
+
description: 'Sound and flash siren',
|
|
13
|
+
fromZigbee: [fz.ignore_basic_report, fz.ias_wd, fz.ias_enroll, fz.ias_siren],
|
|
14
|
+
toZigbee: [tz.warning],
|
|
15
|
+
meta: {disableDefaultResponse: true},
|
|
16
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
17
|
+
const endpoint = device.getEndpoint(1);
|
|
18
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'ssIasZone', 'ssIasWd', 'genBasic']);
|
|
19
|
+
await endpoint.read('ssIasZone', ['zoneState', 'iasCieAddr', 'zoneId', 'zoneStatus']);
|
|
20
|
+
await endpoint.read('ssIasWd', ['maxDuration']);
|
|
21
|
+
},
|
|
22
|
+
exposes: [e.warning().removeFeature('strobe_level').removeFeature('strobe').removeFeature('strobe_duty_cycle')],
|
|
23
|
+
},
|
|
24
|
+
];
|
package/devices/evvr.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const reporting = require('../lib/reporting');
|
|
2
|
+
const extend = require('../lib/extend');
|
|
3
|
+
|
|
4
|
+
module.exports = [
|
|
5
|
+
{
|
|
6
|
+
zigbeeModel: ['SRB01', 'SRB01A'],
|
|
7
|
+
model: 'SRB01',
|
|
8
|
+
vendor: 'Evvr',
|
|
9
|
+
description: 'In-wall relay switch',
|
|
10
|
+
extend: extend.switch(),
|
|
11
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
12
|
+
const endpoint = device.getEndpoint(1);
|
|
13
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
14
|
+
await reporting.onOff(endpoint);
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
];
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const reporting = require('../lib/reporting');
|
|
4
|
+
const extend = require('../lib/extend');
|
|
5
|
+
const e = exposes.presets;
|
|
6
|
+
|
|
7
|
+
const fzLocal = {
|
|
8
|
+
WS01_rain: {
|
|
9
|
+
cluster: 'ssIasZone',
|
|
10
|
+
type: 'commandStatusChangeNotification',
|
|
11
|
+
convert: (model, msg, publish, options, meta) => {
|
|
12
|
+
const zoneStatus = msg.data.zonestatus;
|
|
13
|
+
if (msg.endpoint.ID != 1) return;
|
|
14
|
+
return {rain: (zoneStatus & 1) > 0};
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
module.exports = [
|
|
20
|
+
{
|
|
21
|
+
zigbeeModel: ['SA-003-Zigbee'],
|
|
22
|
+
model: 'SA-003-Zigbee',
|
|
23
|
+
vendor: 'eWeLink',
|
|
24
|
+
description: 'Zigbee smart plug',
|
|
25
|
+
extend: extend.switch({disablePowerOnBehavior: true}),
|
|
26
|
+
fromZigbee: [fz.on_off_skip_duplicate_transaction],
|
|
27
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
28
|
+
const endpoint = device.getEndpoint(1);
|
|
29
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
30
|
+
},
|
|
31
|
+
onEvent: async (type, data, device) => {
|
|
32
|
+
device.skipDefaultResponse = true;
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
zigbeeModel: ['SA-030-1'],
|
|
37
|
+
model: 'SA-030-1',
|
|
38
|
+
vendor: 'eWeLink',
|
|
39
|
+
description: 'Zigbee 3.0 smart plug 13A (3120W)(UK version)',
|
|
40
|
+
extend: extend.switch(),
|
|
41
|
+
fromZigbee: [fz.on_off_skip_duplicate_transaction],
|
|
42
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
43
|
+
const endpoint = device.getEndpoint(1);
|
|
44
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
45
|
+
},
|
|
46
|
+
onEvent: async (type, data, device) => {
|
|
47
|
+
device.skipDefaultResponse = true;
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
zigbeeModel: ['SWITCH-ZR02'],
|
|
52
|
+
model: 'SWITCH-ZR02',
|
|
53
|
+
vendor: 'eWeLink',
|
|
54
|
+
description: 'Zigbee smart switch',
|
|
55
|
+
extend: extend.switch(),
|
|
56
|
+
fromZigbee: [fz.on_off_skip_duplicate_transaction],
|
|
57
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
58
|
+
const endpoint = device.getEndpoint(1);
|
|
59
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
60
|
+
},
|
|
61
|
+
onEvent: async (type, data, device) => {
|
|
62
|
+
device.skipDefaultResponse = true;
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
zigbeeModel: ['SWITCH-ZR03-1'],
|
|
67
|
+
model: 'SWITCH-ZR03-1',
|
|
68
|
+
vendor: 'eWeLink',
|
|
69
|
+
description: 'Zigbee smart switch',
|
|
70
|
+
extend: extend.switch(),
|
|
71
|
+
fromZigbee: [fz.on_off_skip_duplicate_transaction],
|
|
72
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
73
|
+
const endpoint = device.getEndpoint(1);
|
|
74
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
75
|
+
},
|
|
76
|
+
onEvent: async (type, data, device) => {
|
|
77
|
+
device.skipDefaultResponse = true;
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
zigbeeModel: ['ZB-SW01'],
|
|
82
|
+
model: 'ZB-SW01',
|
|
83
|
+
vendor: 'eWeLink',
|
|
84
|
+
description: 'Smart light switch - 1 gang',
|
|
85
|
+
extend: extend.switch(),
|
|
86
|
+
fromZigbee: [fz.on_off_skip_duplicate_transaction],
|
|
87
|
+
onEvent: async (type, data, device) => {
|
|
88
|
+
device.skipDefaultResponse = true;
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
zigbeeModel: ['ZB-SW02', 'E220-KR2N0Z0-HA'],
|
|
93
|
+
model: 'ZB-SW02',
|
|
94
|
+
vendor: 'eWeLink',
|
|
95
|
+
description: 'Smart light switch - 2 gang',
|
|
96
|
+
extend: extend.switch(),
|
|
97
|
+
exposes: [e.switch().withEndpoint('left'), e.switch().withEndpoint('right')],
|
|
98
|
+
endpoint: (device) => {
|
|
99
|
+
return {'left': 1, 'right': 2};
|
|
100
|
+
},
|
|
101
|
+
meta: {multiEndpoint: true},
|
|
102
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
103
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
104
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
105
|
+
},
|
|
106
|
+
onEvent: async (type, data, device) => {
|
|
107
|
+
device.skipDefaultResponse = true;
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
zigbeeModel: ['ZB-SW03'],
|
|
112
|
+
model: 'ZB-SW03',
|
|
113
|
+
vendor: 'eWeLink',
|
|
114
|
+
description: 'Smart light switch - 3 gang',
|
|
115
|
+
extend: extend.switch(),
|
|
116
|
+
exposes: [e.switch().withEndpoint('left'), e.switch().withEndpoint('center'), e.switch().withEndpoint('right')],
|
|
117
|
+
endpoint: (device) => {
|
|
118
|
+
return {'left': 1, 'center': 2, 'right': 3};
|
|
119
|
+
},
|
|
120
|
+
meta: {multiEndpoint: true},
|
|
121
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
122
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
123
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
124
|
+
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
125
|
+
},
|
|
126
|
+
onEvent: async (type, data, device) => {
|
|
127
|
+
device.skipDefaultResponse = true;
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
zigbeeModel: ['ZB-SW04'],
|
|
132
|
+
model: 'ZB-SW04',
|
|
133
|
+
vendor: 'eWeLink',
|
|
134
|
+
description: 'Smart light switch - 4 gang',
|
|
135
|
+
extend: extend.switch(),
|
|
136
|
+
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
|
|
137
|
+
e.switch().withEndpoint('l3'), e.switch().withEndpoint('l4')],
|
|
138
|
+
endpoint: (device) => {
|
|
139
|
+
return {'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4};
|
|
140
|
+
},
|
|
141
|
+
meta: {multiEndpoint: true},
|
|
142
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
143
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
144
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
145
|
+
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
146
|
+
await reporting.bind(device.getEndpoint(4), coordinatorEndpoint, ['genOnOff']);
|
|
147
|
+
},
|
|
148
|
+
onEvent: async (type, data, device) => {
|
|
149
|
+
device.skipDefaultResponse = true;
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
zigbeeModel: ['ZB-SW05'],
|
|
154
|
+
model: 'ZB-SW05',
|
|
155
|
+
vendor: 'eWeLink',
|
|
156
|
+
description: 'Smart light switch - 5 gang',
|
|
157
|
+
extend: extend.switch(),
|
|
158
|
+
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
|
|
159
|
+
e.switch().withEndpoint('l3'), e.switch().withEndpoint('l4'), e.switch().withEndpoint('l5')],
|
|
160
|
+
endpoint: (device) => {
|
|
161
|
+
return {'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4, 'l5': 5};
|
|
162
|
+
},
|
|
163
|
+
meta: {multiEndpoint: true},
|
|
164
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
165
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
166
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
167
|
+
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
168
|
+
await reporting.bind(device.getEndpoint(4), coordinatorEndpoint, ['genOnOff']);
|
|
169
|
+
await reporting.bind(device.getEndpoint(5), coordinatorEndpoint, ['genOnOff']);
|
|
170
|
+
},
|
|
171
|
+
onEvent: async (type, data, device) => {
|
|
172
|
+
device.skipDefaultResponse = true;
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
zigbeeModel: ['WS01'],
|
|
177
|
+
model: 'WS01',
|
|
178
|
+
vendor: 'eWeLink',
|
|
179
|
+
description: 'Rainfall sensor',
|
|
180
|
+
fromZigbee: [fzLocal.WS01_rain],
|
|
181
|
+
toZigbee: [],
|
|
182
|
+
exposes: [e.rain()],
|
|
183
|
+
},
|
|
184
|
+
];
|
package/devices/ezex.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const reporting = require('../lib/reporting');
|
|
3
|
+
const extend = require('../lib/extend');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
zigbeeModel: ['E220-KR3N0Z0-HA'],
|
|
9
|
+
model: 'ECW-100-A03',
|
|
10
|
+
vendor: 'eZEX',
|
|
11
|
+
description: 'Zigbee switch 3 gang',
|
|
12
|
+
extend: extend.switch(),
|
|
13
|
+
exposes: [e.switch().withEndpoint('top'), e.switch().withEndpoint('center'), e.switch().withEndpoint('bottom')],
|
|
14
|
+
endpoint: (device) => {
|
|
15
|
+
return {top: 1, center: 2, bottom: 3};
|
|
16
|
+
},
|
|
17
|
+
meta: {multiEndpoint: true},
|
|
18
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
19
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
20
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
21
|
+
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const tz = require('../converters/toZigbee');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
const ea = exposes.access;
|
|
6
|
+
const extend = require('../lib/extend');
|
|
7
|
+
const reporting = require('../lib/reporting');
|
|
8
|
+
const tuya = require('../lib/tuya');
|
|
9
|
+
|
|
10
|
+
module.exports = [
|
|
11
|
+
{
|
|
12
|
+
fingerprint: [{modelID: 'TS110F', manufacturerName: '_TZ3210_lfbz816s'},
|
|
13
|
+
{modelID: 'TS110F', manufacturerName: '_TZ3210_ebbfkvoy'}],
|
|
14
|
+
model: 'ZB006-X',
|
|
15
|
+
vendor: 'Fantem',
|
|
16
|
+
description: 'Smart dimmer module',
|
|
17
|
+
extend: extend.light_onoff_brightness({noConfigure: true}),
|
|
18
|
+
fromZigbee: [...extend.light_onoff_brightness({noConfigure: true}).fromZigbee,
|
|
19
|
+
fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.ZB006X_settings],
|
|
20
|
+
toZigbee: [...extend.light_onoff_brightness({noConfigure: true}).toZigbee, tz.ZB006X_settings],
|
|
21
|
+
exposes: [e.light_brightness(),
|
|
22
|
+
e.action(['on', 'off', 'brightness_move_down', 'brightness_move_up', 'brightness_stop']),
|
|
23
|
+
exposes.enum('control_mode', ea.STATE_SET, ['ext_switch', 'remote', 'both']).withDescription('Control mode'),
|
|
24
|
+
exposes.enum('switch_type', ea.STATE_SET, ['unknown', 'toggle', 'momentary', 'rotary', 'auto_config'])
|
|
25
|
+
.withDescription('External switch type'),
|
|
26
|
+
exposes.numeric('switch_status', ea.STATE).withDescription('External switch status')
|
|
27
|
+
.withValueMin(-10000).withValueMax(10000),
|
|
28
|
+
exposes.enum('load_detection_mode', ea.STATE_SET, ['none', 'first_power_on', 'every_power_on'])
|
|
29
|
+
.withDescription('Load detection mode'),
|
|
30
|
+
// If you see load_type 'unknown', pls. check with Tuya gateway and app and update with label from Tuya app.
|
|
31
|
+
exposes.enum('load_type', ea.STATE, ['unknown', 'resistive_capacitive', 'unknown', 'detecting'])
|
|
32
|
+
.withDescription('Load type'),
|
|
33
|
+
exposes.enum('load_dimmable', ea.STATE, ['unknown', 'dimmable', 'not_dimmable'])
|
|
34
|
+
.withDescription('Load dimmable'),
|
|
35
|
+
exposes.enum('power_supply_mode', ea.STATE, ['unknown', 'no_neutral', 'with_neutral'])
|
|
36
|
+
.withDescription('Power supply mode'),
|
|
37
|
+
],
|
|
38
|
+
meta: {disableActionGroup: true},
|
|
39
|
+
onEvent: tuya.onEventSetLocalTime,
|
|
40
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
41
|
+
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
|
42
|
+
const endpoint = device.getEndpoint(1);
|
|
43
|
+
// Enables reporting of physical state changes
|
|
44
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/9057#issuecomment-1007742130
|
|
45
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
46
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
fingerprint: [{modelID: 'TS0202', manufacturerName: '_TZ3210_rxqls8v0'},
|
|
51
|
+
{modelID: 'TS0202', manufacturerName: '_TZ3210_zmy9hjay'},
|
|
52
|
+
{modelID: 'TS0202', manufacturerName: '_TZ3210_wuhzzfqg'}],
|
|
53
|
+
model: 'ZB003-X',
|
|
54
|
+
vendor: 'Fantem',
|
|
55
|
+
description: '4 in 1 multi sensor',
|
|
56
|
+
fromZigbee: [fz.battery, fz.ignore_basic_report, fz.illuminance, fz.ZB003X, fz.ZB003X_attr, fz.ZB003X_occupancy],
|
|
57
|
+
toZigbee: [tz.ZB003X],
|
|
58
|
+
exposes: [e.occupancy(), e.tamper(), e.illuminance_lux(), e.illuminance(), e.temperature(), e.humidity(),
|
|
59
|
+
e.battery(), e.battery_voltage(),
|
|
60
|
+
exposes.numeric('battery2', ea.STATE).withUnit('%').withDescription('Remaining battery 2 in %'),
|
|
61
|
+
exposes.numeric('illuminance_calibration', ea.STATE_SET).withDescription('Illuminance calibration in lux')
|
|
62
|
+
.withValueMin(-20).withValueMax(20),
|
|
63
|
+
exposes.numeric('temperature_calibration', ea.STATE_SET).withDescription('Temperature calibration (-2.0...2.0)')
|
|
64
|
+
.withValueMin(-2).withValueMax(2).withValueStep(0.1),
|
|
65
|
+
exposes.numeric('humidity_calibration', ea.STATE_SET).withDescription('Humidity calibration')
|
|
66
|
+
.withValueMin(-15).withValueMax(15),
|
|
67
|
+
exposes.binary('reporting_enable', ea.STATE_SET, true, false).withDescription('Enable reporting'),
|
|
68
|
+
exposes.numeric('reporting_time', ea.STATE_SET).withDescription('Reporting interval in minutes')
|
|
69
|
+
.withValueMin(0).withValueMax(1440).withValueStep(5),
|
|
70
|
+
exposes.binary('led_enable', ea.STATE_SET, true, false).withDescription('Enable LED'),
|
|
71
|
+
exposes.binary('pir_enable', ea.STATE_SET, true, false).withDescription('Enable PIR sensor'),
|
|
72
|
+
exposes.enum('sensitivity', ea.STATE_SET, ['low', 'medium', 'high']).withDescription('PIR sensor sensitivity'),
|
|
73
|
+
// eslint-disable-next-line
|
|
74
|
+
exposes.enum('keep_time', ea.STATE_SET, ['0', '30', '60', '120', '240', '480'])
|
|
75
|
+
.withDescription('PIR keep time in seconds')],
|
|
76
|
+
},
|
|
77
|
+
];
|