zigbee-herdsman-converters 21.9.0 → 21.9.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/CHANGELOG.md +9 -0
- package/converters/fromZigbee.d.ts +2036 -0
- package/converters/fromZigbee.d.ts.map +1 -0
- package/converters/fromZigbee.js +5343 -0
- package/converters/fromZigbee.js.map +1 -0
- package/converters/toZigbee.d.ts +1578 -0
- package/converters/toZigbee.d.ts.map +1 -0
- package/converters/toZigbee.js +4422 -0
- package/converters/toZigbee.js.map +1 -0
- package/devices/ITCommander.d.ts +4 -0
- package/devices/ITCommander.d.ts.map +1 -0
- package/devices/ITCommander.js +77 -0
- package/devices/ITCommander.js.map +1 -0
- package/devices/acova.d.ts +4 -0
- package/devices/acova.d.ts.map +1 -0
- package/devices/acova.js +127 -0
- package/devices/acova.js.map +1 -0
- package/devices/acuity_brands_lighting.d.ts +4 -0
- package/devices/acuity_brands_lighting.d.ts.map +1 -0
- package/devices/acuity_brands_lighting.js +29 -0
- package/devices/acuity_brands_lighting.js.map +1 -0
- package/devices/adeo.d.ts +4 -0
- package/devices/adeo.d.ts.map +1 -0
- package/devices/adeo.js +486 -0
- package/devices/adeo.js.map +1 -0
- package/devices/adurosmart.d.ts +4 -0
- package/devices/adurosmart.d.ts.map +1 -0
- package/devices/adurosmart.js +183 -0
- package/devices/adurosmart.js.map +1 -0
- package/devices/aeotec.d.ts +4 -0
- package/devices/aeotec.d.ts.map +1 -0
- package/devices/aeotec.js +66 -0
- package/devices/aeotec.js.map +1 -0
- package/devices/airam.d.ts +4 -0
- package/devices/airam.d.ts.map +1 -0
- package/devices/airam.js +106 -0
- package/devices/airam.js.map +1 -0
- package/devices/airzone_aidoo.d.ts +4 -0
- package/devices/airzone_aidoo.d.ts.map +1 -0
- package/devices/airzone_aidoo.js +81 -0
- package/devices/airzone_aidoo.js.map +1 -0
- package/devices/ajax_online.d.ts +4 -0
- package/devices/ajax_online.d.ts.map +1 -0
- package/devices/ajax_online.js +84 -0
- package/devices/ajax_online.js.map +1 -0
- package/devices/akuvox.d.ts +4 -0
- package/devices/akuvox.d.ts.map +1 -0
- package/devices/akuvox.js +68 -0
- package/devices/akuvox.js.map +1 -0
- package/devices/alchemy.d.ts +4 -0
- package/devices/alchemy.d.ts.map +1 -0
- package/devices/alchemy.js +22 -0
- package/devices/alchemy.js.map +1 -0
- package/devices/aldi.d.ts +4 -0
- package/devices/aldi.d.ts.map +1 -0
- package/devices/aldi.js +57 -0
- package/devices/aldi.js.map +1 -0
- package/devices/alecto.d.ts +4 -0
- package/devices/alecto.d.ts.map +1 -0
- package/devices/alecto.js +101 -0
- package/devices/alecto.js.map +1 -0
- package/devices/amina.d.ts +4 -0
- package/devices/amina.d.ts.map +1 -0
- package/devices/amina.js +370 -0
- package/devices/amina.js.map +1 -0
- package/devices/anchor.d.ts +4 -0
- package/devices/anchor.d.ts.map +1 -0
- package/devices/anchor.js +15 -0
- package/devices/anchor.js.map +1 -0
- package/devices/atlantic.d.ts +4 -0
- package/devices/atlantic.d.ts.map +1 -0
- package/devices/atlantic.js +146 -0
- package/devices/atlantic.js.map +1 -0
- package/devices/atsmart.d.ts +4 -0
- package/devices/atsmart.d.ts.map +1 -0
- package/devices/atsmart.js +15 -0
- package/devices/atsmart.js.map +1 -0
- package/devices/aubess.d.ts +4 -0
- package/devices/aubess.d.ts.map +1 -0
- package/devices/aubess.js +60 -0
- package/devices/aubess.js.map +1 -0
- package/devices/aurora_lighting.d.ts +4 -0
- package/devices/aurora_lighting.d.ts.map +1 -0
- package/devices/aurora_lighting.js +338 -0
- package/devices/aurora_lighting.js.map +1 -0
- package/devices/automaton.d.ts +4 -0
- package/devices/automaton.d.ts.map +1 -0
- package/devices/automaton.js +65 -0
- package/devices/automaton.js.map +1 -0
- package/devices/avatto.d.ts +4 -0
- package/devices/avatto.d.ts.map +1 -0
- package/devices/avatto.js +67 -0
- package/devices/avatto.js.map +1 -0
- package/devices/awox.d.ts +4 -0
- package/devices/awox.d.ts.map +1 -0
- package/devices/awox.js +240 -0
- package/devices/awox.js.map +1 -0
- package/devices/axis.d.ts +4 -0
- package/devices/axis.d.ts.map +1 -0
- package/devices/axis.js +63 -0
- package/devices/axis.js.map +1 -0
- package/devices/bankamp.d.ts +4 -0
- package/devices/bankamp.d.ts.map +1 -0
- package/devices/bankamp.js +15 -0
- package/devices/bankamp.js.map +1 -0
- package/devices/bega.d.ts +4 -0
- package/devices/bega.d.ts.map +1 -0
- package/devices/bega.js +29 -0
- package/devices/bega.js.map +1 -0
- package/devices/belkin.d.ts +4 -0
- package/devices/belkin.d.ts.map +1 -0
- package/devices/belkin.js +15 -0
- package/devices/belkin.js.map +1 -0
- package/devices/bitron.d.ts +4 -0
- package/devices/bitron.d.ts.map +1 -0
- package/devices/bitron.js +359 -0
- package/devices/bitron.js.map +1 -0
- package/devices/bituo_technik.d.ts +4 -0
- package/devices/bituo_technik.d.ts.map +1 -0
- package/devices/bituo_technik.js +121 -0
- package/devices/bituo_technik.js.map +1 -0
- package/devices/blaupunkt.d.ts +4 -0
- package/devices/blaupunkt.d.ts.map +1 -0
- package/devices/blaupunkt.js +68 -0
- package/devices/blaupunkt.js.map +1 -0
- package/devices/blitzwolf.d.ts +4 -0
- package/devices/blitzwolf.d.ts.map +1 -0
- package/devices/blitzwolf.js +73 -0
- package/devices/blitzwolf.js.map +1 -0
- package/devices/bosch.d.ts +4 -0
- package/devices/bosch.d.ts.map +1 -0
- package/devices/bosch.js +2048 -0
- package/devices/bosch.js.map +1 -0
- package/devices/bouffalo_lab.d.ts +4 -0
- package/devices/bouffalo_lab.d.ts.map +1 -0
- package/devices/bouffalo_lab.js +15 -0
- package/devices/bouffalo_lab.js.map +1 -0
- package/devices/brimate.d.ts +4 -0
- package/devices/brimate.d.ts.map +1 -0
- package/devices/brimate.js +55 -0
- package/devices/brimate.js.map +1 -0
- package/devices/bseed.d.ts +4 -0
- package/devices/bseed.d.ts.map +1 -0
- package/devices/bseed.js +57 -0
- package/devices/bseed.js.map +1 -0
- package/devices/bticino.d.ts +4 -0
- package/devices/bticino.d.ts.map +1 -0
- package/devices/bticino.js +113 -0
- package/devices/bticino.js.map +1 -0
- package/devices/busch_jaeger.d.ts +4 -0
- package/devices/busch_jaeger.d.ts.map +1 -0
- package/devices/busch_jaeger.js +186 -0
- package/devices/busch_jaeger.js.map +1 -0
- package/devices/byun.d.ts +4 -0
- package/devices/byun.d.ts.map +1 -0
- package/devices/byun.js +64 -0
- package/devices/byun.js.map +1 -0
- package/devices/calex.d.ts +4 -0
- package/devices/calex.d.ts.map +1 -0
- package/devices/calex.js +91 -0
- package/devices/calex.js.map +1 -0
- package/devices/candeo.d.ts +4 -0
- package/devices/candeo.d.ts.map +1 -0
- package/devices/candeo.js +185 -0
- package/devices/candeo.js.map +1 -0
- package/devices/casaia.d.ts +4 -0
- package/devices/casaia.d.ts.map +1 -0
- package/devices/casaia.js +99 -0
- package/devices/casaia.js.map +1 -0
- package/devices/cel.d.ts +4 -0
- package/devices/cel.d.ts.map +1 -0
- package/devices/cel.js +20 -0
- package/devices/cel.js.map +1 -0
- package/devices/centralite.d.ts +4 -0
- package/devices/centralite.d.ts.map +1 -0
- package/devices/centralite.js +444 -0
- package/devices/centralite.js.map +1 -0
- package/devices/chacon.d.ts +4 -0
- package/devices/chacon.d.ts.map +1 -0
- package/devices/chacon.js +18 -0
- package/devices/chacon.js.map +1 -0
- package/devices/cleode.d.ts +4 -0
- package/devices/cleode.d.ts.map +1 -0
- package/devices/cleode.js +15 -0
- package/devices/cleode.js.map +1 -0
- package/devices/cleverio.d.ts +4 -0
- package/devices/cleverio.d.ts.map +1 -0
- package/devices/cleverio.js +77 -0
- package/devices/cleverio.js.map +1 -0
- package/devices/climax.d.ts +4 -0
- package/devices/climax.d.ts.map +1 -0
- package/devices/climax.js +181 -0
- package/devices/climax.js.map +1 -0
- package/devices/commercial_electric.d.ts +4 -0
- package/devices/commercial_electric.d.ts.map +1 -0
- package/devices/commercial_electric.js +15 -0
- package/devices/commercial_electric.js.map +1 -0
- package/devices/cree.d.ts +4 -0
- package/devices/cree.d.ts.map +1 -0
- package/devices/cree.js +15 -0
- package/devices/cree.js.map +1 -0
- package/devices/ctm.d.ts +4 -0
- package/devices/ctm.d.ts.map +1 -0
- package/devices/ctm.js +1383 -0
- package/devices/ctm.js.map +1 -0
- package/devices/current_products_corp.d.ts +4 -0
- package/devices/current_products_corp.d.ts.map +1 -0
- package/devices/current_products_corp.js +64 -0
- package/devices/current_products_corp.js.map +1 -0
- package/devices/custom_devices_diy.d.ts +4 -0
- package/devices/custom_devices_diy.d.ts.map +1 -0
- package/devices/custom_devices_diy.js +1206 -0
- package/devices/custom_devices_diy.js.map +1 -0
- package/devices/cy_lighting.d.ts +4 -0
- package/devices/cy_lighting.d.ts.map +1 -0
- package/devices/cy_lighting.js +15 -0
- package/devices/cy_lighting.js.map +1 -0
- package/devices/danalock.d.ts +4 -0
- package/devices/danalock.d.ts.map +1 -0
- package/devices/danalock.js +65 -0
- package/devices/danalock.js.map +1 -0
- package/devices/danfoss.d.ts +4 -0
- package/devices/danfoss.d.ts.map +1 -0
- package/devices/danfoss.js +743 -0
- package/devices/danfoss.js.map +1 -0
- package/devices/databyte.d.ts +4 -0
- package/devices/databyte.d.ts.map +1 -0
- package/devices/databyte.js +95 -0
- package/devices/databyte.js.map +1 -0
- package/devices/datek.d.ts +4 -0
- package/devices/datek.d.ts.map +1 -0
- package/devices/datek.js +298 -0
- package/devices/datek.js.map +1 -0
- package/devices/dawon_dns.d.ts +4 -0
- package/devices/dawon_dns.d.ts.map +1 -0
- package/devices/dawon_dns.js +318 -0
- package/devices/dawon_dns.js.map +1 -0
- package/devices/develco.d.ts +4 -0
- package/devices/develco.d.ts.map +1 -0
- package/devices/develco.js +1037 -0
- package/devices/develco.js.map +1 -0
- package/devices/digi.d.ts +4 -0
- package/devices/digi.d.ts.map +1 -0
- package/devices/digi.js +25 -0
- package/devices/digi.js.map +1 -0
- package/devices/diyruz.d.ts +4 -0
- package/devices/diyruz.d.ts.map +1 -0
- package/devices/diyruz.js +403 -0
- package/devices/diyruz.js.map +1 -0
- package/devices/dlink.d.ts +4 -0
- package/devices/dlink.d.ts.map +1 -0
- package/devices/dlink.js +76 -0
- package/devices/dlink.js.map +1 -0
- package/devices/dnake.d.ts +4 -0
- package/devices/dnake.d.ts.map +1 -0
- package/devices/dnake.js +15 -0
- package/devices/dnake.js.map +1 -0
- package/devices/dowsing_reynolds.d.ts +4 -0
- package/devices/dowsing_reynolds.d.ts.map +1 -0
- package/devices/dowsing_reynolds.js +15 -0
- package/devices/dowsing_reynolds.js.map +1 -0
- package/devices/dresden_elektronik.d.ts +4 -0
- package/devices/dresden_elektronik.d.ts.map +1 -0
- package/devices/dresden_elektronik.js +50 -0
- package/devices/dresden_elektronik.js.map +1 -0
- package/devices/easyaccess.d.ts +4 -0
- package/devices/easyaccess.d.ts.map +1 -0
- package/devices/easyaccess.js +71 -0
- package/devices/easyaccess.js.map +1 -0
- package/devices/easyiot.d.ts +4 -0
- package/devices/easyiot.d.ts.map +1 -0
- package/devices/easyiot.js +358 -0
- package/devices/easyiot.js.map +1 -0
- package/devices/eatonhalo_led.d.ts +4 -0
- package/devices/eatonhalo_led.d.ts.map +1 -0
- package/devices/eatonhalo_led.js +15 -0
- package/devices/eatonhalo_led.js.map +1 -0
- package/devices/echostar.d.ts +4 -0
- package/devices/echostar.d.ts.map +1 -0
- package/devices/echostar.js +65 -0
- package/devices/echostar.js.map +1 -0
- package/devices/ecodim.d.ts +4 -0
- package/devices/ecodim.d.ts.map +1 -0
- package/devices/ecodim.js +270 -0
- package/devices/ecodim.js.map +1 -0
- package/devices/ecolink.d.ts +4 -0
- package/devices/ecolink.d.ts.map +1 -0
- package/devices/ecolink.js +61 -0
- package/devices/ecolink.js.map +1 -0
- package/devices/ecosmart.d.ts +4 -0
- package/devices/ecosmart.d.ts.map +1 -0
- package/devices/ecosmart.js +83 -0
- package/devices/ecosmart.js.map +1 -0
- package/devices/ecozy.d.ts +4 -0
- package/devices/ecozy.d.ts.map +1 -0
- package/devices/ecozy.js +89 -0
- package/devices/ecozy.js.map +1 -0
- package/devices/edp.d.ts +4 -0
- package/devices/edp.d.ts.map +1 -0
- package/devices/edp.js +74 -0
- package/devices/edp.js.map +1 -0
- package/devices/efekta.d.ts +4 -0
- package/devices/efekta.d.ts.map +1 -0
- package/devices/efekta.js +754 -0
- package/devices/efekta.js.map +1 -0
- package/devices/eglo.d.ts +4 -0
- package/devices/eglo.d.ts.map +1 -0
- package/devices/eglo.js +132 -0
- package/devices/eglo.js.map +1 -0
- package/devices/elko.d.ts +4 -0
- package/devices/elko.d.ts.map +1 -0
- package/devices/elko.js +240 -0
- package/devices/elko.js.map +1 -0
- package/devices/enbrighten.d.ts +4 -0
- package/devices/enbrighten.d.ts.map +1 -0
- package/devices/enbrighten.js +97 -0
- package/devices/enbrighten.js.map +1 -0
- package/devices/enocean.d.ts +4 -0
- package/devices/enocean.d.ts.map +1 -0
- package/devices/enocean.js +153 -0
- package/devices/enocean.js.map +1 -0
- package/devices/envilar.d.ts +4 -0
- package/devices/envilar.d.ts.map +1 -0
- package/devices/envilar.js +100 -0
- package/devices/envilar.js.map +1 -0
- package/devices/essentialb.d.ts +4 -0
- package/devices/essentialb.d.ts.map +1 -0
- package/devices/essentialb.js +137 -0
- package/devices/essentialb.js.map +1 -0
- package/devices/essentials.d.ts +4 -0
- package/devices/essentials.d.ts.map +1 -0
- package/devices/essentials.js +151 -0
- package/devices/essentials.js.map +1 -0
- package/devices/eucontrols.d.ts +4 -0
- package/devices/eucontrols.d.ts.map +1 -0
- package/devices/eucontrols.js +15 -0
- package/devices/eucontrols.js.map +1 -0
- package/devices/eurotronic.d.ts +4 -0
- package/devices/eurotronic.d.ts.map +1 -0
- package/devices/eurotronic.js +128 -0
- package/devices/eurotronic.js.map +1 -0
- package/devices/evanell.d.ts +4 -0
- package/devices/evanell.d.ts.map +1 -0
- package/devices/evanell.js +75 -0
- package/devices/evanell.js.map +1 -0
- package/devices/evn.d.ts +4 -0
- package/devices/evn.d.ts.map +1 -0
- package/devices/evn.js +94 -0
- package/devices/evn.js.map +1 -0
- package/devices/evology.d.ts +4 -0
- package/devices/evology.d.ts.map +1 -0
- package/devices/evology.js +64 -0
- package/devices/evology.js.map +1 -0
- package/devices/evvr.d.ts +4 -0
- package/devices/evvr.d.ts.map +1 -0
- package/devices/evvr.js +15 -0
- package/devices/evvr.js.map +1 -0
- package/devices/ewelink.d.ts +4 -0
- package/devices/ewelink.d.ts.map +1 -0
- package/devices/ewelink.js +343 -0
- package/devices/ewelink.js.map +1 -0
- package/devices/ezex.d.ts +4 -0
- package/devices/ezex.d.ts.map +1 -0
- package/devices/ezex.js +15 -0
- package/devices/ezex.js.map +1 -0
- package/devices/fantem.d.ts +4 -0
- package/devices/fantem.d.ts.map +1 -0
- package/devices/fantem.js +118 -0
- package/devices/fantem.js.map +1 -0
- package/devices/feibit.d.ts +4 -0
- package/devices/feibit.d.ts.map +1 -0
- package/devices/feibit.js +334 -0
- package/devices/feibit.js.map +1 -0
- package/devices/fireangel.d.ts +4 -0
- package/devices/fireangel.d.ts.map +1 -0
- package/devices/fireangel.js +55 -0
- package/devices/fireangel.js.map +1 -0
- package/devices/frankever.d.ts +4 -0
- package/devices/frankever.d.ts.map +1 -0
- package/devices/frankever.js +71 -0
- package/devices/frankever.js.map +1 -0
- package/devices/frient.d.ts +4 -0
- package/devices/frient.d.ts.map +1 -0
- package/devices/frient.js +42 -0
- package/devices/frient.js.map +1 -0
- package/devices/futurehome.d.ts +4 -0
- package/devices/futurehome.d.ts.map +1 -0
- package/devices/futurehome.js +124 -0
- package/devices/futurehome.js.map +1 -0
- package/devices/ge.d.ts +4 -0
- package/devices/ge.d.ts.map +1 -0
- package/devices/ge.js +134 -0
- package/devices/ge.js.map +1 -0
- package/devices/gewiss.d.ts +4 -0
- package/devices/gewiss.d.ts.map +1 -0
- package/devices/gewiss.js +78 -0
- package/devices/gewiss.js.map +1 -0
- package/devices/gidealed.d.ts +4 -0
- package/devices/gidealed.d.ts.map +1 -0
- package/devices/gidealed.js +15 -0
- package/devices/gidealed.js.map +1 -0
- package/devices/giderwel.d.ts +4 -0
- package/devices/giderwel.d.ts.map +1 -0
- package/devices/giderwel.js +15 -0
- package/devices/giderwel.js.map +1 -0
- package/devices/giex.d.ts +4 -0
- package/devices/giex.d.ts.map +1 -0
- package/devices/giex.js +121 -0
- package/devices/giex.js.map +1 -0
- package/devices/girier.d.ts +4 -0
- package/devices/girier.d.ts.map +1 -0
- package/devices/girier.js +56 -0
- package/devices/girier.js.map +1 -0
- package/devices/gledopto.d.ts +4 -0
- package/devices/gledopto.d.ts.map +1 -0
- package/devices/gledopto.js +1046 -0
- package/devices/gledopto.js.map +1 -0
- package/devices/gmmts.d.ts +4 -0
- package/devices/gmmts.d.ts.map +1 -0
- package/devices/gmmts.js +2287 -0
- package/devices/gmmts.js.map +1 -0
- package/devices/gmy.d.ts +4 -0
- package/devices/gmy.d.ts.map +1 -0
- package/devices/gmy.js +15 -0
- package/devices/gmy.js.map +1 -0
- package/devices/gs.d.ts +4 -0
- package/devices/gs.d.ts.map +1 -0
- package/devices/gs.js +89 -0
- package/devices/gs.js.map +1 -0
- package/devices/gumax.d.ts +4 -0
- package/devices/gumax.d.ts.map +1 -0
- package/devices/gumax.js +15 -0
- package/devices/gumax.js.map +1 -0
- package/devices/halemeier.d.ts +4 -0
- package/devices/halemeier.d.ts.map +1 -0
- package/devices/halemeier.js +129 -0
- package/devices/halemeier.js.map +1 -0
- package/devices/hampton_bay.d.ts +4 -0
- package/devices/hampton_bay.d.ts.map +1 -0
- package/devices/hampton_bay.js +72 -0
- package/devices/hampton_bay.js.map +1 -0
- package/devices/heatit.d.ts +4 -0
- package/devices/heatit.d.ts.map +1 -0
- package/devices/heatit.js +15 -0
- package/devices/heatit.js.map +1 -0
- package/devices/heiman.d.ts +4 -0
- package/devices/heiman.d.ts.map +1 -0
- package/devices/heiman.js +807 -0
- package/devices/heiman.js.map +1 -0
- package/devices/heimgard_technologies.d.ts +4 -0
- package/devices/heimgard_technologies.d.ts.map +1 -0
- package/devices/heimgard_technologies.js +193 -0
- package/devices/heimgard_technologies.js.map +1 -0
- package/devices/hej.d.ts +4 -0
- package/devices/hej.d.ts.map +1 -0
- package/devices/hej.js +73 -0
- package/devices/hej.js.map +1 -0
- package/devices/hfh.d.ts +4 -0
- package/devices/hfh.d.ts.map +1 -0
- package/devices/hfh.js +15 -0
- package/devices/hfh.js.map +1 -0
- package/devices/hilux.d.ts +4 -0
- package/devices/hilux.d.ts.map +1 -0
- package/devices/hilux.js +22 -0
- package/devices/hilux.js.map +1 -0
- package/devices/hive.d.ts +4 -0
- package/devices/hive.d.ts.map +1 -0
- package/devices/hive.js +766 -0
- package/devices/hive.js.map +1 -0
- package/devices/hommyn.d.ts +4 -0
- package/devices/hommyn.d.ts.map +1 -0
- package/devices/hommyn.js +64 -0
- package/devices/hommyn.js.map +1 -0
- package/devices/honyar.d.ts +4 -0
- package/devices/honyar.d.ts.map +1 -0
- package/devices/honyar.js +171 -0
- package/devices/honyar.js.map +1 -0
- package/devices/hornbach.d.ts +4 -0
- package/devices/hornbach.d.ts.map +1 -0
- package/devices/hornbach.js +99 -0
- package/devices/hornbach.js.map +1 -0
- package/devices/hzc_electric.d.ts +4 -0
- package/devices/hzc_electric.d.ts.map +1 -0
- package/devices/hzc_electric.js +94 -0
- package/devices/hzc_electric.js.map +1 -0
- package/devices/icasa.d.ts +4 -0
- package/devices/icasa.d.ts.map +1 -0
- package/devices/icasa.js +167 -0
- package/devices/icasa.js.map +1 -0
- package/devices/idinio.d.ts +4 -0
- package/devices/idinio.d.ts.map +1 -0
- package/devices/idinio.js +15 -0
- package/devices/idinio.js.map +1 -0
- package/devices/ihorn.d.ts +4 -0
- package/devices/ihorn.d.ts.map +1 -0
- package/devices/ihorn.js +109 -0
- package/devices/ihorn.js.map +1 -0
- package/devices/ikea.d.ts +4 -0
- package/devices/ikea.d.ts.map +1 -0
- package/devices/ikea.js +927 -0
- package/devices/ikea.js.map +1 -0
- package/devices/ilightsin.d.ts +4 -0
- package/devices/ilightsin.d.ts.map +1 -0
- package/devices/ilightsin.js +15 -0
- package/devices/ilightsin.js.map +1 -0
- package/devices/iluminize.d.ts +4 -0
- package/devices/iluminize.d.ts.map +1 -0
- package/devices/iluminize.js +376 -0
- package/devices/iluminize.js.map +1 -0
- package/devices/ilux.d.ts +4 -0
- package/devices/ilux.d.ts.map +1 -0
- package/devices/ilux.js +15 -0
- package/devices/ilux.js.map +1 -0
- package/devices/imhotepcreation.d.ts +4 -0
- package/devices/imhotepcreation.d.ts.map +1 -0
- package/devices/imhotepcreation.js +251 -0
- package/devices/imhotepcreation.js.map +1 -0
- package/devices/immax.d.ts +4 -0
- package/devices/immax.d.ts.map +1 -0
- package/devices/immax.js +304 -0
- package/devices/immax.js.map +1 -0
- package/devices/imou.d.ts +4 -0
- package/devices/imou.d.ts.map +1 -0
- package/devices/imou.js +28 -0
- package/devices/imou.js.map +1 -0
- package/devices/index.d.ts +13 -0
- package/devices/index.d.ts.map +1 -0
- package/devices/index.js +642 -0
- package/devices/index.js.map +1 -0
- package/devices/innr.d.ts +4 -0
- package/devices/innr.d.ts.map +1 -0
- package/devices/innr.js +878 -0
- package/devices/innr.js.map +1 -0
- package/devices/inovelli.d.ts +4 -0
- package/devices/inovelli.d.ts.map +1 -0
- package/devices/inovelli.js +1977 -0
- package/devices/inovelli.js.map +1 -0
- package/devices/insta.d.ts +4 -0
- package/devices/insta.d.ts.map +1 -0
- package/devices/insta.js +186 -0
- package/devices/insta.js.map +1 -0
- package/devices/iolloi.d.ts +4 -0
- package/devices/iolloi.d.ts.map +1 -0
- package/devices/iolloi.js +16 -0
- package/devices/iolloi.js.map +1 -0
- package/devices/iotperfect.d.ts +4 -0
- package/devices/iotperfect.d.ts.map +1 -0
- package/devices/iotperfect.js +62 -0
- package/devices/iotperfect.js.map +1 -0
- package/devices/iris.d.ts +4 -0
- package/devices/iris.d.ts.map +1 -0
- package/devices/iris.js +211 -0
- package/devices/iris.js.map +1 -0
- package/devices/istar.d.ts +4 -0
- package/devices/istar.d.ts.map +1 -0
- package/devices/istar.js +22 -0
- package/devices/istar.js.map +1 -0
- package/devices/jasco.d.ts +4 -0
- package/devices/jasco.d.ts.map +1 -0
- package/devices/jasco.js +34 -0
- package/devices/jasco.js.map +1 -0
- package/devices/javis.d.ts +4 -0
- package/devices/javis.d.ts.map +1 -0
- package/devices/javis.js +84 -0
- package/devices/javis.js.map +1 -0
- package/devices/jethome.d.ts +4 -0
- package/devices/jethome.d.ts.map +1 -0
- package/devices/jethome.js +124 -0
- package/devices/jethome.js.map +1 -0
- package/devices/jiawen.d.ts +4 -0
- package/devices/jiawen.d.ts.map +1 -0
- package/devices/jiawen.js +22 -0
- package/devices/jiawen.js.map +1 -0
- package/devices/jumitech.d.ts +4 -0
- package/devices/jumitech.d.ts.map +1 -0
- package/devices/jumitech.js +15 -0
- package/devices/jumitech.js.map +1 -0
- package/devices/jxuan.d.ts +4 -0
- package/devices/jxuan.d.ts.map +1 -0
- package/devices/jxuan.js +89 -0
- package/devices/jxuan.js.map +1 -0
- package/devices/kami.d.ts +4 -0
- package/devices/kami.d.ts.map +1 -0
- package/devices/kami.js +55 -0
- package/devices/kami.js.map +1 -0
- package/devices/keen_home.d.ts +4 -0
- package/devices/keen_home.d.ts.map +1 -0
- package/devices/keen_home.js +160 -0
- package/devices/keen_home.js.map +1 -0
- package/devices/klikaanklikuit.d.ts +4 -0
- package/devices/klikaanklikuit.d.ts.map +1 -0
- package/devices/klikaanklikuit.js +22 -0
- package/devices/klikaanklikuit.js.map +1 -0
- package/devices/kmpcil.d.ts +4 -0
- package/devices/kmpcil.d.ts.map +1 -0
- package/devices/kmpcil.js +219 -0
- package/devices/kmpcil.js.map +1 -0
- package/devices/konke.d.ts +4 -0
- package/devices/konke.d.ts.map +1 -0
- package/devices/konke.js +210 -0
- package/devices/konke.js.map +1 -0
- package/devices/ksentry.d.ts +4 -0
- package/devices/ksentry.d.ts.map +1 -0
- package/devices/ksentry.js +15 -0
- package/devices/ksentry.js.map +1 -0
- package/devices/kurvia.d.ts +4 -0
- package/devices/kurvia.d.ts.map +1 -0
- package/devices/kurvia.js +20 -0
- package/devices/kurvia.js.map +1 -0
- package/devices/kwikset.d.ts +4 -0
- package/devices/kwikset.d.ts.map +1 -0
- package/devices/kwikset.js +157 -0
- package/devices/kwikset.js.map +1 -0
- package/devices/lanesto.d.ts +4 -0
- package/devices/lanesto.d.ts.map +1 -0
- package/devices/lanesto.js +15 -0
- package/devices/lanesto.js.map +1 -0
- package/devices/lds.d.ts +4 -0
- package/devices/lds.d.ts.map +1 -0
- package/devices/lds.js +15 -0
- package/devices/lds.js.map +1 -0
- package/devices/led_trading.d.ts +4 -0
- package/devices/led_trading.d.ts.map +1 -0
- package/devices/led_trading.js +112 -0
- package/devices/led_trading.js.map +1 -0
- package/devices/ledvance.d.ts +4 -0
- package/devices/ledvance.d.ts.map +1 -0
- package/devices/ledvance.js +337 -0
- package/devices/ledvance.js.map +1 -0
- package/devices/leedarson.d.ts +4 -0
- package/devices/leedarson.d.ts.map +1 -0
- package/devices/leedarson.js +182 -0
- package/devices/leedarson.js.map +1 -0
- package/devices/legrand.d.ts +4 -0
- package/devices/legrand.d.ts.map +1 -0
- package/devices/legrand.js +740 -0
- package/devices/legrand.js.map +1 -0
- package/devices/lellki.d.ts +4 -0
- package/devices/lellki.d.ts.map +1 -0
- package/devices/lellki.js +169 -0
- package/devices/lellki.js.map +1 -0
- package/devices/letsled.d.ts +4 -0
- package/devices/letsled.d.ts.map +1 -0
- package/devices/letsled.js +15 -0
- package/devices/letsled.js.map +1 -0
- package/devices/letv.d.ts +4 -0
- package/devices/letv.d.ts.map +1 -0
- package/devices/letv.js +90 -0
- package/devices/letv.js.map +1 -0
- package/devices/leviton.d.ts +4 -0
- package/devices/leviton.d.ts.map +1 -0
- package/devices/leviton.js +164 -0
- package/devices/leviton.js.map +1 -0
- package/devices/lg.d.ts +4 -0
- package/devices/lg.d.ts.map +1 -0
- package/devices/lg.js +29 -0
- package/devices/lg.js.map +1 -0
- package/devices/lidl.d.ts +4 -0
- package/devices/lidl.d.ts.map +1 -0
- package/devices/lidl.js +674 -0
- package/devices/lidl.js.map +1 -0
- package/devices/lifecontrol.d.ts +4 -0
- package/devices/lifecontrol.d.ts.map +1 -0
- package/devices/lifecontrol.js +149 -0
- package/devices/lifecontrol.js.map +1 -0
- package/devices/lightsolutions.d.ts +4 -0
- package/devices/lightsolutions.d.ts.map +1 -0
- package/devices/lightsolutions.js +36 -0
- package/devices/lightsolutions.js.map +1 -0
- package/devices/linkind.d.ts +4 -0
- package/devices/linkind.d.ts.map +1 -0
- package/devices/linkind.js +275 -0
- package/devices/linkind.js.map +1 -0
- package/devices/linptech.d.ts +4 -0
- package/devices/linptech.d.ts.map +1 -0
- package/devices/linptech.js +159 -0
- package/devices/linptech.js.map +1 -0
- package/devices/livingwise.d.ts +4 -0
- package/devices/livingwise.d.ts.map +1 -0
- package/devices/livingwise.js +119 -0
- package/devices/livingwise.js.map +1 -0
- package/devices/livolo.d.ts +4 -0
- package/devices/livolo.d.ts.map +1 -0
- package/devices/livolo.js +422 -0
- package/devices/livolo.js.map +1 -0
- package/devices/lixee.d.ts +4 -0
- package/devices/lixee.d.ts.map +1 -0
- package/devices/lixee.js +1926 -0
- package/devices/lixee.js.map +1 -0
- package/devices/lonsonho.d.ts +4 -0
- package/devices/lonsonho.d.ts.map +1 -0
- package/devices/lonsonho.js +303 -0
- package/devices/lonsonho.js.map +1 -0
- package/devices/ls.d.ts +4 -0
- package/devices/ls.d.ts.map +1 -0
- package/devices/ls.js +68 -0
- package/devices/ls.js.map +1 -0
- package/devices/lubeez.d.ts +4 -0
- package/devices/lubeez.d.ts.map +1 -0
- package/devices/lubeez.js +15 -0
- package/devices/lubeez.js.map +1 -0
- package/devices/lumi.d.ts +4 -0
- package/devices/lumi.d.ts.map +1 -0
- package/devices/lumi.js +4387 -0
- package/devices/lumi.js.map +1 -0
- package/devices/lupus.d.ts +4 -0
- package/devices/lupus.d.ts.map +1 -0
- package/devices/lupus.js +98 -0
- package/devices/lupus.js.map +1 -0
- package/devices/lutron.d.ts +4 -0
- package/devices/lutron.d.ts.map +1 -0
- package/devices/lutron.js +71 -0
- package/devices/lutron.js.map +1 -0
- package/devices/lux.d.ts +4 -0
- package/devices/lux.d.ts.map +1 -0
- package/devices/lux.js +91 -0
- package/devices/lux.js.map +1 -0
- package/devices/lytko.d.ts +4 -0
- package/devices/lytko.d.ts.map +1 -0
- package/devices/lytko.js +788 -0
- package/devices/lytko.js.map +1 -0
- package/devices/m_elec.d.ts +4 -0
- package/devices/m_elec.d.ts.map +1 -0
- package/devices/m_elec.js +36 -0
- package/devices/m_elec.js.map +1 -0
- package/devices/makegood.d.ts +4 -0
- package/devices/makegood.d.ts.map +1 -0
- package/devices/makegood.js +66 -0
- package/devices/makegood.js.map +1 -0
- package/devices/matcall_bv.d.ts +4 -0
- package/devices/matcall_bv.d.ts.map +1 -0
- package/devices/matcall_bv.js +22 -0
- package/devices/matcall_bv.js.map +1 -0
- package/devices/mazda.d.ts +4 -0
- package/devices/mazda.d.ts.map +1 -0
- package/devices/mazda.js +174 -0
- package/devices/mazda.js.map +1 -0
- package/devices/meazon.d.ts +4 -0
- package/devices/meazon.d.ts.map +1 -0
- package/devices/meazon.js +99 -0
- package/devices/meazon.js.map +1 -0
- package/devices/mercator.d.ts +4 -0
- package/devices/mercator.d.ts.map +1 -0
- package/devices/mercator.js +256 -0
- package/devices/mercator.js.map +1 -0
- package/devices/miboxer.d.ts +4 -0
- package/devices/miboxer.d.ts.map +1 -0
- package/devices/miboxer.js +93 -0
- package/devices/miboxer.js.map +1 -0
- package/devices/micromatic.d.ts +4 -0
- package/devices/micromatic.d.ts.map +1 -0
- package/devices/micromatic.js +15 -0
- package/devices/micromatic.js.map +1 -0
- package/devices/modular.d.ts +4 -0
- package/devices/modular.d.ts.map +1 -0
- package/devices/modular.js +15 -0
- package/devices/modular.js.map +1 -0
- package/devices/moes.d.ts +4 -0
- package/devices/moes.d.ts.map +1 -0
- package/devices/moes.js +654 -0
- package/devices/moes.js.map +1 -0
- package/devices/muller_licht.d.ts +4 -0
- package/devices/muller_licht.d.ts.map +1 -0
- package/devices/muller_licht.js +341 -0
- package/devices/muller_licht.js.map +1 -0
- package/devices/multiterm.d.ts +4 -0
- package/devices/multiterm.d.ts.map +1 -0
- package/devices/multiterm.js +123 -0
- package/devices/multiterm.js.map +1 -0
- package/devices/namron.d.ts +4 -0
- package/devices/namron.d.ts.map +1 -0
- package/devices/namron.js +1464 -0
- package/devices/namron.js.map +1 -0
- package/devices/nanoleaf.d.ts +4 -0
- package/devices/nanoleaf.d.ts.map +1 -0
- package/devices/nanoleaf.js +15 -0
- package/devices/nanoleaf.js.map +1 -0
- package/devices/nedis.d.ts +4 -0
- package/devices/nedis.d.ts.map +1 -0
- package/devices/nedis.js +88 -0
- package/devices/nedis.js.map +1 -0
- package/devices/neo.d.ts +4 -0
- package/devices/neo.d.ts.map +1 -0
- package/devices/neo.js +558 -0
- package/devices/neo.js.map +1 -0
- package/devices/net2grid.d.ts +4 -0
- package/devices/net2grid.d.ts.map +1 -0
- package/devices/net2grid.js +68 -0
- package/devices/net2grid.js.map +1 -0
- package/devices/netvox.d.ts +4 -0
- package/devices/netvox.d.ts.map +1 -0
- package/devices/netvox.js +75 -0
- package/devices/netvox.js.map +1 -0
- package/devices/nexelec.d.ts +4 -0
- package/devices/nexelec.d.ts.map +1 -0
- package/devices/nexelec.js +15 -0
- package/devices/nexelec.js.map +1 -0
- package/devices/niko.d.ts +4 -0
- package/devices/niko.d.ts.map +1 -0
- package/devices/niko.js +495 -0
- package/devices/niko.js.map +1 -0
- package/devices/ninja_blocks.d.ts +4 -0
- package/devices/ninja_blocks.d.ts.map +1 -0
- package/devices/ninja_blocks.js +64 -0
- package/devices/ninja_blocks.js.map +1 -0
- package/devices/niviss.d.ts +4 -0
- package/devices/niviss.d.ts.map +1 -0
- package/devices/niviss.js +15 -0
- package/devices/niviss.js.map +1 -0
- package/devices/nodon.d.ts +4 -0
- package/devices/nodon.d.ts.map +1 -0
- package/devices/nodon.js +386 -0
- package/devices/nodon.js.map +1 -0
- package/devices/nordtronic.d.ts +4 -0
- package/devices/nordtronic.d.ts.map +1 -0
- package/devices/nordtronic.js +41 -0
- package/devices/nordtronic.js.map +1 -0
- package/devices/nous.d.ts +4 -0
- package/devices/nous.d.ts.map +1 -0
- package/devices/nous.js +151 -0
- package/devices/nous.js.map +1 -0
- package/devices/novo.d.ts +4 -0
- package/devices/novo.d.ts.map +1 -0
- package/devices/novo.js +57 -0
- package/devices/novo.js.map +1 -0
- package/devices/nue_3a.d.ts +4 -0
- package/devices/nue_3a.d.ts.map +1 -0
- package/devices/nue_3a.js +361 -0
- package/devices/nue_3a.js.map +1 -0
- package/devices/nyce.d.ts +4 -0
- package/devices/nyce.d.ts.map +1 -0
- package/devices/nyce.js +134 -0
- package/devices/nyce.js.map +1 -0
- package/devices/onenuo.d.ts +4 -0
- package/devices/onenuo.d.ts.map +1 -0
- package/devices/onenuo.js +86 -0
- package/devices/onenuo.js.map +1 -0
- package/devices/onesti.d.ts +4 -0
- package/devices/onesti.d.ts.map +1 -0
- package/devices/onesti.js +208 -0
- package/devices/onesti.js.map +1 -0
- package/devices/openlumi.d.ts +4 -0
- package/devices/openlumi.d.ts.map +1 -0
- package/devices/openlumi.js +62 -0
- package/devices/openlumi.js.map +1 -0
- package/devices/orvibo.d.ts +4 -0
- package/devices/orvibo.d.ts.map +1 -0
- package/devices/orvibo.js +391 -0
- package/devices/orvibo.js.map +1 -0
- package/devices/osram.d.ts +4 -0
- package/devices/osram.d.ts.map +1 -0
- package/devices/osram.js +516 -0
- package/devices/osram.js.map +1 -0
- package/devices/oujiabao.d.ts +4 -0
- package/devices/oujiabao.d.ts.map +1 -0
- package/devices/oujiabao.js +55 -0
- package/devices/oujiabao.js.map +1 -0
- package/devices/owon.d.ts +4 -0
- package/devices/owon.d.ts.map +1 -0
- package/devices/owon.js +478 -0
- package/devices/owon.js.map +1 -0
- package/devices/ozsmartthings.d.ts +4 -0
- package/devices/ozsmartthings.d.ts.map +1 -0
- package/devices/ozsmartthings.js +48 -0
- package/devices/ozsmartthings.js.map +1 -0
- package/devices/paul_neuhaus.d.ts +4 -0
- package/devices/paul_neuhaus.d.ts.map +1 -0
- package/devices/paul_neuhaus.js +194 -0
- package/devices/paul_neuhaus.js.map +1 -0
- package/devices/paulmann.d.ts +4 -0
- package/devices/paulmann.d.ts.map +1 -0
- package/devices/paulmann.js +330 -0
- package/devices/paulmann.js.map +1 -0
- package/devices/peq.d.ts +4 -0
- package/devices/peq.d.ts.map +1 -0
- package/devices/peq.js +64 -0
- package/devices/peq.js.map +1 -0
- package/devices/perenio.d.ts +4 -0
- package/devices/perenio.d.ts.map +1 -0
- package/devices/perenio.js +468 -0
- package/devices/perenio.js.map +1 -0
- package/devices/philio.d.ts +4 -0
- package/devices/philio.d.ts.map +1 -0
- package/devices/philio.js +16 -0
- package/devices/philio.js.map +1 -0
- package/devices/philips.d.ts +4 -0
- package/devices/philips.d.ts.map +1 -0
- package/devices/philips.js +4051 -0
- package/devices/philips.js.map +1 -0
- package/devices/plaid.d.ts +4 -0
- package/devices/plaid.d.ts.map +1 -0
- package/devices/plaid.js +65 -0
- package/devices/plaid.js.map +1 -0
- package/devices/plugwise.d.ts +4 -0
- package/devices/plugwise.d.ts.map +1 -0
- package/devices/plugwise.js +210 -0
- package/devices/plugwise.js.map +1 -0
- package/devices/profalux.d.ts +4 -0
- package/devices/profalux.d.ts.map +1 -0
- package/devices/profalux.js +191 -0
- package/devices/profalux.js.map +1 -0
- package/devices/prolight.d.ts +4 -0
- package/devices/prolight.d.ts.map +1 -0
- package/devices/prolight.js +115 -0
- package/devices/prolight.js.map +1 -0
- package/devices/pushok.d.ts +4 -0
- package/devices/pushok.d.ts.map +1 -0
- package/devices/pushok.js +300 -0
- package/devices/pushok.js.map +1 -0
- package/devices/qa.d.ts +4 -0
- package/devices/qa.d.ts.map +1 -0
- package/devices/qa.js +295 -0
- package/devices/qa.js.map +1 -0
- package/devices/qmotion.d.ts +4 -0
- package/devices/qmotion.d.ts.map +1 -0
- package/devices/qmotion.js +73 -0
- package/devices/qmotion.js.map +1 -0
- package/devices/qoto.d.ts +4 -0
- package/devices/qoto.d.ts.map +1 -0
- package/devices/qoto.js +87 -0
- package/devices/qoto.js.map +1 -0
- package/devices/quotra.d.ts +4 -0
- package/devices/quotra.d.ts.map +1 -0
- package/devices/quotra.js +22 -0
- package/devices/quotra.js.map +1 -0
- package/devices/rademacher.d.ts +4 -0
- package/devices/rademacher.d.ts.map +1 -0
- package/devices/rademacher.js +29 -0
- package/devices/rademacher.js.map +1 -0
- package/devices/radium.d.ts +4 -0
- package/devices/radium.d.ts.map +1 -0
- package/devices/radium.js +15 -0
- package/devices/radium.js.map +1 -0
- package/devices/raex.d.ts +4 -0
- package/devices/raex.d.ts.map +1 -0
- package/devices/raex.js +15 -0
- package/devices/raex.js.map +1 -0
- package/devices/rgb_genie.d.ts +4 -0
- package/devices/rgb_genie.d.ts.map +1 -0
- package/devices/rgb_genie.js +279 -0
- package/devices/rgb_genie.js.map +1 -0
- package/devices/robb.d.ts +4 -0
- package/devices/robb.d.ts.map +1 -0
- package/devices/robb.js +449 -0
- package/devices/robb.js.map +1 -0
- package/devices/roome.d.ts +4 -0
- package/devices/roome.d.ts.map +1 -0
- package/devices/roome.js +55 -0
- package/devices/roome.js.map +1 -0
- package/devices/rtx.d.ts +4 -0
- package/devices/rtx.d.ts.map +1 -0
- package/devices/rtx.js +151 -0
- package/devices/rtx.js.map +1 -0
- package/devices/salus_controls.d.ts +4 -0
- package/devices/salus_controls.d.ts.map +1 -0
- package/devices/salus_controls.js +136 -0
- package/devices/salus_controls.js.map +1 -0
- package/devices/samotech.d.ts +4 -0
- package/devices/samotech.d.ts.map +1 -0
- package/devices/samotech.js +75 -0
- package/devices/samotech.js.map +1 -0
- package/devices/saswell.d.ts +4 -0
- package/devices/saswell.d.ts.map +1 -0
- package/devices/saswell.js +125 -0
- package/devices/saswell.js.map +1 -0
- package/devices/sber.d.ts +4 -0
- package/devices/sber.d.ts.map +1 -0
- package/devices/sber.js +66 -0
- package/devices/sber.js.map +1 -0
- package/devices/scanproducts.d.ts +4 -0
- package/devices/scanproducts.d.ts.map +1 -0
- package/devices/scanproducts.js +22 -0
- package/devices/scanproducts.js.map +1 -0
- package/devices/schlage.d.ts +4 -0
- package/devices/schlage.d.ts.map +1 -0
- package/devices/schlage.js +64 -0
- package/devices/schlage.js.map +1 -0
- package/devices/schneider_electric.d.ts +4 -0
- package/devices/schneider_electric.d.ts.map +1 -0
- package/devices/schneider_electric.js +2187 -0
- package/devices/schneider_electric.js.map +1 -0
- package/devices/schwaiger.d.ts +4 -0
- package/devices/schwaiger.d.ts.map +1 -0
- package/devices/schwaiger.js +109 -0
- package/devices/schwaiger.js.map +1 -0
- package/devices/seastar_intelligence.d.ts +4 -0
- package/devices/seastar_intelligence.d.ts.map +1 -0
- package/devices/seastar_intelligence.js +20 -0
- package/devices/seastar_intelligence.js.map +1 -0
- package/devices/securifi.d.ts +4 -0
- package/devices/securifi.d.ts.map +1 -0
- package/devices/securifi.js +83 -0
- package/devices/securifi.js.map +1 -0
- package/devices/sengled.d.ts +7 -0
- package/devices/sengled.d.ts.map +1 -0
- package/devices/sengled.js +358 -0
- package/devices/sengled.js.map +1 -0
- package/devices/sercomm.d.ts +4 -0
- package/devices/sercomm.d.ts.map +1 -0
- package/devices/sercomm.js +189 -0
- package/devices/sercomm.js.map +1 -0
- package/devices/shade_control.d.ts +4 -0
- package/devices/shade_control.d.ts.map +1 -0
- package/devices/shade_control.js +65 -0
- package/devices/shade_control.js.map +1 -0
- package/devices/shenzhen_homa.d.ts +4 -0
- package/devices/shenzhen_homa.d.ts.map +1 -0
- package/devices/shenzhen_homa.js +111 -0
- package/devices/shenzhen_homa.js.map +1 -0
- package/devices/shinasystem.d.ts +4 -0
- package/devices/shinasystem.d.ts.map +1 -0
- package/devices/shinasystem.js +961 -0
- package/devices/shinasystem.js.map +1 -0
- package/devices/shyugj.d.ts +4 -0
- package/devices/shyugj.d.ts.map +1 -0
- package/devices/shyugj.js +21 -0
- package/devices/shyugj.js.map +1 -0
- package/devices/siglis.d.ts +4 -0
- package/devices/siglis.d.ts.map +1 -0
- package/devices/siglis.js +457 -0
- package/devices/siglis.js.map +1 -0
- package/devices/sikom.d.ts +4 -0
- package/devices/sikom.d.ts.map +1 -0
- package/devices/sikom.js +68 -0
- package/devices/sikom.js.map +1 -0
- package/devices/sinope.d.ts +4 -0
- package/devices/sinope.d.ts.map +1 -0
- package/devices/sinope.js +1755 -0
- package/devices/sinope.js.map +1 -0
- package/devices/siterwell.d.ts +4 -0
- package/devices/siterwell.d.ts.map +1 -0
- package/devices/siterwell.js +111 -0
- package/devices/siterwell.js.map +1 -0
- package/devices/skydance.d.ts +4 -0
- package/devices/skydance.d.ts.map +1 -0
- package/devices/skydance.js +156 -0
- package/devices/skydance.js.map +1 -0
- package/devices/slv.d.ts +4 -0
- package/devices/slv.d.ts.map +1 -0
- package/devices/slv.js +38 -0
- package/devices/slv.js.map +1 -0
- package/devices/smart9.d.ts +4 -0
- package/devices/smart9.d.ts.map +1 -0
- package/devices/smart9.js +67 -0
- package/devices/smart9.js.map +1 -0
- package/devices/smart_home_pty.d.ts +4 -0
- package/devices/smart_home_pty.d.ts.map +1 -0
- package/devices/smart_home_pty.js +22 -0
- package/devices/smart_home_pty.js.map +1 -0
- package/devices/smartenit.d.ts +4 -0
- package/devices/smartenit.d.ts.map +1 -0
- package/devices/smartenit.js +81 -0
- package/devices/smartenit.js.map +1 -0
- package/devices/smartthings.d.ts +4 -0
- package/devices/smartthings.d.ts.map +1 -0
- package/devices/smartthings.js +527 -0
- package/devices/smartthings.js.map +1 -0
- package/devices/smartwings.d.ts +4 -0
- package/devices/smartwings.d.ts.map +1 -0
- package/devices/smartwings.js +64 -0
- package/devices/smartwings.js.map +1 -0
- package/devices/smlight.d.ts +4 -0
- package/devices/smlight.d.ts.map +1 -0
- package/devices/smlight.js +22 -0
- package/devices/smlight.js.map +1 -0
- package/devices/sohan_electric.d.ts +4 -0
- package/devices/sohan_electric.d.ts.map +1 -0
- package/devices/sohan_electric.js +20 -0
- package/devices/sohan_electric.js.map +1 -0
- package/devices/solaredge.d.ts +4 -0
- package/devices/solaredge.d.ts.map +1 -0
- package/devices/solaredge.js +15 -0
- package/devices/solaredge.js.map +1 -0
- package/devices/soma.d.ts +4 -0
- package/devices/soma.d.ts.map +1 -0
- package/devices/soma.js +15 -0
- package/devices/soma.js.map +1 -0
- package/devices/somfy.d.ts +4 -0
- package/devices/somfy.d.ts.map +1 -0
- package/devices/somfy.js +88 -0
- package/devices/somfy.js.map +1 -0
- package/devices/somgoms.d.ts +4 -0
- package/devices/somgoms.d.ts.map +1 -0
- package/devices/somgoms.js +84 -0
- package/devices/somgoms.js.map +1 -0
- package/devices/sonoff.d.ts +4 -0
- package/devices/sonoff.d.ts.map +1 -0
- package/devices/sonoff.js +1452 -0
- package/devices/sonoff.js.map +1 -0
- package/devices/sowilo.d.ts +4 -0
- package/devices/sowilo.d.ts.map +1 -0
- package/devices/sowilo.js +15 -0
- package/devices/sowilo.js.map +1 -0
- package/devices/spotmau.d.ts +4 -0
- package/devices/spotmau.d.ts.map +1 -0
- package/devices/spotmau.js +42 -0
- package/devices/spotmau.js.map +1 -0
- package/devices/stelpro.d.ts +4 -0
- package/devices/stelpro.d.ts.map +1 -0
- package/devices/stelpro.js +366 -0
- package/devices/stelpro.js.map +1 -0
- package/devices/sunricher.d.ts +4 -0
- package/devices/sunricher.d.ts.map +1 -0
- package/devices/sunricher.js +1308 -0
- package/devices/sunricher.js.map +1 -0
- package/devices/swann.d.ts +4 -0
- package/devices/swann.d.ts.map +1 -0
- package/devices/swann.js +73 -0
- package/devices/swann.js.map +1 -0
- package/devices/sylvania.d.ts +4 -0
- package/devices/sylvania.d.ts.map +1 -0
- package/devices/sylvania.js +226 -0
- package/devices/sylvania.js.map +1 -0
- package/devices/tapestry.d.ts +4 -0
- package/devices/tapestry.d.ts.map +1 -0
- package/devices/tapestry.js +56 -0
- package/devices/tapestry.js.map +1 -0
- package/devices/tci.d.ts +4 -0
- package/devices/tci.d.ts.map +1 -0
- package/devices/tci.js +29 -0
- package/devices/tci.js.map +1 -0
- package/devices/tech.d.ts +4 -0
- package/devices/tech.d.ts.map +1 -0
- package/devices/tech.js +131 -0
- package/devices/tech.js.map +1 -0
- package/devices/technicolor.d.ts +4 -0
- package/devices/technicolor.d.ts.map +1 -0
- package/devices/technicolor.js +102 -0
- package/devices/technicolor.js.map +1 -0
- package/devices/terncy.d.ts +4 -0
- package/devices/terncy.d.ts.map +1 -0
- package/devices/terncy.js +116 -0
- package/devices/terncy.js.map +1 -0
- package/devices/the_light_group.d.ts +4 -0
- package/devices/the_light_group.d.ts.map +1 -0
- package/devices/the_light_group.js +130 -0
- package/devices/the_light_group.js.map +1 -0
- package/devices/third_reality.d.ts +4 -0
- package/devices/third_reality.d.ts.map +1 -0
- package/devices/third_reality.js +569 -0
- package/devices/third_reality.js.map +1 -0
- package/devices/titan_products.d.ts +4 -0
- package/devices/titan_products.d.ts.map +1 -0
- package/devices/titan_products.js +62 -0
- package/devices/titan_products.js.map +1 -0
- package/devices/tlwglobal.d.ts +4 -0
- package/devices/tlwglobal.d.ts.map +1 -0
- package/devices/tlwglobal.js +32 -0
- package/devices/tlwglobal.js.map +1 -0
- package/devices/tplink.d.ts +4 -0
- package/devices/tplink.d.ts.map +1 -0
- package/devices/tplink.js +82 -0
- package/devices/tplink.js.map +1 -0
- package/devices/trust.d.ts +4 -0
- package/devices/trust.d.ts.map +1 -0
- package/devices/trust.js +183 -0
- package/devices/trust.js.map +1 -0
- package/devices/tubeszb.d.ts +4 -0
- package/devices/tubeszb.d.ts.map +1 -0
- package/devices/tubeszb.js +60 -0
- package/devices/tubeszb.js.map +1 -0
- package/devices/tuya.d.ts +4 -0
- package/devices/tuya.d.ts.map +1 -0
- package/devices/tuya.js +13607 -0
- package/devices/tuya.js.map +1 -0
- package/devices/ubisys.d.ts +4 -0
- package/devices/ubisys.d.ts.map +1 -0
- package/devices/ubisys.js +1300 -0
- package/devices/ubisys.js.map +1 -0
- package/devices/uhome.d.ts +4 -0
- package/devices/uhome.d.ts.map +1 -0
- package/devices/uhome.js +64 -0
- package/devices/uhome.js.map +1 -0
- package/devices/universal_electronics_inc.d.ts +4 -0
- package/devices/universal_electronics_inc.d.ts.map +1 -0
- package/devices/universal_electronics_inc.js +186 -0
- package/devices/universal_electronics_inc.js.map +1 -0
- package/devices/vbled.d.ts +4 -0
- package/devices/vbled.d.ts.map +1 -0
- package/devices/vbled.js +15 -0
- package/devices/vbled.js.map +1 -0
- package/devices/vesternet.d.ts +4 -0
- package/devices/vesternet.d.ts.map +1 -0
- package/devices/vesternet.js +330 -0
- package/devices/vesternet.js.map +1 -0
- package/devices/viessmann.d.ts +4 -0
- package/devices/viessmann.d.ts.map +1 -0
- package/devices/viessmann.js +115 -0
- package/devices/viessmann.js.map +1 -0
- package/devices/villeroy_boch.d.ts +4 -0
- package/devices/villeroy_boch.d.ts.map +1 -0
- package/devices/villeroy_boch.js +22 -0
- package/devices/villeroy_boch.js.map +1 -0
- package/devices/vimar.d.ts +4 -0
- package/devices/vimar.d.ts.map +1 -0
- package/devices/vimar.js +137 -0
- package/devices/vimar.js.map +1 -0
- package/devices/visonic.d.ts +4 -0
- package/devices/visonic.d.ts.map +1 -0
- package/devices/visonic.js +138 -0
- package/devices/visonic.js.map +1 -0
- package/devices/vrey.d.ts +4 -0
- package/devices/vrey.d.ts.map +1 -0
- package/devices/vrey.js +18 -0
- package/devices/vrey.js.map +1 -0
- package/devices/wally.d.ts +4 -0
- package/devices/wally.d.ts.map +1 -0
- package/devices/wally.js +64 -0
- package/devices/wally.js.map +1 -0
- package/devices/waxman.d.ts +4 -0
- package/devices/waxman.d.ts.map +1 -0
- package/devices/waxman.js +85 -0
- package/devices/waxman.js.map +1 -0
- package/devices/weiser.d.ts +4 -0
- package/devices/weiser.d.ts.map +1 -0
- package/devices/weiser.js +103 -0
- package/devices/weiser.js.map +1 -0
- package/devices/weten.d.ts +4 -0
- package/devices/weten.d.ts.map +1 -0
- package/devices/weten.js +89 -0
- package/devices/weten.js.map +1 -0
- package/devices/wirenboard.d.ts +4 -0
- package/devices/wirenboard.d.ts.map +1 -0
- package/devices/wirenboard.js +626 -0
- package/devices/wirenboard.js.map +1 -0
- package/devices/wisdom.d.ts +4 -0
- package/devices/wisdom.d.ts.map +1 -0
- package/devices/wisdom.js +15 -0
- package/devices/wisdom.js.map +1 -0
- package/devices/woolley.d.ts +4 -0
- package/devices/woolley.d.ts.map +1 -0
- package/devices/woolley.js +88 -0
- package/devices/woolley.js.map +1 -0
- package/devices/woox.d.ts +4 -0
- package/devices/woox.d.ts.map +1 -0
- package/devices/woox.js +137 -0
- package/devices/woox.js.map +1 -0
- package/devices/wyze.d.ts +4 -0
- package/devices/wyze.d.ts.map +1 -0
- package/devices/wyze.js +63 -0
- package/devices/wyze.js.map +1 -0
- package/devices/xinghuoyuan.d.ts +4 -0
- package/devices/xinghuoyuan.d.ts.map +1 -0
- package/devices/xinghuoyuan.js +15 -0
- package/devices/xinghuoyuan.js.map +1 -0
- package/devices/xyzroe.d.ts +4 -0
- package/devices/xyzroe.d.ts.map +1 -0
- package/devices/xyzroe.js +519 -0
- package/devices/xyzroe.js.map +1 -0
- package/devices/yale.d.ts +4 -0
- package/devices/yale.d.ts.map +1 -0
- package/devices/yale.js +503 -0
- package/devices/yale.js.map +1 -0
- package/devices/yandex.d.ts +4 -0
- package/devices/yandex.d.ts.map +1 -0
- package/devices/yandex.js +410 -0
- package/devices/yandex.js.map +1 -0
- package/devices/ynoa.d.ts +4 -0
- package/devices/ynoa.d.ts.map +1 -0
- package/devices/ynoa.js +113 -0
- package/devices/ynoa.js.map +1 -0
- package/devices/yookee.d.ts +4 -0
- package/devices/yookee.d.ts.map +1 -0
- package/devices/yookee.js +63 -0
- package/devices/yookee.js.map +1 -0
- package/devices/ysrsai.d.ts +4 -0
- package/devices/ysrsai.d.ts.map +1 -0
- package/devices/ysrsai.js +66 -0
- package/devices/ysrsai.js.map +1 -0
- package/devices/zemismart.d.ts +4 -0
- package/devices/zemismart.d.ts.map +1 -0
- package/devices/zemismart.js +405 -0
- package/devices/zemismart.js.map +1 -0
- package/devices/zen.d.ts +4 -0
- package/devices/zen.d.ts.map +1 -0
- package/devices/zen.js +96 -0
- package/devices/zen.js.map +1 -0
- package/devices/zigbeetlc.d.ts +13 -0
- package/devices/zigbeetlc.d.ts.map +1 -0
- package/devices/zigbeetlc.js +201 -0
- package/devices/zigbeetlc.js.map +1 -0
- package/devices/zipato.d.ts +4 -0
- package/devices/zipato.d.ts.map +1 -0
- package/devices/zipato.js +15 -0
- package/devices/zipato.js.map +1 -0
- package/index.d.ts +21 -0
- package/index.d.ts.map +1 -0
- package/index.js +488 -0
- package/index.js.map +1 -0
- package/lib/color.d.ts +272 -0
- package/lib/color.d.ts.map +1 -0
- package/lib/color.js +765 -0
- package/lib/color.js.map +1 -0
- package/lib/configureKey.d.ts +3 -0
- package/lib/configureKey.d.ts.map +1 -0
- package/lib/configureKey.js +939 -0
- package/lib/configureKey.js.map +1 -0
- package/lib/constants.d.ts +68 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +293 -0
- package/lib/constants.js.map +1 -0
- package/lib/develco.d.ts +15 -0
- package/lib/develco.d.ts.map +1 -0
- package/lib/develco.js +183 -0
- package/lib/develco.js.map +1 -0
- package/lib/ewelink.d.ts +30 -0
- package/lib/ewelink.d.ts.map +1 -0
- package/lib/ewelink.js +718 -0
- package/lib/ewelink.js.map +1 -0
- package/lib/exposes.d.ts +344 -0
- package/lib/exposes.d.ts.map +1 -0
- package/lib/exposes.js +1065 -0
- package/lib/exposes.js.map +1 -0
- package/lib/generateDefinition.d.ts +6 -0
- package/lib/generateDefinition.d.ts.map +1 -0
- package/lib/generateDefinition.js +356 -0
- package/lib/generateDefinition.js.map +1 -0
- package/lib/ikea.d.ts +39 -0
- package/lib/ikea.d.ts.map +1 -0
- package/lib/ikea.js +776 -0
- package/lib/ikea.js.map +1 -0
- package/lib/kelvinToXy.d.ts +8 -0
- package/lib/kelvinToXy.d.ts.map +1 -0
- package/lib/kelvinToXy.js +1914 -0
- package/lib/kelvinToXy.js.map +1 -0
- package/lib/ledvance.d.ts +20 -0
- package/lib/ledvance.d.ts.map +1 -0
- package/lib/ledvance.js +103 -0
- package/lib/ledvance.js.map +1 -0
- package/lib/legacy.d.ts +5128 -0
- package/lib/legacy.d.ts.map +1 -0
- package/lib/legacy.js +6603 -0
- package/lib/legacy.js.map +1 -0
- package/lib/legrand.d.ts +69 -0
- package/lib/legrand.d.ts.map +1 -0
- package/lib/legrand.js +282 -0
- package/lib/legrand.js.map +1 -0
- package/lib/light.d.ts +6 -0
- package/lib/light.d.ts.map +1 -0
- package/lib/light.js +146 -0
- package/lib/light.js.map +1 -0
- package/lib/logger.d.ts +4 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +14 -0
- package/lib/logger.js.map +1 -0
- package/lib/lumi.d.ts +953 -0
- package/lib/lumi.d.ts.map +1 -0
- package/lib/lumi.js +4973 -0
- package/lib/lumi.js.map +1 -0
- package/lib/modernExtend.d.ts +325 -0
- package/lib/modernExtend.d.ts.map +1 -0
- package/lib/modernExtend.js +1995 -0
- package/lib/modernExtend.js.map +1 -0
- package/lib/ota.d.ts +71 -0
- package/lib/ota.d.ts.map +1 -0
- package/lib/ota.js +663 -0
- package/lib/ota.js.map +1 -0
- package/lib/philips.d.ts +84 -0
- package/lib/philips.d.ts.map +1 -0
- package/lib/philips.js +657 -0
- package/lib/philips.js.map +1 -0
- package/lib/reporting.d.ts +58 -0
- package/lib/reporting.d.ts.map +1 -0
- package/lib/reporting.js +336 -0
- package/lib/reporting.js.map +1 -0
- package/lib/store.d.ts +7 -0
- package/lib/store.d.ts.map +1 -0
- package/lib/store.js +56 -0
- package/lib/store.js.map +1 -0
- package/lib/sunricher.d.ts +13 -0
- package/lib/sunricher.d.ts.map +1 -0
- package/lib/sunricher.js +14 -0
- package/lib/sunricher.js.map +1 -0
- package/lib/tuya.d.ts +764 -0
- package/lib/tuya.d.ts.map +1 -0
- package/lib/tuya.js +2425 -0
- package/lib/tuya.js.map +1 -0
- package/lib/types.d.ts +433 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +4 -0
- package/lib/types.js.map +1 -0
- package/lib/ubisys.d.ts +19 -0
- package/lib/ubisys.d.ts.map +1 -0
- package/lib/ubisys.js +293 -0
- package/lib/ubisys.js.map +1 -0
- package/lib/utils.d.ts +93 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +790 -0
- package/lib/utils.js.map +1 -0
- package/lib/zosung.d.ts +52 -0
- package/lib/zosung.d.ts.map +1 -0
- package/lib/zosung.js +256 -0
- package/lib/zosung.js.map +1 -0
- package/package.json +2 -2
package/lib/exposes.js
ADDED
|
@@ -0,0 +1,1065 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.presets = exports.options = exports.access = exports.Climate = exports.Fan = exports.Cover = exports.Light = exports.Composite = exports.Text = exports.Enum = exports.Numeric = exports.List = exports.Binary = exports.Lock = exports.Switch = exports.Base = void 0;
|
|
7
|
+
const assert_1 = __importDefault(require("assert"));
|
|
8
|
+
const utils_1 = require("./utils");
|
|
9
|
+
class Base {
|
|
10
|
+
name;
|
|
11
|
+
label;
|
|
12
|
+
access;
|
|
13
|
+
type;
|
|
14
|
+
endpoint;
|
|
15
|
+
property;
|
|
16
|
+
description;
|
|
17
|
+
features;
|
|
18
|
+
category;
|
|
19
|
+
withEndpoint(endpointName) {
|
|
20
|
+
this.endpoint = endpointName;
|
|
21
|
+
if (this.property) {
|
|
22
|
+
this.property = `${this.property}_${this.endpoint}`;
|
|
23
|
+
}
|
|
24
|
+
if (this.features) {
|
|
25
|
+
for (const feature of this.features) {
|
|
26
|
+
if (feature.property) {
|
|
27
|
+
feature.property = `${feature.property}_${endpointName}`;
|
|
28
|
+
feature.endpoint = endpointName;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
withAccess(a) {
|
|
35
|
+
(0, assert_1.default)(this.access !== undefined, 'Cannot add access if not defined yet');
|
|
36
|
+
this.access = a;
|
|
37
|
+
this.validateCategory();
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
withProperty(property) {
|
|
41
|
+
this.property = property;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
withLabel(label) {
|
|
45
|
+
this.label = label;
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
withDescription(description) {
|
|
49
|
+
this.description = description;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
withCategory(category) {
|
|
53
|
+
this.category = category;
|
|
54
|
+
this.validateCategory();
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
validateCategory() {
|
|
58
|
+
switch (this.category) {
|
|
59
|
+
case 'config':
|
|
60
|
+
(0, assert_1.default)(this.access & a.SET, 'Config expose must be settable');
|
|
61
|
+
break;
|
|
62
|
+
case 'diagnostic':
|
|
63
|
+
(0, assert_1.default)(!(this.access & a.SET), 'Diagnostic expose must not be settable');
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
addFeature(feature) {
|
|
68
|
+
(0, assert_1.default)(this.features, 'Does not have any features');
|
|
69
|
+
if (this.endpoint)
|
|
70
|
+
feature.withEndpoint(this.endpoint);
|
|
71
|
+
this.features.push(feature);
|
|
72
|
+
}
|
|
73
|
+
removeFeature(feature) {
|
|
74
|
+
(0, assert_1.default)(this.features, 'Does not have any features');
|
|
75
|
+
const f = this.features.find((f) => f.name === feature);
|
|
76
|
+
(0, assert_1.default)(f, `Does not have feature '${feature}'`);
|
|
77
|
+
this.features.splice(this.features.indexOf(f), 1);
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
setAccess(feature, a) {
|
|
81
|
+
(0, assert_1.default)(this.features, 'Does not have any features');
|
|
82
|
+
const f = this.features.find((f) => f.name === feature);
|
|
83
|
+
(0, assert_1.default)(f.access !== a, `Access mode not changed for '${f.name}'`);
|
|
84
|
+
f.access = a;
|
|
85
|
+
f.validateCategory();
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
copy(target) {
|
|
89
|
+
target.name = this.name;
|
|
90
|
+
target.label = this.label;
|
|
91
|
+
target.access = this.access;
|
|
92
|
+
target.type = this.type;
|
|
93
|
+
target.endpoint = this.endpoint;
|
|
94
|
+
target.property = this.property;
|
|
95
|
+
target.description = this.description;
|
|
96
|
+
if (target.features) {
|
|
97
|
+
target.features = this.features.map((f) => f.clone());
|
|
98
|
+
}
|
|
99
|
+
target.category = this.category;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.Base = Base;
|
|
103
|
+
class Switch extends Base {
|
|
104
|
+
features = [];
|
|
105
|
+
constructor() {
|
|
106
|
+
super();
|
|
107
|
+
this.type = 'switch';
|
|
108
|
+
}
|
|
109
|
+
withState(property, toggle, description, access = a.ALL, value_on = 'ON', value_off = 'OFF') {
|
|
110
|
+
const feature = new Binary('state', access, value_on, value_off).withProperty(property).withDescription(description);
|
|
111
|
+
if (toggle) {
|
|
112
|
+
feature.withValueToggle('TOGGLE');
|
|
113
|
+
}
|
|
114
|
+
this.addFeature(feature);
|
|
115
|
+
return this;
|
|
116
|
+
}
|
|
117
|
+
clone() {
|
|
118
|
+
const clone = new Switch();
|
|
119
|
+
this.copy(clone);
|
|
120
|
+
return clone;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.Switch = Switch;
|
|
124
|
+
class Lock extends Base {
|
|
125
|
+
features = [];
|
|
126
|
+
constructor() {
|
|
127
|
+
super();
|
|
128
|
+
this.type = 'lock';
|
|
129
|
+
}
|
|
130
|
+
withState(property, valueOn, valueOff, description, access = a.ALL) {
|
|
131
|
+
this.addFeature(new Binary('state', access, valueOn, valueOff).withProperty(property).withDescription(description));
|
|
132
|
+
return this;
|
|
133
|
+
}
|
|
134
|
+
withLockState(property, description) {
|
|
135
|
+
this.addFeature(new Enum('lock_state', exports.access.STATE, ['not_fully_locked', 'locked', 'unlocked']).withProperty(property).withDescription(description));
|
|
136
|
+
return this;
|
|
137
|
+
}
|
|
138
|
+
clone() {
|
|
139
|
+
const clone = new Lock();
|
|
140
|
+
this.copy(clone);
|
|
141
|
+
return clone;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.Lock = Lock;
|
|
145
|
+
class Binary extends Base {
|
|
146
|
+
property = '';
|
|
147
|
+
value_on;
|
|
148
|
+
value_off;
|
|
149
|
+
value_toggle;
|
|
150
|
+
constructor(name, access, valueOn, valueOff) {
|
|
151
|
+
super();
|
|
152
|
+
this.type = 'binary';
|
|
153
|
+
this.name = name;
|
|
154
|
+
this.label = (0, utils_1.getLabelFromName)(name);
|
|
155
|
+
this.property = name;
|
|
156
|
+
this.access = access;
|
|
157
|
+
this.value_on = valueOn;
|
|
158
|
+
this.value_off = valueOff;
|
|
159
|
+
}
|
|
160
|
+
clone() {
|
|
161
|
+
const clone = new Binary(this.name, this.access, this.value_on, this.value_off);
|
|
162
|
+
clone.value_toggle = this.value_toggle;
|
|
163
|
+
this.copy(clone);
|
|
164
|
+
return clone;
|
|
165
|
+
}
|
|
166
|
+
withValueToggle(value) {
|
|
167
|
+
this.value_toggle = value;
|
|
168
|
+
return this;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
exports.Binary = Binary;
|
|
172
|
+
class List extends Base {
|
|
173
|
+
property = '';
|
|
174
|
+
item_type;
|
|
175
|
+
length_min;
|
|
176
|
+
length_max;
|
|
177
|
+
constructor(name, access, itemType) {
|
|
178
|
+
super();
|
|
179
|
+
this.type = 'list';
|
|
180
|
+
this.name = name;
|
|
181
|
+
this.label = (0, utils_1.getLabelFromName)(name);
|
|
182
|
+
this.property = name;
|
|
183
|
+
this.access = access;
|
|
184
|
+
this.item_type = itemType;
|
|
185
|
+
delete this.item_type.property;
|
|
186
|
+
}
|
|
187
|
+
withLengthMin(value) {
|
|
188
|
+
this.length_min = value;
|
|
189
|
+
return this;
|
|
190
|
+
}
|
|
191
|
+
withLengthMax(value) {
|
|
192
|
+
this.length_max = value;
|
|
193
|
+
return this;
|
|
194
|
+
}
|
|
195
|
+
clone() {
|
|
196
|
+
const clone = new List(this.name, this.access, this.item_type.clone());
|
|
197
|
+
clone.length_min = this.length_min;
|
|
198
|
+
clone.length_max = this.length_max;
|
|
199
|
+
this.copy(clone);
|
|
200
|
+
return clone;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.List = List;
|
|
204
|
+
class Numeric extends Base {
|
|
205
|
+
property = '';
|
|
206
|
+
unit;
|
|
207
|
+
value_max;
|
|
208
|
+
value_min;
|
|
209
|
+
value_step;
|
|
210
|
+
presets;
|
|
211
|
+
constructor(name, access) {
|
|
212
|
+
super();
|
|
213
|
+
this.type = 'numeric';
|
|
214
|
+
this.name = name;
|
|
215
|
+
this.label = (0, utils_1.getLabelFromName)(name);
|
|
216
|
+
this.property = name;
|
|
217
|
+
this.access = access;
|
|
218
|
+
}
|
|
219
|
+
withUnit(unit) {
|
|
220
|
+
this.unit = unit;
|
|
221
|
+
return this;
|
|
222
|
+
}
|
|
223
|
+
withValueMax(value) {
|
|
224
|
+
this.value_max = value;
|
|
225
|
+
return this;
|
|
226
|
+
}
|
|
227
|
+
withValueMin(value) {
|
|
228
|
+
this.value_min = value;
|
|
229
|
+
return this;
|
|
230
|
+
}
|
|
231
|
+
withValueStep(value) {
|
|
232
|
+
this.value_step = value;
|
|
233
|
+
return this;
|
|
234
|
+
}
|
|
235
|
+
withPreset(name, value, description) {
|
|
236
|
+
if (!this.presets)
|
|
237
|
+
this.presets = [];
|
|
238
|
+
this.presets.push({ name, value, description });
|
|
239
|
+
return this;
|
|
240
|
+
}
|
|
241
|
+
clone() {
|
|
242
|
+
const clone = new Numeric(this.name, this.access);
|
|
243
|
+
this.copy(clone);
|
|
244
|
+
clone.unit = this.unit;
|
|
245
|
+
clone.value_max = this.value_max;
|
|
246
|
+
clone.value_min = this.value_min;
|
|
247
|
+
clone.value_step = this.value_step;
|
|
248
|
+
if (this.presets) {
|
|
249
|
+
clone.presets = { ...this.presets };
|
|
250
|
+
}
|
|
251
|
+
return clone;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
exports.Numeric = Numeric;
|
|
255
|
+
class Enum extends Base {
|
|
256
|
+
property = '';
|
|
257
|
+
values;
|
|
258
|
+
constructor(name, access, values) {
|
|
259
|
+
super();
|
|
260
|
+
this.type = 'enum';
|
|
261
|
+
this.name = name;
|
|
262
|
+
this.label = (0, utils_1.getLabelFromName)(name);
|
|
263
|
+
this.property = name;
|
|
264
|
+
this.access = access;
|
|
265
|
+
this.values = values;
|
|
266
|
+
}
|
|
267
|
+
clone() {
|
|
268
|
+
const clone = new Enum(this.name, this.access, [...this.values]);
|
|
269
|
+
this.copy(clone);
|
|
270
|
+
return clone;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
exports.Enum = Enum;
|
|
274
|
+
class Text extends Base {
|
|
275
|
+
property = '';
|
|
276
|
+
constructor(name, access) {
|
|
277
|
+
super();
|
|
278
|
+
this.type = 'text';
|
|
279
|
+
this.name = name;
|
|
280
|
+
this.label = (0, utils_1.getLabelFromName)(name);
|
|
281
|
+
this.property = name;
|
|
282
|
+
this.access = access;
|
|
283
|
+
}
|
|
284
|
+
clone() {
|
|
285
|
+
const clone = new Text(this.name, this.access);
|
|
286
|
+
this.copy(clone);
|
|
287
|
+
return clone;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
exports.Text = Text;
|
|
291
|
+
class Composite extends Base {
|
|
292
|
+
property = '';
|
|
293
|
+
features = [];
|
|
294
|
+
constructor(name, property, access) {
|
|
295
|
+
super();
|
|
296
|
+
this.type = 'composite';
|
|
297
|
+
this.property = property;
|
|
298
|
+
this.name = name;
|
|
299
|
+
this.label = (0, utils_1.getLabelFromName)(name);
|
|
300
|
+
this.access = access;
|
|
301
|
+
}
|
|
302
|
+
withFeature(feature) {
|
|
303
|
+
this.addFeature(feature);
|
|
304
|
+
return this;
|
|
305
|
+
}
|
|
306
|
+
clone() {
|
|
307
|
+
const clone = new Composite(this.name, this.property, this.access);
|
|
308
|
+
this.copy(clone);
|
|
309
|
+
return clone;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
exports.Composite = Composite;
|
|
313
|
+
class Light extends Base {
|
|
314
|
+
features = [];
|
|
315
|
+
constructor() {
|
|
316
|
+
super();
|
|
317
|
+
this.type = 'light';
|
|
318
|
+
this.addFeature(new Binary('state', exports.access.ALL, 'ON', 'OFF').withValueToggle('TOGGLE').withDescription('On/off state of this light'));
|
|
319
|
+
}
|
|
320
|
+
withBrightness() {
|
|
321
|
+
this.addFeature(new Numeric('brightness', exports.access.ALL).withValueMin(0).withValueMax(254).withDescription('Brightness of this light'));
|
|
322
|
+
return this;
|
|
323
|
+
}
|
|
324
|
+
withMinBrightness() {
|
|
325
|
+
this.addFeature(new Numeric('min_brightness', exports.access.ALL).withValueMin(1).withValueMax(255).withDescription('Minimum light brightness'));
|
|
326
|
+
return this;
|
|
327
|
+
}
|
|
328
|
+
withMaxBrightness() {
|
|
329
|
+
this.addFeature(new Numeric('max_brightness', exports.access.ALL).withValueMin(1).withValueMax(255).withDescription('Maximum light brightness'));
|
|
330
|
+
return this;
|
|
331
|
+
}
|
|
332
|
+
withLevelConfig(disableFeatures = []) {
|
|
333
|
+
let levelConfig = new Composite('level_config', 'level_config', exports.access.ALL);
|
|
334
|
+
if (!disableFeatures.includes('on_off_transition_time')) {
|
|
335
|
+
levelConfig = levelConfig.withFeature(new Numeric('on_off_transition_time', exports.access.ALL)
|
|
336
|
+
.withLabel('ON/OFF transition time')
|
|
337
|
+
.withDescription('Represents the time taken to move to or from the target level when On of Off commands are received by an On/Off cluster'));
|
|
338
|
+
}
|
|
339
|
+
if (!disableFeatures.includes('on_transition_time')) {
|
|
340
|
+
levelConfig = levelConfig.withFeature(new Numeric('on_transition_time', exports.access.ALL)
|
|
341
|
+
.withLabel('ON transition time')
|
|
342
|
+
.withPreset('disabled', 'disabled', 'Use on_off_transition_time value')
|
|
343
|
+
.withDescription('Represents the time taken to move the current level from the minimum level to the maximum level when an On command is received'));
|
|
344
|
+
}
|
|
345
|
+
if (!disableFeatures.includes('off_transition_time')) {
|
|
346
|
+
levelConfig = levelConfig.withFeature(new Numeric('off_transition_time', exports.access.ALL)
|
|
347
|
+
.withLabel('OFF transition time')
|
|
348
|
+
.withPreset('disabled', 'disabled', 'Use on_off_transition_time value')
|
|
349
|
+
.withDescription('Represents the time taken to move the current level from the maximum level to the minimum level when an Off command is received'));
|
|
350
|
+
}
|
|
351
|
+
if (!disableFeatures.includes('execute_if_off')) {
|
|
352
|
+
levelConfig = levelConfig.withFeature(new Binary('execute_if_off', exports.access.ALL, true, false).withDescription('this setting can affect the "on_level", "current_level_startup" or "brightness" setting'));
|
|
353
|
+
}
|
|
354
|
+
if (!disableFeatures.includes('on_level')) {
|
|
355
|
+
levelConfig = levelConfig.withFeature(new Numeric('on_level', exports.access.ALL)
|
|
356
|
+
.withValueMin(1)
|
|
357
|
+
.withValueMax(254)
|
|
358
|
+
.withPreset('previous', 'previous', 'Use previous value')
|
|
359
|
+
.withDescription('Specifies the level that shall be applied, when an on/toggle command causes the light to turn on.'));
|
|
360
|
+
}
|
|
361
|
+
if (!disableFeatures.includes('current_level_startup')) {
|
|
362
|
+
levelConfig = levelConfig.withFeature(new Numeric('current_level_startup', exports.access.ALL)
|
|
363
|
+
.withValueMin(1)
|
|
364
|
+
.withValueMax(254)
|
|
365
|
+
.withPreset('minimum', 'minimum', 'Use minimum permitted value')
|
|
366
|
+
.withPreset('previous', 'previous', 'Use previous value')
|
|
367
|
+
.withDescription('Defines the desired startup level for a device when it is supplied with power'));
|
|
368
|
+
}
|
|
369
|
+
levelConfig = levelConfig.withDescription('Configure genLevelCtrl');
|
|
370
|
+
this.addFeature(levelConfig);
|
|
371
|
+
return this;
|
|
372
|
+
}
|
|
373
|
+
withColorTemp(range) {
|
|
374
|
+
const rangeProvided = range !== undefined;
|
|
375
|
+
if (range === undefined) {
|
|
376
|
+
range = [150, 500];
|
|
377
|
+
}
|
|
378
|
+
const feature = new Numeric('color_temp', exports.access.ALL)
|
|
379
|
+
.withUnit('mired')
|
|
380
|
+
.withValueMin(range[0])
|
|
381
|
+
.withValueMax(range[1])
|
|
382
|
+
.withDescription('Color temperature of this light');
|
|
383
|
+
if (process.env.VITEST_WORKER_ID) {
|
|
384
|
+
// @ts-expect-error ignore
|
|
385
|
+
feature._colorTempRangeProvided = rangeProvided;
|
|
386
|
+
}
|
|
387
|
+
[
|
|
388
|
+
{ name: 'coolest', value: range[0], description: 'Coolest temperature supported' },
|
|
389
|
+
{ name: 'cool', value: 250, description: 'Cool temperature (250 mireds / 4000 Kelvin)' },
|
|
390
|
+
{ name: 'neutral', value: 370, description: 'Neutral temperature (370 mireds / 2700 Kelvin)' },
|
|
391
|
+
{ name: 'warm', value: 454, description: 'Warm temperature (454 mireds / 2200 Kelvin)' },
|
|
392
|
+
{ name: 'warmest', value: range[1], description: 'Warmest temperature supported' },
|
|
393
|
+
]
|
|
394
|
+
.filter((p) => p.value >= range[0] && p.value <= range[1])
|
|
395
|
+
.forEach((p) => feature.withPreset(p.name, p.value, p.description));
|
|
396
|
+
this.addFeature(feature);
|
|
397
|
+
return this;
|
|
398
|
+
}
|
|
399
|
+
withColorTempStartup(range) {
|
|
400
|
+
if (range === undefined) {
|
|
401
|
+
range = [150, 500];
|
|
402
|
+
}
|
|
403
|
+
const feature = new Numeric('color_temp_startup', exports.access.ALL)
|
|
404
|
+
.withUnit('mired')
|
|
405
|
+
.withValueMin(range[0])
|
|
406
|
+
.withValueMax(range[1])
|
|
407
|
+
.withDescription('Color temperature after cold power on of this light');
|
|
408
|
+
[
|
|
409
|
+
{ name: 'coolest', value: range[0], description: 'Coolest temperature supported' },
|
|
410
|
+
{ name: 'cool', value: 250, description: 'Cool temperature (250 mireds / 4000 Kelvin)' },
|
|
411
|
+
{ name: 'neutral', value: 370, description: 'Neutral temperature (370 mireds / 2700 Kelvin)' },
|
|
412
|
+
{ name: 'warm', value: 454, description: 'Warm temperature (454 mireds / 2200 Kelvin)' },
|
|
413
|
+
{ name: 'warmest', value: range[1], description: 'Warmest temperature supported' },
|
|
414
|
+
]
|
|
415
|
+
.filter((p) => p.value >= range[0] && p.value <= range[1])
|
|
416
|
+
.forEach((p) => feature.withPreset(p.name, p.value, p.description));
|
|
417
|
+
feature.withPreset('previous', 65535, 'Restore previous color_temp on cold power on');
|
|
418
|
+
this.addFeature(feature);
|
|
419
|
+
return this;
|
|
420
|
+
}
|
|
421
|
+
withColor(types) {
|
|
422
|
+
for (const type of types) {
|
|
423
|
+
if (type === 'xy') {
|
|
424
|
+
const colorXY = new Composite('color_xy', 'color', exports.access.ALL)
|
|
425
|
+
.withLabel('Color (X/Y)')
|
|
426
|
+
.withFeature(new Numeric('x', exports.access.ALL))
|
|
427
|
+
.withFeature(new Numeric('y', exports.access.ALL))
|
|
428
|
+
.withDescription('Color of this light in the CIE 1931 color space (x/y)');
|
|
429
|
+
this.addFeature(colorXY);
|
|
430
|
+
}
|
|
431
|
+
else if (type === 'hs') {
|
|
432
|
+
const colorHS = new Composite('color_hs', 'color', exports.access.ALL)
|
|
433
|
+
.withLabel('Color (HS)')
|
|
434
|
+
.withFeature(new Numeric('hue', exports.access.ALL))
|
|
435
|
+
.withFeature(new Numeric('saturation', exports.access.ALL))
|
|
436
|
+
.withDescription('Color of this light expressed as hue/saturation');
|
|
437
|
+
this.addFeature(colorHS);
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
(0, assert_1.default)(false, `Unsupported color type ${type}`);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
return this;
|
|
444
|
+
}
|
|
445
|
+
clone() {
|
|
446
|
+
const clone = new Light();
|
|
447
|
+
this.copy(clone);
|
|
448
|
+
return clone;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
exports.Light = Light;
|
|
452
|
+
class Cover extends Base {
|
|
453
|
+
features = [];
|
|
454
|
+
constructor() {
|
|
455
|
+
super();
|
|
456
|
+
this.type = 'cover';
|
|
457
|
+
this.addFeature(new Enum('state', a.STATE_SET, ['OPEN', 'CLOSE', 'STOP']));
|
|
458
|
+
}
|
|
459
|
+
withPosition() {
|
|
460
|
+
this.addFeature(new Numeric('position', exports.access.ALL).withValueMin(0).withValueMax(100).withDescription('Position of this cover').withUnit('%'));
|
|
461
|
+
return this;
|
|
462
|
+
}
|
|
463
|
+
withTilt() {
|
|
464
|
+
this.addFeature(new Numeric('tilt', exports.access.ALL).withValueMin(0).withValueMax(100).withDescription('Tilt of this cover').withUnit('%'));
|
|
465
|
+
return this;
|
|
466
|
+
}
|
|
467
|
+
clone() {
|
|
468
|
+
const clone = new Cover();
|
|
469
|
+
this.copy(clone);
|
|
470
|
+
return clone;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
exports.Cover = Cover;
|
|
474
|
+
class Fan extends Base {
|
|
475
|
+
features = [];
|
|
476
|
+
constructor() {
|
|
477
|
+
super();
|
|
478
|
+
this.type = 'fan';
|
|
479
|
+
this.addFeature(new Binary('state', exports.access.ALL, 'ON', 'OFF').withDescription('On/off state of this fan').withProperty('fan_state'));
|
|
480
|
+
}
|
|
481
|
+
withModes(modes, access = a.ALL) {
|
|
482
|
+
this.addFeature(new Enum('mode', access, modes).withProperty('fan_mode').withDescription('Mode of this fan'));
|
|
483
|
+
return this;
|
|
484
|
+
}
|
|
485
|
+
clone() {
|
|
486
|
+
const clone = new Fan();
|
|
487
|
+
this.copy(clone);
|
|
488
|
+
return clone;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
exports.Fan = Fan;
|
|
492
|
+
class Climate extends Base {
|
|
493
|
+
features = [];
|
|
494
|
+
constructor() {
|
|
495
|
+
super();
|
|
496
|
+
this.type = 'climate';
|
|
497
|
+
}
|
|
498
|
+
withSetpoint(property, min, max, step, access = a.ALL) {
|
|
499
|
+
(0, assert_1.default)([
|
|
500
|
+
'occupied_heating_setpoint',
|
|
501
|
+
'current_heating_setpoint',
|
|
502
|
+
'occupied_cooling_setpoint',
|
|
503
|
+
'unoccupied_heating_setpoint',
|
|
504
|
+
'unoccupied_cooling_setpoint',
|
|
505
|
+
].includes(property));
|
|
506
|
+
this.addFeature(new Numeric(property, access)
|
|
507
|
+
.withValueMin(min)
|
|
508
|
+
.withValueMax(max)
|
|
509
|
+
.withValueStep(step)
|
|
510
|
+
.withUnit('°C')
|
|
511
|
+
.withDescription('Temperature setpoint'));
|
|
512
|
+
return this;
|
|
513
|
+
}
|
|
514
|
+
withLocalTemperature(access = a.STATE_GET, description = 'Current temperature measured on the device') {
|
|
515
|
+
this.addFeature(new Numeric('local_temperature', access).withUnit('°C').withDescription(description));
|
|
516
|
+
return this;
|
|
517
|
+
}
|
|
518
|
+
withLocalTemperatureCalibration(min = -12.8, max = 12.7, step = 0.1, access = a.ALL) {
|
|
519
|
+
// For devices following the ZCL local_temperature_calibration is an int8, so min = -12.8 and max 12.7
|
|
520
|
+
this.addFeature(new Numeric('local_temperature_calibration', access)
|
|
521
|
+
.withValueMin(min)
|
|
522
|
+
.withValueMax(max)
|
|
523
|
+
.withValueStep(step)
|
|
524
|
+
.withUnit('°C')
|
|
525
|
+
.withDescription('Offset to add/subtract to the local temperature'));
|
|
526
|
+
return this;
|
|
527
|
+
}
|
|
528
|
+
withSystemMode(modes, access = a.ALL, description = 'Mode of this device') {
|
|
529
|
+
const allowed = ['off', 'heat', 'cool', 'auto', 'dry', 'fan_only', 'sleep', 'emergency_heating'];
|
|
530
|
+
modes.forEach((m) => (0, assert_1.default)(allowed.includes(m)));
|
|
531
|
+
this.addFeature(new Enum('system_mode', access, modes).withDescription(description));
|
|
532
|
+
return this;
|
|
533
|
+
}
|
|
534
|
+
withRunningState(modes, access = a.STATE_GET) {
|
|
535
|
+
const allowed = ['idle', 'heat', 'cool', 'fan_only'];
|
|
536
|
+
modes.forEach((m) => (0, assert_1.default)(allowed.includes(m)));
|
|
537
|
+
this.addFeature(new Enum('running_state', access, modes).withDescription('The current running state'));
|
|
538
|
+
return this;
|
|
539
|
+
}
|
|
540
|
+
withRunningMode(modes, access = a.STATE_GET) {
|
|
541
|
+
const allowed = ['off', 'cool', 'heat'];
|
|
542
|
+
modes.forEach((m) => (0, assert_1.default)(allowed.includes(m)));
|
|
543
|
+
this.addFeature(new Enum('running_mode', access, modes).withDescription('The current running mode'));
|
|
544
|
+
return this;
|
|
545
|
+
}
|
|
546
|
+
withFanMode(modes, access = a.ALL) {
|
|
547
|
+
const allowed = ['off', 'low', 'medium', 'high', 'on', 'auto', 'smart'];
|
|
548
|
+
modes.forEach((m) => (0, assert_1.default)(allowed.includes(m)));
|
|
549
|
+
this.addFeature(new Enum('fan_mode', access, modes).withDescription('Mode of the fan'));
|
|
550
|
+
return this;
|
|
551
|
+
}
|
|
552
|
+
withSwingMode(modes, access = a.ALL) {
|
|
553
|
+
this.addFeature(new Enum('swing_mode', access, modes).withDescription('Swing mode'));
|
|
554
|
+
return this;
|
|
555
|
+
}
|
|
556
|
+
withPreset(modes, description = 'Mode of this device (similar to system_mode)') {
|
|
557
|
+
this.addFeature(new Enum('preset', exports.access.STATE_SET, modes).withDescription(description));
|
|
558
|
+
return this;
|
|
559
|
+
}
|
|
560
|
+
withPiHeatingDemand(access = a.STATE) {
|
|
561
|
+
this.addFeature(new Numeric('pi_heating_demand', access)
|
|
562
|
+
.withLabel('PI heating demand')
|
|
563
|
+
.withValueMin(0)
|
|
564
|
+
.withValueMax(100)
|
|
565
|
+
.withUnit('%')
|
|
566
|
+
.withDescription('Position of the valve (= demanded heat) where 0% is fully closed and 100% is fully open'));
|
|
567
|
+
return this;
|
|
568
|
+
}
|
|
569
|
+
withControlSequenceOfOperation(modes, access = a.STATE) {
|
|
570
|
+
const allowed = [
|
|
571
|
+
'cooling_only',
|
|
572
|
+
'cooling_with_reheat',
|
|
573
|
+
'heating_only',
|
|
574
|
+
'heating_with_reheat',
|
|
575
|
+
'cooling_and_heating_4-pipes',
|
|
576
|
+
'cooling_and_heating_4-pipes_with_reheat',
|
|
577
|
+
];
|
|
578
|
+
modes.forEach((m) => (0, assert_1.default)(allowed.includes(m)));
|
|
579
|
+
this.addFeature(new Enum('control_sequence_of_operation', access, modes).withDescription('Operating environment of the thermostat'));
|
|
580
|
+
return this;
|
|
581
|
+
}
|
|
582
|
+
withAcLouverPosition(positions, access = a.ALL) {
|
|
583
|
+
const allowed = ['fully_open', 'fully_closed', 'half_open', 'quarter_open', 'three_quarters_open'];
|
|
584
|
+
positions.forEach((m) => (0, assert_1.default)(allowed.includes(m)));
|
|
585
|
+
this.addFeature(new Enum('ac_louver_position', access, positions).withLabel('AC louver position').withDescription('AC louver position of this device'));
|
|
586
|
+
return this;
|
|
587
|
+
}
|
|
588
|
+
withWeeklySchedule(modes, access = a.ALL) {
|
|
589
|
+
const allowed = ['heat', 'cool'];
|
|
590
|
+
modes.forEach((m) => (0, assert_1.default)(allowed.includes(m)));
|
|
591
|
+
const featureDayOfWeek = new List('dayofweek', a.SET, new Composite('day', 'dayofweek', a.SET).withFeature(new Enum('day', a.SET, ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday', 'away_or_vacation'])))
|
|
592
|
+
.withLabel('Day of week')
|
|
593
|
+
.withLengthMin(1)
|
|
594
|
+
.withLengthMax(8)
|
|
595
|
+
.withDescription('Days on which the schedule will be active.');
|
|
596
|
+
const featureTransitionTime = new Composite('time', 'transitionTime', a.SET)
|
|
597
|
+
.withFeature(new Numeric('hour', a.SET))
|
|
598
|
+
.withFeature(new Numeric('minute', a.SET))
|
|
599
|
+
.withDescription('Trigger transition X minutes after 00:00.');
|
|
600
|
+
const featureTransitionHeatSetPoint = new Numeric('heatSetpoint', a.SET).withLabel('Heat setpoint').withDescription('Target heat setpoint');
|
|
601
|
+
const featureTransitionCoolSetPoint = new Numeric('coolSetpoint', a.SET).withLabel('Cool setpoint').withDescription('Target cool setpoint');
|
|
602
|
+
let featureTransition = new Composite('transition', 'transition', a.SET).withFeature(featureTransitionTime);
|
|
603
|
+
if (modes.includes('heat'))
|
|
604
|
+
featureTransition = featureTransition.withFeature(featureTransitionHeatSetPoint);
|
|
605
|
+
if (modes.includes('cool'))
|
|
606
|
+
featureTransition = featureTransition.withFeature(featureTransitionCoolSetPoint);
|
|
607
|
+
const featureTransitions = new List('transitions', a.SET, featureTransition).withLengthMin(1).withLengthMax(10);
|
|
608
|
+
const schedule = new Composite('schedule', 'weekly_schedule', access).withFeature(featureDayOfWeek).withFeature(featureTransitions);
|
|
609
|
+
this.addFeature(schedule);
|
|
610
|
+
return this;
|
|
611
|
+
}
|
|
612
|
+
clone() {
|
|
613
|
+
const clone = new Climate();
|
|
614
|
+
this.copy(clone);
|
|
615
|
+
return clone;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
exports.Climate = Climate;
|
|
619
|
+
/**
|
|
620
|
+
* The access property is a 3-bit bitmask.
|
|
621
|
+
*/
|
|
622
|
+
exports.access = {
|
|
623
|
+
/**
|
|
624
|
+
* Bit 0: The property can be found in the published state of this device
|
|
625
|
+
*/
|
|
626
|
+
STATE: 0b001,
|
|
627
|
+
/**
|
|
628
|
+
* Bit 1: The property can be set with a /set command
|
|
629
|
+
*/
|
|
630
|
+
SET: 0b010,
|
|
631
|
+
/**
|
|
632
|
+
* Bit 2: The property can be retrieved with a /get command
|
|
633
|
+
*/
|
|
634
|
+
GET: 0b100,
|
|
635
|
+
/**
|
|
636
|
+
* Bitwise inclusive OR of STATE and SET : 0b001 | 0b010
|
|
637
|
+
*/
|
|
638
|
+
STATE_SET: 0b011,
|
|
639
|
+
/**
|
|
640
|
+
* Bitwise inclusive OR of STATE and GET : 0b001 | 0b100
|
|
641
|
+
*/
|
|
642
|
+
STATE_GET: 0b101,
|
|
643
|
+
/**
|
|
644
|
+
* Bitwise inclusive OR of STATE and GET and SET : 0b001 | 0b100 | 0b010
|
|
645
|
+
*/
|
|
646
|
+
ALL: 0b111,
|
|
647
|
+
};
|
|
648
|
+
const a = exports.access;
|
|
649
|
+
exports.options = {
|
|
650
|
+
calibration: (name, type = 'absolute') => new Numeric(`${name}_calibration`, exports.access.SET).withDescription(`Calibrates the ${name} value (${type} offset), takes into effect on next report of device.`),
|
|
651
|
+
precision: (name) => new Numeric(`${name}_precision`, exports.access.SET)
|
|
652
|
+
.withValueMin(0)
|
|
653
|
+
.withValueMax(3)
|
|
654
|
+
.withDescription(`Number of digits after decimal point for ${name}, takes into effect on next report of device. This option can only decrease the precision, not increase it.`),
|
|
655
|
+
invert_cover: () => new Binary(`invert_cover`, exports.access.SET, true, false).withDescription(`Inverts the cover position, false: open=100,close=0, true: open=0,close=100 (default false).`),
|
|
656
|
+
color_sync: () => new Binary(`color_sync`, exports.access.SET, true, false).withDescription(`When enabled colors will be synced, e.g. if the light supports both color x/y and color temperature a conversion from color x/y to color temperature will be done when setting the x/y color (default true).`),
|
|
657
|
+
thermostat_unit: () => new Enum('thermostat_unit', exports.access.SET, ['celsius', 'fahrenheit']).withDescription('Controls the temperature unit of the thermostat (default celsius).'),
|
|
658
|
+
expose_pin: () => new Binary(`expose_pin`, exports.access.SET, true, false)
|
|
659
|
+
.withLabel('Expose PIN')
|
|
660
|
+
.withDescription(`Expose pin of this lock in the published payload (default false).`),
|
|
661
|
+
occupancy_timeout: () => new Numeric(`occupancy_timeout`, exports.access.SET)
|
|
662
|
+
.withValueMin(0)
|
|
663
|
+
.withDescription('Time in seconds after which occupancy is cleared after detecting it (default 90 seconds).'),
|
|
664
|
+
occupancy_timeout_2: () => new Numeric(`occupancy_timeout`, exports.access.SET)
|
|
665
|
+
.withValueMin(0)
|
|
666
|
+
.withValueStep(0.1)
|
|
667
|
+
.withUnit('s')
|
|
668
|
+
.withDescription('Time in seconds after which occupancy is cleared after detecting it (default is "detection_interval" + 2 seconds). The value must be equal to or greater than "detection_interval", and it can also be a fraction.'),
|
|
669
|
+
vibration_timeout: () => new Numeric(`vibration_timeout`, exports.access.SET)
|
|
670
|
+
.withValueMin(0)
|
|
671
|
+
.withDescription('Time in seconds after which vibration is cleared after detecting it (default 90 seconds).'),
|
|
672
|
+
simulated_brightness: () => new Composite('simulated_brightness', 'simulated_brightness', exports.access.SET)
|
|
673
|
+
.withDescription(`Simulate a brightness value. If this device provides a brightness_move_up or brightness_move_down action it is possible to specify the update interval and delta. The action_brightness_delta indicates the delta for each interval.`)
|
|
674
|
+
.withFeature(new Numeric('delta', exports.access.SET).withValueMin(0).withDescription('Delta per interval, 20 by default'))
|
|
675
|
+
.withFeature(new Numeric('interval', exports.access.SET).withValueMin(0).withUnit('ms').withDescription('Interval duration')),
|
|
676
|
+
no_occupancy_since_true: () => new List(`no_occupancy_since`, exports.access.SET, new Numeric('time', exports.access.STATE_SET)).withDescription('Sends a message the last time occupancy (occupancy: true) was detected. When setting this for example to [10, 60] a `{"no_occupancy_since": 10}` will be send after 10 seconds and a `{"no_occupancy_since": 60}` after 60 seconds.'),
|
|
677
|
+
no_occupancy_since_false: () => new List(`no_occupancy_since`, exports.access.SET, new Numeric('time', exports.access.STATE_SET)).withDescription('Sends a message after the last time no occupancy (occupancy: false) was detected. When setting this for example to [10, 60] a `{"no_occupancy_since": 10}` will be send after 10 seconds and a `{"no_occupancy_since": 60}` after 60 seconds.'),
|
|
678
|
+
presence_timeout: () => new Numeric(`presence_timeout`, exports.access.SET)
|
|
679
|
+
.withValueMin(0)
|
|
680
|
+
.withDescription('Time in seconds after which presence is cleared after detecting it (default 100 seconds).'),
|
|
681
|
+
no_position_support: () => new Binary('no_position_support', exports.access.SET, true, false).withDescription('Set to true when your device only reports position 0, 100 and 50 (in this case your device has an older firmware) (default false).'),
|
|
682
|
+
transition: () => new Numeric(`transition`, exports.access.SET)
|
|
683
|
+
.withValueMin(0)
|
|
684
|
+
.withDescription('Controls the transition time (in seconds) of on/off, brightness, color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).'),
|
|
685
|
+
measurement_poll_interval: (extraNote = '') => new Numeric(`measurement_poll_interval`, exports.access.SET)
|
|
686
|
+
.withValueMin(-1)
|
|
687
|
+
.withDescription(`This device does not support reporting electric measurements so it is polled instead. The default poll interval is 60 seconds, set to -1 to disable.${extraNote}`),
|
|
688
|
+
illuminance_below_threshold_check: () => new Binary(`illuminance_below_threshold_check`, exports.access.SET, true, false).withDescription(`Set to false to also send messages when illuminance is above threshold in night mode (default true).`),
|
|
689
|
+
state_action: () => new Binary(`state_action`, exports.access.SET, true, false).withDescription(`State actions will also be published as 'action' when true (default false).`),
|
|
690
|
+
identify_timeout: () => new Numeric('identify_timeout', exports.access.SET)
|
|
691
|
+
.withDescription('Sets duration of identification procedure in seconds (i.e., how long device would flash). Value ranges from 1 to 30 seconds (default 3).')
|
|
692
|
+
.withValueMin(1)
|
|
693
|
+
.withValueMax(30),
|
|
694
|
+
cover_position_tilt_disable_report: () => new Binary(`cover_position_tilt_disable_report`, exports.access.SET, true, false).withDescription(`Do not publish set cover target position as a normal 'position' value (default false).`),
|
|
695
|
+
local_temperature_based_on_sensor: () => new Binary(`local_temperature_based_on_sensor`, exports.access.SET, true, false)
|
|
696
|
+
.withLabel('Local temperature sensor reporting')
|
|
697
|
+
.withDescription(`Base local temperature on sensor choice (default false).`),
|
|
698
|
+
};
|
|
699
|
+
exports.presets = {
|
|
700
|
+
// Generic
|
|
701
|
+
binary: (name, access, valueOn, valueOff) => new Binary(name, access, valueOn, valueOff),
|
|
702
|
+
climate: () => new Climate(),
|
|
703
|
+
composite: (name, property, access) => new Composite(name, property, access),
|
|
704
|
+
cover: () => new Cover(),
|
|
705
|
+
enum: (name, access, values) => new Enum(name, access, values),
|
|
706
|
+
light: () => new Light(),
|
|
707
|
+
numeric: (name, access) => new Numeric(name, access),
|
|
708
|
+
text: (name, access) => new Text(name, access),
|
|
709
|
+
list: (name, access, itemType) => new List(name, access, itemType),
|
|
710
|
+
switch_: () => new Switch(),
|
|
711
|
+
// Specific
|
|
712
|
+
ac_frequency: () => new Numeric('ac_frequency', exports.access.STATE).withLabel('AC frequency').withUnit('Hz').withDescription('Measured electrical AC frequency'),
|
|
713
|
+
action: (values) => new Enum('action', exports.access.STATE, values).withDescription('Triggered action (e.g. a button click)').withCategory('diagnostic'),
|
|
714
|
+
action_duration: () => new Numeric('action_duration', exports.access.STATE).withUnit('s').withDescription('Triggered action duration in seconds').withCategory('diagnostic'),
|
|
715
|
+
action_group: () => new Numeric('action_group', exports.access.STATE).withDescription('Group where the action was triggered on'),
|
|
716
|
+
angle: (name) => new Numeric(name, exports.access.STATE).withValueMin(-360).withValueMax(360).withUnit('°'),
|
|
717
|
+
angle_axis: (name) => new Numeric(name, exports.access.STATE).withValueMin(-90).withValueMax(90).withUnit('°'),
|
|
718
|
+
aqi: () => new Numeric('aqi', exports.access.STATE).withDescription('Air quality index'),
|
|
719
|
+
auto_lock: () => new Switch().withLabel('Auto lock').withState('auto_lock', false, 'Enable/disable auto lock', exports.access.STATE_SET, 'AUTO', 'MANUAL'),
|
|
720
|
+
auto_off: (offTime) => new Binary('auto_off', exports.access.ALL, true, false)
|
|
721
|
+
.withLabel('Auto OFF')
|
|
722
|
+
.withDescription(`Turn the device automatically off when attached device consumes less than 2W for ${offTime} minutes`)
|
|
723
|
+
.withCategory('config'),
|
|
724
|
+
auto_relock_time: () => new Numeric('auto_relock_time', exports.access.ALL)
|
|
725
|
+
.withValueMin(0)
|
|
726
|
+
.withUnit('s')
|
|
727
|
+
.withDescription('The number of seconds to wait after unlocking a lock before it automatically locks again. 0=disabled'),
|
|
728
|
+
away_mode: () => new Switch().withLabel('Away mode').withState('away_mode', false, 'Enable/disable away mode', exports.access.STATE_SET),
|
|
729
|
+
away_preset_days: () => new Numeric('away_preset_days', exports.access.STATE_SET).withDescription('Away preset days').withValueMin(0).withValueMax(100),
|
|
730
|
+
away_preset_temperature: () => new Numeric('away_preset_temperature', exports.access.STATE_SET)
|
|
731
|
+
.withUnit('°C')
|
|
732
|
+
.withDescription('Away preset temperature')
|
|
733
|
+
.withValueMin(-10)
|
|
734
|
+
.withValueMax(35)
|
|
735
|
+
.withCategory('config'),
|
|
736
|
+
battery: () => new Numeric('battery', exports.access.STATE)
|
|
737
|
+
.withUnit('%')
|
|
738
|
+
.withDescription('Remaining battery in %, can take up to 24 hours before reported')
|
|
739
|
+
.withValueMin(0)
|
|
740
|
+
.withValueMax(100)
|
|
741
|
+
.withCategory('diagnostic'),
|
|
742
|
+
battery_low: () => new Binary('battery_low', exports.access.STATE, true, false)
|
|
743
|
+
.withDescription('Indicates if the battery of this device is almost empty')
|
|
744
|
+
.withCategory('diagnostic'),
|
|
745
|
+
battery_voltage: () => new Numeric('voltage', exports.access.STATE).withUnit('mV').withDescription('Voltage of the battery in millivolts').withCategory('diagnostic'),
|
|
746
|
+
boost_time: () => new Numeric('boost_time', exports.access.STATE_SET).withUnit('s').withDescription('Boost time').withValueMin(0).withValueMax(900),
|
|
747
|
+
button_lock: () => new Binary('button_lock', exports.access.ALL, 'ON', 'OFF').withDescription('Disables the physical switch button').withCategory('config'),
|
|
748
|
+
calibrated: () => new Binary('calibrated', exports.access.STATE, true, false).withDescription('Indicates if this device is calibrated').withCategory('diagnostic'),
|
|
749
|
+
carbon_monoxide: () => new Binary('carbon_monoxide', exports.access.STATE, true, false).withDescription('Indicates if CO (carbon monoxide) is detected'),
|
|
750
|
+
child_lock: () => new Binary('child_lock', exports.access.STATE_SET, 'LOCK', 'UNLOCK').withDescription('Enables/disables physical input on the device'),
|
|
751
|
+
co2: () => new Numeric('co2', exports.access.STATE).withLabel('CO2').withUnit('ppm').withDescription('The measured CO2 (carbon dioxide) value'),
|
|
752
|
+
co: () => new Numeric('co', exports.access.STATE).withLabel('CO').withUnit('ppm').withDescription('The measured CO (carbon monoxide) value'),
|
|
753
|
+
comfort_temperature: () => new Numeric('comfort_temperature', exports.access.STATE_SET).withUnit('°C').withDescription('Comfort temperature').withValueMin(0).withValueMax(30),
|
|
754
|
+
consumer_connected: () => new Binary('consumer_connected', exports.access.STATE, true, false)
|
|
755
|
+
.withDescription('Indicates whether a plug is physically attached. Device does not have to pull power or even be connected electrically (state of this binary switch can be ON even if main power switch is OFF)')
|
|
756
|
+
.withCategory('diagnostic'),
|
|
757
|
+
contact: () => new Binary('contact', exports.access.STATE, false, true).withDescription('Indicates if the contact is closed (= true) or open (= false)'),
|
|
758
|
+
cover_position: () => new Cover().withPosition(),
|
|
759
|
+
cover_position_tilt: () => new Cover().withPosition().withTilt(),
|
|
760
|
+
cover_tilt: () => new Cover().withTilt(),
|
|
761
|
+
cover_mode: () => new Composite('cover_mode', 'cover_mode', exports.access.ALL)
|
|
762
|
+
.withFeature(new Binary('reversed', exports.access.ALL, true, false).withDescription('Reversal of the motor rotating direction'))
|
|
763
|
+
.withFeature(new Binary('calibration', exports.access.ALL, true, false).withDescription('Set the cover calibration mode'))
|
|
764
|
+
.withFeature(new Binary('maintenance', exports.access.ALL, true, false).withDescription('Set the cover maintenance mode, enabling will disable the cover motor'))
|
|
765
|
+
.withFeature(new Binary('led', exports.access.ALL, true, false).withDescription('Set the LED')),
|
|
766
|
+
cpu_temperature: () => new Numeric('cpu_temperature', exports.access.STATE).withLabel('CPU temperature').withUnit('°C').withDescription('Temperature of the CPU'),
|
|
767
|
+
cube_side: (name) => new Numeric(name, exports.access.STATE).withDescription('Side of the cube').withValueMin(0).withValueMax(6).withValueStep(1),
|
|
768
|
+
current: () => new Numeric('current', exports.access.STATE).withUnit('A').withDescription('Instantaneous measured electrical current').withCategory('diagnostic'),
|
|
769
|
+
current_phase_b: () => new Numeric('current_phase_b', exports.access.STATE)
|
|
770
|
+
.withLabel('Current phase B')
|
|
771
|
+
.withUnit('A')
|
|
772
|
+
.withDescription('Instantaneous measured electrical current on phase B'),
|
|
773
|
+
current_phase_c: () => new Numeric('current_phase_c', exports.access.STATE)
|
|
774
|
+
.withLabel('Current phase C')
|
|
775
|
+
.withUnit('A')
|
|
776
|
+
.withDescription('Instantaneous measured electrical current on phase C'),
|
|
777
|
+
deadzone_temperature: () => new Numeric('deadzone_temperature', exports.access.STATE_SET)
|
|
778
|
+
.withUnit('°C')
|
|
779
|
+
.withDescription('The delta between local_temperature and current_heating_setpoint to trigger Heat')
|
|
780
|
+
.withValueMin(0)
|
|
781
|
+
.withValueMax(5)
|
|
782
|
+
.withValueStep(1),
|
|
783
|
+
detection_interval: () => new Numeric('detection_interval', exports.access.ALL)
|
|
784
|
+
.withValueMin(2)
|
|
785
|
+
.withValueMax(65535)
|
|
786
|
+
.withUnit('s')
|
|
787
|
+
.withDescription('Time interval between action detection.')
|
|
788
|
+
.withCategory('config'),
|
|
789
|
+
device_temperature: () => new Numeric('device_temperature', exports.access.STATE).withUnit('°C').withDescription('Temperature of the device').withCategory('diagnostic'),
|
|
790
|
+
eco2: () => new Numeric('eco2', exports.access.STATE).withLabel('eCO2').withLabel('PPM').withUnit('ppm').withDescription('Measured eCO2 value'),
|
|
791
|
+
eco_mode: () => new Binary('eco_mode', exports.access.STATE_SET, 'ON', 'OFF').withDescription('ECO mode (energy saving mode)'),
|
|
792
|
+
eco_temperature: () => new Numeric('eco_temperature', exports.access.STATE_SET).withUnit('°C').withDescription('Eco temperature').withValueMin(0).withValueMax(35),
|
|
793
|
+
effect: () => new Enum('effect', exports.access.SET, ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect']).withDescription('Triggers an effect on the light (e.g. make light blink for a few seconds)'),
|
|
794
|
+
energy: () => new Numeric('energy', exports.access.STATE).withUnit('kWh').withDescription('Sum of consumed energy'),
|
|
795
|
+
produced_energy: () => new Numeric('produced_energy', exports.access.STATE).withUnit('kWh').withDescription('Sum of produced energy'),
|
|
796
|
+
energy_produced: () => new Numeric('energy_produced', exports.access.STATE).withUnit('kWh').withDescription('Sum of produced energy'),
|
|
797
|
+
fan: () => new Fan(),
|
|
798
|
+
flip_indicator_light: () => new Binary('flip_indicator_light', exports.access.ALL, 'ON', 'OFF')
|
|
799
|
+
.withDescription('After turn on, the indicator light turns on while switch is off, and vice versa')
|
|
800
|
+
.withCategory('config'),
|
|
801
|
+
force: () => new Enum('force', exports.access.STATE_SET, ['normal', 'open', 'close']).withDescription('Force the valve position'),
|
|
802
|
+
formaldehyd: () => new Numeric('formaldehyd', exports.access.STATE).withDescription('The measured formaldehyd value').withUnit('mg/m³'),
|
|
803
|
+
gas: () => new Binary('gas', exports.access.STATE, true, false).withDescription('Indicates whether the device detected gas'),
|
|
804
|
+
hcho: () => new Numeric('hcho', exports.access.STATE).withLabel('HCHO').withUnit('mg/m³').withDescription('Measured HCHO value'),
|
|
805
|
+
holiday_temperature: () => new Numeric('holiday_temperature', exports.access.STATE_SET).withUnit('°C').withDescription('Holiday temperature').withValueMin(0).withValueMax(30),
|
|
806
|
+
humidity: () => new Numeric('humidity', exports.access.STATE).withUnit('%').withDescription('Measured relative humidity'),
|
|
807
|
+
illuminance: () => new Numeric('illuminance', exports.access.STATE).withDescription('Measured illuminance').withUnit('lx'),
|
|
808
|
+
brightness_state: () => new Enum('brightness_state', exports.access.STATE, ['low', 'middle', 'high', 'strong']).withDescription('Brightness state'),
|
|
809
|
+
keypad_lockout: () => new Enum('keypad_lockout', exports.access.ALL, ['unlock', 'lock1', 'lock2']).withDescription('Enables/disables physical input on the device'),
|
|
810
|
+
led_disabled_night: () => new Binary('led_disabled_night', exports.access.ALL, true, false)
|
|
811
|
+
.withLabel('LED disabled night')
|
|
812
|
+
.withDescription('Enable/disable the LED at night')
|
|
813
|
+
.withCategory('config'),
|
|
814
|
+
light_brightness: () => new Light().withBrightness(),
|
|
815
|
+
light_brightness_color: (preferHueAndSaturation) => new Light().withBrightness().withColor(preferHueAndSaturation ? ['hs', 'xy'] : ['xy', 'hs']),
|
|
816
|
+
light_brightness_colorhs: () => new Light().withBrightness().withColor(['hs']),
|
|
817
|
+
light_brightness_colortemp: (colorTempRange) => new Light().withBrightness().withColorTemp(colorTempRange).withColorTempStartup(colorTempRange),
|
|
818
|
+
light_brightness_colortemp_color: (colorTempRange, preferHueAndSaturation) => new Light()
|
|
819
|
+
.withBrightness()
|
|
820
|
+
.withColorTemp(colorTempRange)
|
|
821
|
+
.withColorTempStartup(colorTempRange)
|
|
822
|
+
.withColor(preferHueAndSaturation ? ['hs', 'xy'] : ['xy', 'hs']),
|
|
823
|
+
light_brightness_colortemp_colorhs: (colorTempRange) => new Light().withBrightness().withColorTemp(colorTempRange).withColorTempStartup(colorTempRange).withColor(['hs']),
|
|
824
|
+
light_brightness_colortemp_colorxy: (colorTempRange) => new Light().withBrightness().withColorTemp(colorTempRange).withColorTempStartup(colorTempRange).withColor(['xy']),
|
|
825
|
+
light_brightness_colorxy: () => new Light().withBrightness().withColor(['xy']),
|
|
826
|
+
light_colorhs: () => new Light().withColor(['hs']),
|
|
827
|
+
light_color_options: () => new Composite('color_options', 'color_options', exports.access.ALL)
|
|
828
|
+
.withDescription('Advanced color behavior')
|
|
829
|
+
.withFeature(new Binary('execute_if_off', exports.access.SET, true, false).withDescription('Controls whether color and color temperature can be set while light is off'))
|
|
830
|
+
.withCategory('config'),
|
|
831
|
+
linkquality: () => new Numeric('linkquality', exports.access.STATE)
|
|
832
|
+
.withUnit('lqi')
|
|
833
|
+
.withDescription('Link quality (signal strength)')
|
|
834
|
+
.withValueMin(0)
|
|
835
|
+
.withValueMax(255)
|
|
836
|
+
.withCategory('diagnostic'),
|
|
837
|
+
local_temperature: () => new Numeric('local_temperature', exports.access.STATE_GET).withUnit('°C').withDescription('Current temperature measured on the device'),
|
|
838
|
+
lock: () => new Lock().withState('state', 'LOCK', 'UNLOCK', 'State of the lock').withLockState('lock_state', 'Actual state of the lock'),
|
|
839
|
+
lock_action: () => new Enum('action', exports.access.STATE, [
|
|
840
|
+
'unknown',
|
|
841
|
+
'lock',
|
|
842
|
+
'unlock',
|
|
843
|
+
'lock_failure_invalid_pin_or_id',
|
|
844
|
+
'lock_failure_invalid_schedule',
|
|
845
|
+
'unlock_failure_invalid_pin_or_id',
|
|
846
|
+
'unlock_failure_invalid_schedule',
|
|
847
|
+
'one_touch_lock',
|
|
848
|
+
'key_lock',
|
|
849
|
+
'key_unlock',
|
|
850
|
+
'auto_lock',
|
|
851
|
+
'schedule_lock',
|
|
852
|
+
'schedule_unlock',
|
|
853
|
+
'manual_lock',
|
|
854
|
+
'manual_unlock',
|
|
855
|
+
'non_access_user_operational_event',
|
|
856
|
+
]).withDescription('Triggered action on the lock'),
|
|
857
|
+
lock_action_source_name: () => new Enum('action_source_name', exports.access.STATE, ['keypad', 'rfid', 'manual', 'rf']).withDescription('Source of the triggered action on the lock'),
|
|
858
|
+
lock_action_user: () => new Numeric('action_user', exports.access.STATE).withDescription('ID of user that triggered the action on the lock'),
|
|
859
|
+
max_cool_setpoint_limit: (min, max, step) => new Numeric('max_cool_setpoint_limit', exports.access.ALL)
|
|
860
|
+
.withUnit('°C')
|
|
861
|
+
.withDescription('Maximum Cooling set point limit')
|
|
862
|
+
.withValueMin(min)
|
|
863
|
+
.withValueMax(max)
|
|
864
|
+
.withValueStep(step),
|
|
865
|
+
min_cool_setpoint_limit: (min, max, step) => new Numeric('min_cool_setpoint_limit', exports.access.ALL)
|
|
866
|
+
.withUnit('°C')
|
|
867
|
+
.withDescription('Minimum Cooling point limit')
|
|
868
|
+
.withValueMin(min)
|
|
869
|
+
.withValueMax(max)
|
|
870
|
+
.withValueStep(step),
|
|
871
|
+
max_heat_setpoint_limit: (min, max, step) => new Numeric('max_heat_setpoint_limit', exports.access.ALL)
|
|
872
|
+
.withUnit('°C')
|
|
873
|
+
.withDescription('Maximum Heating set point limit')
|
|
874
|
+
.withValueMin(min)
|
|
875
|
+
.withValueMax(max)
|
|
876
|
+
.withValueStep(step),
|
|
877
|
+
min_heat_setpoint_limit: (min, max, step) => new Numeric('min_heat_setpoint_limit', exports.access.ALL)
|
|
878
|
+
.withUnit('°C')
|
|
879
|
+
.withDescription('Minimum Heating set point limit')
|
|
880
|
+
.withValueMin(min)
|
|
881
|
+
.withValueMax(max)
|
|
882
|
+
.withValueStep(step),
|
|
883
|
+
max_temperature: () => new Numeric('max_temperature', exports.access.STATE_SET).withUnit('°C').withDescription('Maximum temperature').withValueMin(15).withValueMax(35),
|
|
884
|
+
max_temperature_limit: () => new Numeric('max_temperature_limit', exports.access.STATE_SET)
|
|
885
|
+
.withUnit('°C')
|
|
886
|
+
.withDescription('Maximum temperature limit. Cuts the thermostat out regardless of air temperature if the external floor sensor exceeds this temperature. Only used by the thermostat when in AL sensor mode.')
|
|
887
|
+
.withValueMin(0)
|
|
888
|
+
.withValueMax(35),
|
|
889
|
+
min_temperature_limit: () => new Numeric('min_temperature_limit', exports.access.STATE_SET)
|
|
890
|
+
.withUnit('°C')
|
|
891
|
+
.withDescription('Minimum temperature limit for frost protection. Turns the thermostat on regardless of setpoint if the temperature drops below this.')
|
|
892
|
+
.withValueMin(1)
|
|
893
|
+
.withValueMax(5),
|
|
894
|
+
min_temperature: () => new Numeric('min_temperature', exports.access.STATE_SET).withUnit('°C').withDescription('Minimum temperature').withValueMin(1).withValueMax(15),
|
|
895
|
+
mode_switch_select: (mode_switch_names) => new Enum('mode_switch', exports.access.ALL, mode_switch_names).withDescription('Select mode switch to use').withCategory('config'),
|
|
896
|
+
motion_sensitivity_select: (motion_sensitivity_names) => new Enum('motion_sensitivity', exports.access.ALL, motion_sensitivity_names)
|
|
897
|
+
.withDescription('Select motion sensitivity to use')
|
|
898
|
+
.withCategory('config'),
|
|
899
|
+
noise: () => new Numeric('noise', exports.access.STATE).withUnit('dBA').withDescription('The measured noise value'),
|
|
900
|
+
noise_detected: () => new Binary('noise_detected', exports.access.STATE, true, false).withDescription('Indicates whether the device detected noise'),
|
|
901
|
+
occupancy: () => new Binary('occupancy', exports.access.STATE, true, false).withDescription('Indicates whether the device detected occupancy'),
|
|
902
|
+
occupancy_level: () => new Numeric('occupancy_level', exports.access.STATE).withDescription('The measured occupancy value'),
|
|
903
|
+
open_window: () => new Binary('open_window', exports.access.STATE_SET, 'ON', 'OFF').withDescription('Enables/disables the status on the device'),
|
|
904
|
+
open_window_temperature: () => new Numeric('open_window_temperature', exports.access.STATE_SET)
|
|
905
|
+
.withUnit('°C')
|
|
906
|
+
.withDescription('Open window temperature')
|
|
907
|
+
.withValueMin(0)
|
|
908
|
+
.withValueMax(35),
|
|
909
|
+
operation_mode_select: (operation_mode_names) => new Enum('operation_mode', exports.access.ALL, operation_mode_names).withDescription('Select operation mode to use').withCategory('config'),
|
|
910
|
+
overload_protection: (min, max) => new Numeric('overload_protection', exports.access.ALL)
|
|
911
|
+
.withUnit('W')
|
|
912
|
+
.withValueMin(min)
|
|
913
|
+
.withValueMax(max)
|
|
914
|
+
.withDescription('Maximum allowed load, turns off if exceeded')
|
|
915
|
+
.withCategory('config'),
|
|
916
|
+
pm1: () => new Numeric('pm1', exports.access.STATE).withLabel('PM1').withUnit('µg/m³').withDescription('Measured PM1 (particulate matter) concentration'),
|
|
917
|
+
pm10: () => new Numeric('pm10', exports.access.STATE).withLabel('PM10').withUnit('µg/m³').withDescription('Measured PM10 (particulate matter) concentration'),
|
|
918
|
+
pm25: () => new Numeric('pm25', exports.access.STATE).withLabel('PM25').withUnit('µg/m³').withDescription('Measured PM2.5 (particulate matter) concentration'),
|
|
919
|
+
position: () => new Numeric('position', exports.access.STATE).withUnit('%').withDescription('Position'),
|
|
920
|
+
power: () => new Numeric('power', exports.access.STATE).withUnit('W').withDescription('Instantaneous measured power').withCategory('diagnostic'),
|
|
921
|
+
power_phase_b: () => new Numeric('power_phase_b', exports.access.STATE)
|
|
922
|
+
.withUnit('W')
|
|
923
|
+
.withDescription('Instantaneous measured power on phase B')
|
|
924
|
+
.withCategory('diagnostic'),
|
|
925
|
+
power_phase_c: () => new Numeric('power_phase_c', exports.access.STATE)
|
|
926
|
+
.withUnit('W')
|
|
927
|
+
.withDescription('Instantaneous measured power on phase C')
|
|
928
|
+
.withCategory('diagnostic'),
|
|
929
|
+
power_factor: () => new Numeric('power_factor', exports.access.STATE).withDescription('Instantaneous measured power factor'),
|
|
930
|
+
power_factor_phase_b: () => new Numeric('power_factor_phase_b', exports.access.STATE).withDescription('Instantaneous measured power factor on phase B'),
|
|
931
|
+
power_factor_phase_c: () => new Numeric('power_factor_phase_c', exports.access.STATE).withDescription('Instantaneous measured power factor on phase C'),
|
|
932
|
+
power_apparent: () => new Numeric('power_apparent', exports.access.STATE).withUnit('VA').withDescription('Instantaneous measured apparent power'),
|
|
933
|
+
power_apparent_phase_b: () => new Numeric('power_apparent_phase_b', exports.access.STATE).withUnit('VA').withDescription('Instantaneous measured apparent power on phase B'),
|
|
934
|
+
power_apparent_phase_c: () => new Numeric('power_apparent_phase_c', exports.access.STATE).withUnit('VA').withDescription('Instantaneous measured apparent power on phase C'),
|
|
935
|
+
power_on_behavior: (values = ['off', 'previous', 'on']) => new Enum('power_on_behavior', exports.access.ALL, values)
|
|
936
|
+
.withLabel('Power-on behavior')
|
|
937
|
+
.withDescription('Controls the behavior when the device is powered on after power loss')
|
|
938
|
+
.withCategory('config'),
|
|
939
|
+
power_outage_count: (resetsWhenPairing = true) => new Numeric('power_outage_count', exports.access.STATE)
|
|
940
|
+
.withDescription('Number of power outages' + (resetsWhenPairing ? ' (since last pairing)' : ''))
|
|
941
|
+
.withCategory('diagnostic'),
|
|
942
|
+
power_outage_memory: () => new Binary('power_outage_memory', exports.access.ALL, true, false)
|
|
943
|
+
.withDescription('Enable/disable the power outage memory, this recovers the on/off mode after power failure')
|
|
944
|
+
.withCategory('config'),
|
|
945
|
+
power_reactive: () => new Numeric('power_reactive', exports.access.STATE).withUnit('VAR').withDescription('Instantaneous measured reactive power'),
|
|
946
|
+
power_reactive_phase_b: () => new Numeric('power_reactive_phase_b', exports.access.STATE).withUnit('VAR').withDescription('Instantaneous measured reactive power on phase B'),
|
|
947
|
+
power_reactive_phase_c: () => new Numeric('power_reactive_phase_c', exports.access.STATE).withUnit('VAR').withDescription('Instantaneous measured reactive power on phase C'),
|
|
948
|
+
presence: () => new Binary('presence', exports.access.STATE, true, false).withDescription('Indicates whether the device detected presence'),
|
|
949
|
+
pressure: () => new Numeric('pressure', exports.access.STATE).withUnit('hPa').withDescription('The measured atmospheric pressure'),
|
|
950
|
+
programming_operation_mode: (values = ['setpoint', 'schedule', 'schedule_with_preheat', 'eco']) => new Enum('programming_operation_mode', exports.access.ALL, values).withDescription('Controls how programming affects the thermostat. Possible values: setpoint (only use specified setpoint), schedule (follow programmed setpoint schedule), schedule_with_preheat (follow programmed setpoint schedule with pre-heating). Changing this value does not clear programmed schedules.'),
|
|
951
|
+
setup: () => new Binary('setup', exports.access.STATE, true, false).withDescription('Indicates if the device is in setup mode').withCategory('diagnostic'),
|
|
952
|
+
schedule: () => new Binary('schedule', exports.access.ALL, true, false)
|
|
953
|
+
.withDescription('When enabled, the device will change its state based on your schedule settings')
|
|
954
|
+
.withCategory('config'),
|
|
955
|
+
schedule_settings: () => new Text('schedule_settings', exports.access.ALL).withDescription('Allows schedule configuration').withCategory('config'),
|
|
956
|
+
external_temperature_input: () => new Numeric('external_temperature_input', exports.access.ALL)
|
|
957
|
+
.withUnit('°C')
|
|
958
|
+
.withValueMin(0)
|
|
959
|
+
.withValueMax(55)
|
|
960
|
+
.withDescription('Input for remote temperature sensor')
|
|
961
|
+
.withCategory('config'),
|
|
962
|
+
smoke: () => new Binary('smoke', exports.access.STATE, true, false).withDescription('Indicates whether the device detected smoke'),
|
|
963
|
+
soil_moisture: () => new Numeric('soil_moisture', exports.access.STATE).withUnit('%').withDescription('Measured soil moisture value'),
|
|
964
|
+
sos: () => new Binary('sos', exports.access.STATE, true, false).withLabel('SOS').withDescription('SOS alarm'),
|
|
965
|
+
sound_volume: () => new Enum('sound_volume', exports.access.ALL, ['silent_mode', 'low_volume', 'high_volume']).withDescription('Sound volume of the lock'),
|
|
966
|
+
switch: (description = 'On/off state of the switch') => new Switch().withState('state', true, description),
|
|
967
|
+
switch_type: () => new Enum('switch_type', exports.access.ALL, ['toggle', 'momentary']).withDescription('Wall switch type'),
|
|
968
|
+
door_state: () => new Enum('door_state', exports.access.STATE, [
|
|
969
|
+
'open',
|
|
970
|
+
'closed',
|
|
971
|
+
'error_jammed',
|
|
972
|
+
'error_forced_open',
|
|
973
|
+
'error_unspecified',
|
|
974
|
+
'undefined',
|
|
975
|
+
]).withDescription('State of the door'),
|
|
976
|
+
tamper: () => new Binary('tamper', exports.access.STATE, true, false).withDescription('Indicates whether the device is tampered'),
|
|
977
|
+
temperature: () => new Numeric('temperature', exports.access.STATE).withUnit('°C').withDescription('Measured temperature value'),
|
|
978
|
+
temperature_sensor_select: (sensor_names) => new Enum('sensor', exports.access.STATE_SET, sensor_names).withDescription('Select temperature sensor to use').withCategory('config'),
|
|
979
|
+
test: () => new Binary('test', exports.access.STATE, true, false).withDescription('Indicates whether the device is being tested'),
|
|
980
|
+
trigger_count: (sinceScheduledReport = true) => new Numeric('trigger_count', exports.access.STATE)
|
|
981
|
+
.withDescription('Indicates how many times the sensor was triggered' + (sinceScheduledReport ? ' (since last scheduled report)' : ''))
|
|
982
|
+
.withCategory('diagnostic'),
|
|
983
|
+
trigger_indicator: () => new Binary('trigger_indicator', exports.access.ALL, true, false).withDescription('Enables trigger indication').withCategory('config'),
|
|
984
|
+
valve_alarm: () => new Binary('valve_alarm', exports.access.STATE, true, false).withCategory('diagnostic'),
|
|
985
|
+
valve_position: () => new Numeric('position', exports.access.ALL).withValueMin(0).withValueMax(100).withDescription('Position of the valve'),
|
|
986
|
+
valve_switch: () => new Binary('state', exports.access.ALL, 'OPEN', 'CLOSE').withDescription('Valve state if open or closed'),
|
|
987
|
+
valve_state: () => new Binary('valve_state', exports.access.STATE, 'OPEN', 'CLOSED').withDescription('Valve state if open or closed'),
|
|
988
|
+
valve_detection: () => new Switch().withLabel('Valve detection').withState('valve_detection', true, 'Valve detection').setAccess('state', exports.access.STATE_SET), // left for compatability, do not use
|
|
989
|
+
valve_detection_bool: () => new Binary('valve_detection', exports.access.ALL, true, false)
|
|
990
|
+
.withDescription('Determines if temperature control abnormalities should be detected')
|
|
991
|
+
.withCategory('config'),
|
|
992
|
+
vibration: () => new Binary('vibration', exports.access.STATE, true, false).withDescription('Indicates whether the device detected vibration'),
|
|
993
|
+
tilt: () => new Binary('tilt', exports.access.STATE, true, false).withDescription('Indicates whether the device detected tilt'),
|
|
994
|
+
voc: () => new Numeric('voc', exports.access.STATE).withLabel('VOC').withUnit('µg/m³').withDescription('Measured VOC value'),
|
|
995
|
+
voc_index: () => new Numeric('voc_index', exports.access.STATE).withLabel('VOC index').withDescription('VOC index'),
|
|
996
|
+
voltage: () => new Numeric('voltage', exports.access.STATE).withUnit('V').withDescription('Measured electrical potential value').withCategory('diagnostic'),
|
|
997
|
+
voltage_phase_b: () => new Numeric('voltage_phase_b', exports.access.STATE)
|
|
998
|
+
.withLabel('Voltage phase B')
|
|
999
|
+
.withUnit('V')
|
|
1000
|
+
.withDescription('Measured electrical potential value on phase B'),
|
|
1001
|
+
voltage_phase_c: () => new Numeric('voltage_phase_c', exports.access.STATE)
|
|
1002
|
+
.withLabel('Voltage phase C')
|
|
1003
|
+
.withUnit('V')
|
|
1004
|
+
.withDescription('Measured electrical potential value on phase C'),
|
|
1005
|
+
water_leak: () => new Binary('water_leak', exports.access.STATE, true, false).withDescription('Indicates whether the device detected a water leak'),
|
|
1006
|
+
pilot_wire_mode: (values = ['comfort', 'eco', 'frost_protection', 'off', 'comfort_-1', 'comfort_-2']) => new Enum('pilot_wire_mode', exports.access.ALL, ['comfort', 'eco', 'frost_protection', 'off', 'comfort_-1', 'comfort_-2']).withDescription('Controls the target temperature of the heater, with respect to the temperature set on that heater. Possible values: comfort (target temperature = heater set temperature) eco (target temperature = heater set temperature - 3.5°C), frost_protection (target temperature = 7 to 8°C), off (heater stops heating), and the less commonly used comfort_-1 (target temperature = heater set temperature - 1°C), comfort_-2 (target temperature = heater set temperature - 2°C),.'),
|
|
1007
|
+
rain: () => new Binary('rain', exports.access.STATE, true, false).withDescription('Indicates whether the device detected rainfall'),
|
|
1008
|
+
warning: () => new Composite('warning', 'warning', exports.access.SET)
|
|
1009
|
+
.withFeature(new Enum('mode', exports.access.SET, [
|
|
1010
|
+
'stop',
|
|
1011
|
+
'burglar',
|
|
1012
|
+
'fire',
|
|
1013
|
+
'emergency',
|
|
1014
|
+
'police_panic',
|
|
1015
|
+
'fire_panic',
|
|
1016
|
+
'emergency_panic',
|
|
1017
|
+
]).withDescription('Mode of the warning (sound effect)'))
|
|
1018
|
+
.withFeature(new Enum('level', exports.access.SET, ['low', 'medium', 'high', 'very_high']).withDescription('Sound level'))
|
|
1019
|
+
.withFeature(new Enum('strobe_level', exports.access.SET, ['low', 'medium', 'high', 'very_high']).withDescription('Intensity of the strobe'))
|
|
1020
|
+
.withFeature(new Binary('strobe', exports.access.SET, true, false).withDescription('Turn on/off the strobe (light) during warning'))
|
|
1021
|
+
.withFeature(new Numeric('strobe_duty_cycle', exports.access.SET).withValueMax(10).withValueMin(0).withDescription('Length of the flash cycle'))
|
|
1022
|
+
.withFeature(new Numeric('duration', exports.access.SET).withUnit('s').withDescription('Duration in seconds of the alarm')),
|
|
1023
|
+
week: () => new Enum('week', exports.access.STATE_SET, ['5+2', '6+1', '7']).withDescription('Week format user for schedule'),
|
|
1024
|
+
window_detection: () => new Switch()
|
|
1025
|
+
.withLabel('Window detection')
|
|
1026
|
+
.withState('window_detection', true, 'Enables/disables window detection on the device', exports.access.STATE_SET), // left for compatability, do not use
|
|
1027
|
+
window_detection_bool: () => new Binary('window_detection', exports.access.ALL, true, false)
|
|
1028
|
+
.withDescription('Enables/disables window detection on the device')
|
|
1029
|
+
.withCategory('config'),
|
|
1030
|
+
window_open: () => new Binary('window_open', exports.access.STATE, true, false).withDescription('Indicates if window is open').withCategory('diagnostic'),
|
|
1031
|
+
moving: () => new Binary('moving', exports.access.STATE, true, false).withDescription('Indicates if the device is moving'),
|
|
1032
|
+
x_axis: () => new Numeric('x_axis', exports.access.STATE).withDescription('Accelerometer X value'),
|
|
1033
|
+
y_axis: () => new Numeric('y_axis', exports.access.STATE).withDescription('Accelerometer Y value'),
|
|
1034
|
+
z_axis: () => new Numeric('z_axis', exports.access.STATE).withDescription('Accelerometer Z value'),
|
|
1035
|
+
pincode: () => new Composite('pin_code', 'pin_code', exports.access.ALL)
|
|
1036
|
+
.withFeature(new Numeric('user', exports.access.SET).withDescription('User ID to set or clear the pincode for'))
|
|
1037
|
+
.withFeature(new Enum('user_type', exports.access.SET, ['unrestricted', 'year_day_schedule', 'week_day_schedule', 'master', 'non_access']).withDescription('Type of user, unrestricted: owner (default), (year|week)_day_schedule: user has ability to open lock based on specific time period, master: user has ability to both program and operate the door lock, non_access: user is recognized by the lock but does not have the ability to open the lock'))
|
|
1038
|
+
.withFeature(new Binary('user_enabled', exports.access.SET, true, false).withDescription('Whether the user is enabled/disabled'))
|
|
1039
|
+
.withFeature(new Numeric('pin_code', exports.access.SET).withLabel('PIN code').withDescription('Pincode to set, set pincode to null to clear')),
|
|
1040
|
+
squawk: () => new Composite('squawk', 'squawk', exports.access.SET)
|
|
1041
|
+
.withFeature(new Enum('state', exports.access.SET, ['system_is_armed', 'system_is_disarmed']).withDescription('Set Squawk state'))
|
|
1042
|
+
.withFeature(new Enum('level', exports.access.SET, ['low', 'medium', 'high', 'very_high']).withDescription('Sound level'))
|
|
1043
|
+
.withFeature(new Binary('strobe', exports.access.SET, true, false).withDescription('Turn on/off the strobe (light) for Squawk')),
|
|
1044
|
+
identify_duration: () => new Numeric('identify', exports.access.SET)
|
|
1045
|
+
.withValueMin(0)
|
|
1046
|
+
.withValueMax(30)
|
|
1047
|
+
.withUnit('seconds')
|
|
1048
|
+
.withDescription('Duration of flashing')
|
|
1049
|
+
.withCategory('config'),
|
|
1050
|
+
identify: () => new Enum('identify', exports.access.SET, ['identify']).withDescription('Ititiate device identification').withCategory('config'),
|
|
1051
|
+
min_brightness: () => new Numeric('min_brightness', exports.access.ALL).withValueMin(1).withValueMax(255).withDescription('Minimum light brightness'),
|
|
1052
|
+
max_brightness: () => new Numeric('max_brightness', exports.access.ALL).withValueMin(1).withValueMax(255).withDescription('Maximum light brightness'),
|
|
1053
|
+
};
|
|
1054
|
+
exports.binary = (name, access, valueOn, valueOff) => new Binary(name, access, valueOn, valueOff);
|
|
1055
|
+
exports.climate = () => new Climate();
|
|
1056
|
+
exports.composite = (name, property, access) => new Composite(name, property, access);
|
|
1057
|
+
exports.cover = () => new Cover();
|
|
1058
|
+
exports.enum = (name, access, values) => new Enum(name, access, values);
|
|
1059
|
+
exports.light = () => new Light();
|
|
1060
|
+
exports.numeric = (name, access) => new Numeric(name, access);
|
|
1061
|
+
exports.switch = () => new Switch();
|
|
1062
|
+
exports.text = (name, access) => new Text(name, access);
|
|
1063
|
+
exports.list = (name, access, itemType) => new List(name, access, itemType);
|
|
1064
|
+
exports.lock = () => new Lock();
|
|
1065
|
+
//# sourceMappingURL=exposes.js.map
|