zigbee-herdsman-converters 21.9.0 → 21.9.2
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 +16 -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/legrand.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Zcl } from 'zigbee-herdsman';
|
|
2
|
+
import { Fz, KeyValueAny, OnEvent, Tz, Zh } from '../lib/types';
|
|
3
|
+
import * as exposes from './exposes';
|
|
4
|
+
export declare const legrandOptions: {
|
|
5
|
+
manufacturerCode: Zcl.ManufacturerCode;
|
|
6
|
+
disableDefaultResponse: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const eLegrand: {
|
|
9
|
+
identify: () => exposes.Enum;
|
|
10
|
+
ledInDark: () => exposes.Binary;
|
|
11
|
+
ledIfOn: () => exposes.Binary;
|
|
12
|
+
getCover: (device: Zh.Device) => exposes.Cover;
|
|
13
|
+
getCalibrationModes: (isNLLVSwitch: boolean) => exposes.Enum;
|
|
14
|
+
};
|
|
15
|
+
export declare const readInitialBatteryState: OnEvent;
|
|
16
|
+
export declare const tzLegrand: {
|
|
17
|
+
auto_mode: {
|
|
18
|
+
key: string[];
|
|
19
|
+
convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Endpoint | import("zigbee-herdsman/dist/controller/model").Group, key: string, value: unknown, meta: Tz.Meta) => Promise<{
|
|
20
|
+
state: {
|
|
21
|
+
auto_mode: unknown;
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
25
|
+
calibration_mode: (isNLLVSwitch: boolean) => {
|
|
26
|
+
key: string[];
|
|
27
|
+
convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Endpoint | import("zigbee-herdsman/dist/controller/model").Group, key: string, value: unknown, meta: Tz.Meta) => Promise<void>;
|
|
28
|
+
convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Endpoint | import("zigbee-herdsman/dist/controller/model").Group, key: string, meta: Tz.Meta) => Promise<void>;
|
|
29
|
+
};
|
|
30
|
+
led_mode: {
|
|
31
|
+
key: string[];
|
|
32
|
+
convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Endpoint | import("zigbee-herdsman/dist/controller/model").Group, key: string, value: unknown, meta: Tz.Meta) => Promise<{
|
|
33
|
+
state: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Endpoint | import("zigbee-herdsman/dist/controller/model").Group, key: string, meta: Tz.Meta) => Promise<void>;
|
|
38
|
+
};
|
|
39
|
+
identify: {
|
|
40
|
+
key: string[];
|
|
41
|
+
options: exposes.Composite[];
|
|
42
|
+
convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Endpoint | import("zigbee-herdsman/dist/controller/model").Group, key: string, value: unknown, meta: Tz.Meta) => Promise<void>;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const fzLegrand: {
|
|
46
|
+
calibration_mode: (isNLLVSwitch: boolean) => {
|
|
47
|
+
cluster: string;
|
|
48
|
+
type: string[];
|
|
49
|
+
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
|
|
50
|
+
calibration_mode: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
cluster_fc01: {
|
|
54
|
+
cluster: string;
|
|
55
|
+
type: string[];
|
|
56
|
+
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => KeyValueAny;
|
|
57
|
+
};
|
|
58
|
+
command_cover: {
|
|
59
|
+
cluster: string;
|
|
60
|
+
type: string[];
|
|
61
|
+
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => KeyValueAny;
|
|
62
|
+
};
|
|
63
|
+
identify: {
|
|
64
|
+
cluster: string;
|
|
65
|
+
type: string[];
|
|
66
|
+
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=legrand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legrand.d.ts","sourceRoot":"","sources":["../../src/lib/legrand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,iBAAiB,CAAC;AAEpC,OAAO,EAAC,EAAE,EAAE,WAAW,EAAkB,OAAO,EAAE,EAAE,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;AAE9E,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAwDrC,eAAO,MAAM,cAAc;;;CAAuF,CAAC;AAEnH,eAAO,MAAM,QAAQ;;;;uBAgBE,EAAE,CAAC,MAAM;wCAuBQ,OAAO;CAO9C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,OAKrC,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;qCAUe,OAAO;;;;;;;;;;;;;;;;;;;CAgD3C,CAAC;AAEF,eAAO,MAAM,SAAS;qCACe,OAAO;;;;;;;;;;;;;;;;;;;;;;CAgF3C,CAAC"}
|
package/lib/legrand.js
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.fzLegrand = exports.tzLegrand = exports.readInitialBatteryState = exports.eLegrand = exports.legrandOptions = void 0;
|
|
37
|
+
const zigbee_herdsman_1 = require("zigbee-herdsman");
|
|
38
|
+
const utils = __importStar(require("../lib/utils"));
|
|
39
|
+
const exposes = __importStar(require("./exposes"));
|
|
40
|
+
const logger_1 = require("./logger");
|
|
41
|
+
const NS = 'zhc:legrand';
|
|
42
|
+
const e = exposes.presets;
|
|
43
|
+
const ea = exposes.access;
|
|
44
|
+
const shutterCalibrationModes = {
|
|
45
|
+
0: { description: 'classic_nllv', onlyNLLV: true, supportsTilt: false },
|
|
46
|
+
1: { description: 'specific_nllv', onlyNLLV: true, supportsTilt: false },
|
|
47
|
+
2: { description: 'up_down_stop', onlyNLLV: false, supportsTilt: false },
|
|
48
|
+
3: { description: 'temporal', onlyNLLV: false, supportsTilt: false },
|
|
49
|
+
4: { description: 'venetian_bso', onlyNLLV: false, supportsTilt: true },
|
|
50
|
+
};
|
|
51
|
+
const ledModes = {
|
|
52
|
+
1: 'led_in_dark',
|
|
53
|
+
2: 'led_if_on',
|
|
54
|
+
};
|
|
55
|
+
const ledEffects = {
|
|
56
|
+
0: 'blink 3',
|
|
57
|
+
1: 'fixed',
|
|
58
|
+
2: 'blink green',
|
|
59
|
+
3: 'blink blue',
|
|
60
|
+
};
|
|
61
|
+
const ledColors = {
|
|
62
|
+
0: 'default',
|
|
63
|
+
1: 'red',
|
|
64
|
+
2: 'green',
|
|
65
|
+
3: 'blue',
|
|
66
|
+
4: 'lightblue',
|
|
67
|
+
5: 'yellow',
|
|
68
|
+
6: 'pink',
|
|
69
|
+
7: 'white',
|
|
70
|
+
};
|
|
71
|
+
const optsLegrand = {
|
|
72
|
+
identityEffect: () => {
|
|
73
|
+
return e
|
|
74
|
+
.composite('Identity effect', 'identity_effect', ea.SET)
|
|
75
|
+
.withDescription('Defines the identification effect to simplify the device identification.')
|
|
76
|
+
.withFeature(e.enum('effect', ea.SET, Object.values(ledEffects)).withLabel('Effect'))
|
|
77
|
+
.withFeature(e.enum('color', ea.SET, Object.values(ledColors)).withLabel('Color'));
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
const getApplicableCalibrationModes = (isNLLVSwitch) => {
|
|
81
|
+
return Object.fromEntries(Object.entries(shutterCalibrationModes)
|
|
82
|
+
.filter((e) => (isNLLVSwitch ? true : e[1].onlyNLLV === false))
|
|
83
|
+
.map((e) => [e[0], e[1].description]));
|
|
84
|
+
};
|
|
85
|
+
exports.legrandOptions = { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.LEGRAND_GROUP, disableDefaultResponse: true };
|
|
86
|
+
exports.eLegrand = {
|
|
87
|
+
identify: () => {
|
|
88
|
+
return e
|
|
89
|
+
.enum('identify', ea.SET, ['identify'])
|
|
90
|
+
.withDescription('Blinks the built-in LED to make it easier to identify the device')
|
|
91
|
+
.withCategory('config');
|
|
92
|
+
},
|
|
93
|
+
ledInDark: () => {
|
|
94
|
+
return e
|
|
95
|
+
.binary('led_in_dark', ea.ALL, 'ON', 'OFF')
|
|
96
|
+
.withDescription('Enables the built-in LED allowing to see the switch in the dark')
|
|
97
|
+
.withCategory('config');
|
|
98
|
+
},
|
|
99
|
+
ledIfOn: () => {
|
|
100
|
+
return e.binary('led_if_on', ea.ALL, 'ON', 'OFF').withDescription('Enables the LED on activity').withCategory('config');
|
|
101
|
+
},
|
|
102
|
+
getCover: (device) => {
|
|
103
|
+
const c = e.cover_position();
|
|
104
|
+
const calMode = Number(device?.getEndpoint(1)?.clusters?.closuresWindowCovering?.attributes?.calibrationMode);
|
|
105
|
+
const showTilt = calMode ? shutterCalibrationModes[calMode]?.supportsTilt === true : false;
|
|
106
|
+
if (showTilt) {
|
|
107
|
+
c.addFeature(new exposes.Numeric('tilt', ea.ALL)
|
|
108
|
+
.withValueMin(0)
|
|
109
|
+
.withValueMax(100)
|
|
110
|
+
.withValueStep(25)
|
|
111
|
+
.withPreset('Closed', 0, 'Vertical')
|
|
112
|
+
.withPreset('25 %', 25, '25%')
|
|
113
|
+
.withPreset('50 %', 50, '50%')
|
|
114
|
+
.withPreset('75 %', 75, '75%')
|
|
115
|
+
.withPreset('Open', 100, 'Horizontal')
|
|
116
|
+
.withUnit('%')
|
|
117
|
+
.withDescription('Tilt percentage of that cover'));
|
|
118
|
+
}
|
|
119
|
+
return c;
|
|
120
|
+
},
|
|
121
|
+
getCalibrationModes: (isNLLVSwitch) => {
|
|
122
|
+
const modes = getApplicableCalibrationModes(isNLLVSwitch);
|
|
123
|
+
return e
|
|
124
|
+
.enum('calibration_mode', ea.ALL, Object.values(modes))
|
|
125
|
+
.withDescription('Defines the calibration mode of the switch. (Caution: Changing modes requires a recalibration of the shutter switch!)')
|
|
126
|
+
.withCategory('config');
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
const readInitialBatteryState = async (type, data, device, options) => {
|
|
130
|
+
if (['deviceAnnounce'].includes(type)) {
|
|
131
|
+
const endpoint = device.getEndpoint(1);
|
|
132
|
+
await endpoint.read('genPowerCfg', ['batteryVoltage'], exports.legrandOptions);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
exports.readInitialBatteryState = readInitialBatteryState;
|
|
136
|
+
exports.tzLegrand = {
|
|
137
|
+
auto_mode: {
|
|
138
|
+
key: ['auto_mode'],
|
|
139
|
+
convertSet: async (entity, key, value, meta) => {
|
|
140
|
+
const mode = utils.getFromLookup(value, { off: 0x00, auto: 0x02, on_override: 0x03 });
|
|
141
|
+
const payload = { data: Buffer.from([mode]) };
|
|
142
|
+
await entity.command('manuSpecificLegrandDevices3', 'command0', payload);
|
|
143
|
+
return { state: { auto_mode: value } };
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
calibration_mode: (isNLLVSwitch) => {
|
|
147
|
+
return {
|
|
148
|
+
key: ['calibration_mode'],
|
|
149
|
+
convertSet: async (entity, key, value, meta) => {
|
|
150
|
+
const applicableModes = getApplicableCalibrationModes(isNLLVSwitch);
|
|
151
|
+
utils.validateValue(value, Object.values(applicableModes));
|
|
152
|
+
const idx = utils.getKey(applicableModes, value);
|
|
153
|
+
await entity.write('closuresWindowCovering', { calibrationMode: idx }, exports.legrandOptions);
|
|
154
|
+
},
|
|
155
|
+
convertGet: async (entity, key, meta) => {
|
|
156
|
+
await entity.read('closuresWindowCovering', ['calibrationMode'], exports.legrandOptions);
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
led_mode: {
|
|
161
|
+
key: ['led_in_dark', 'led_if_on'],
|
|
162
|
+
convertSet: async (entity, key, value, meta) => {
|
|
163
|
+
utils.validateValue(key, Object.values(ledModes));
|
|
164
|
+
const idx = utils.getKey(ledModes, key);
|
|
165
|
+
const state = value === 'ON' || (value === 'OFF' ? false : !!value);
|
|
166
|
+
const payload = { [idx]: { value: state, type: 16 } };
|
|
167
|
+
await entity.write('manuSpecificLegrandDevices', payload, exports.legrandOptions);
|
|
168
|
+
return { state: { [key]: value } };
|
|
169
|
+
},
|
|
170
|
+
convertGet: async (entity, key, meta) => {
|
|
171
|
+
utils.validateValue(key, Object.values(ledModes));
|
|
172
|
+
const idx = utils.getKey(ledModes, key);
|
|
173
|
+
await entity.read('manuSpecificLegrandDevices', [Number(idx)], exports.legrandOptions);
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
identify: {
|
|
177
|
+
key: ['identify'],
|
|
178
|
+
options: [optsLegrand.identityEffect()],
|
|
179
|
+
convertSet: async (entity, key, value, meta) => {
|
|
180
|
+
const identityEffect = meta.options.identity_effect;
|
|
181
|
+
const selEffect = identityEffect?.effect ?? ledEffects[0];
|
|
182
|
+
const selColor = identityEffect?.color ?? ledColors[0];
|
|
183
|
+
const effectID = utils.getFromLookupByValue(selEffect, ledEffects, '0');
|
|
184
|
+
const effectVariant = utils.getFromLookupByValue(selColor, ledColors, '0');
|
|
185
|
+
// Trigger an effect
|
|
186
|
+
const payload = { effectid: effectID, effectvariant: effectVariant };
|
|
187
|
+
await entity.command('genIdentify', 'triggerEffect', payload, {});
|
|
188
|
+
// Trigger the identification
|
|
189
|
+
await entity.command('genIdentify', 'identify', { identifytime: 10 }, {});
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
exports.fzLegrand = {
|
|
194
|
+
calibration_mode: (isNLLVSwitch) => {
|
|
195
|
+
return {
|
|
196
|
+
cluster: 'closuresWindowCovering',
|
|
197
|
+
type: ['attributeReport', 'readResponse'],
|
|
198
|
+
convert: (model, msg, publish, options, meta) => {
|
|
199
|
+
const attr = 'calibrationMode';
|
|
200
|
+
if (msg.data[attr] !== undefined) {
|
|
201
|
+
const applicableModes = getApplicableCalibrationModes(isNLLVSwitch);
|
|
202
|
+
const idx = msg.data[attr];
|
|
203
|
+
utils.validateValue(String(idx), Object.keys(applicableModes));
|
|
204
|
+
const calMode = applicableModes[idx];
|
|
205
|
+
return { calibration_mode: calMode };
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
cluster_fc01: {
|
|
211
|
+
cluster: 'manuSpecificLegrandDevices',
|
|
212
|
+
type: ['readResponse'],
|
|
213
|
+
convert: (model, msg, publish, options, meta) => {
|
|
214
|
+
const payload = {};
|
|
215
|
+
if (msg.data['0'] !== undefined) {
|
|
216
|
+
const option0 = msg.data['0'];
|
|
217
|
+
if (option0 === 0x0001)
|
|
218
|
+
payload.device_mode = 'pilot_off';
|
|
219
|
+
else if (option0 === 0x0002)
|
|
220
|
+
payload.device_mode = 'pilot_on';
|
|
221
|
+
else if (option0 === 0x0003)
|
|
222
|
+
payload.device_mode = 'switch';
|
|
223
|
+
else if (option0 === 0x0004)
|
|
224
|
+
payload.device_mode = 'auto';
|
|
225
|
+
else if (option0 === 0x0100)
|
|
226
|
+
payload.device_mode = 'dimmer_off';
|
|
227
|
+
else if (option0 === 0x0101)
|
|
228
|
+
payload.device_mode = 'dimmer_on';
|
|
229
|
+
else {
|
|
230
|
+
logger_1.logger.warning(`Device_mode ${option0} not recognized, please fix me!`, NS);
|
|
231
|
+
payload.device_mode = 'unknown';
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (msg.data['1'] !== undefined)
|
|
235
|
+
payload.led_in_dark = msg.data['1'] === 0x00 ? 'OFF' : 'ON';
|
|
236
|
+
if (msg.data['2'] !== undefined)
|
|
237
|
+
payload.led_if_on = msg.data['2'] === 0x00 ? 'OFF' : 'ON';
|
|
238
|
+
return payload;
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
command_cover: {
|
|
242
|
+
cluster: 'closuresWindowCovering',
|
|
243
|
+
type: ['attributeReport', 'readResponse'],
|
|
244
|
+
convert: (model, msg, publish, options, meta) => {
|
|
245
|
+
const payload = {};
|
|
246
|
+
if (msg.data.tuyaMovingState !== undefined) {
|
|
247
|
+
if ((0, utils.hasAlreadyProcessedMessage)(msg, model))
|
|
248
|
+
return;
|
|
249
|
+
if (msg.data['tuyaMovingState'] === 0) {
|
|
250
|
+
// return {
|
|
251
|
+
// action: 'open',
|
|
252
|
+
// };
|
|
253
|
+
payload['action'] = (0, utils.postfixWithEndpointName)('OPEN', msg, model, meta);
|
|
254
|
+
(0, utils.addActionGroup)(payload, msg, model);
|
|
255
|
+
}
|
|
256
|
+
if (msg.data['tuyaMovingState'] === 100) {
|
|
257
|
+
// return {
|
|
258
|
+
// action: 'closed',
|
|
259
|
+
// };
|
|
260
|
+
payload['action'] = (0, utils.postfixWithEndpointName)('CLOSE', msg, model, meta);
|
|
261
|
+
(0, utils.addActionGroup)(payload, msg, model);
|
|
262
|
+
}
|
|
263
|
+
if (msg.data['tuyaMovingState'] >= 1 && msg.data['tuyaMovingState'] < 100) {
|
|
264
|
+
// return {
|
|
265
|
+
// action: 'stop',
|
|
266
|
+
// };
|
|
267
|
+
payload['action'] = (0, utils.postfixWithEndpointName)('STOP', msg, model, meta);
|
|
268
|
+
(0, utils.addActionGroup)(payload, msg, model);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return payload;
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
identify: {
|
|
275
|
+
cluster: 'genIdentify',
|
|
276
|
+
type: ['attributeReport', 'readResponse'],
|
|
277
|
+
convert: (model, msg, publish, options, meta) => {
|
|
278
|
+
return {};
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
};
|
|
282
|
+
//# sourceMappingURL=legrand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legrand.js","sourceRoot":"","sources":["../../src/lib/legrand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAoC;AAGpC,oDAAsC;AACtC,mDAAqC;AACrC,qCAAgC;AAEhC,MAAM,EAAE,GAAG,aAAa,CAAC;AACzB,MAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;AAC1B,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;AAE1B,MAAM,uBAAuB,GAAmF;IAC5G,CAAC,EAAE,EAAC,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAC;IACrE,CAAC,EAAE,EAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAC;IACtE,CAAC,EAAE,EAAC,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAC;IACtE,CAAC,EAAE,EAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAC;IAClE,CAAC,EAAE,EAAC,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAC;CACxE,CAAC;AAEF,MAAM,QAAQ,GAA0B;IACpC,CAAC,EAAE,aAAa;IACh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OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;YAC5C,OAAO,EAAE,CAAC;QACd,CAAC;KACmB;CAC3B,CAAC"}
|
package/lib/light.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Tz, Zh } from './types';
|
|
2
|
+
export declare function readColorAttributes(entity: Zh.Endpoint | Zh.Group, meta: Tz.Meta, additionalAttributes?: string[]): string[];
|
|
3
|
+
export declare function findColorTempRange(entity: Zh.Endpoint | Zh.Group): number[];
|
|
4
|
+
export declare function clampColorTemp(colorTemp: number, colorTempMin: number, colorTempMax: number): number;
|
|
5
|
+
export declare function configure(device: Zh.Device, coordinatorEndpoint: Zh.Endpoint, readColorTempMinMaxAttribute: boolean): Promise<void>;
|
|
6
|
+
//# sourceMappingURL=light.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../src/lib/light.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAE,EAAE,EAAC,MAAM,SAAS,CAAC;AAa/B,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,oBAAoB,GAAE,MAAM,EAAO,YAkCrH;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,KAAK,YA2BhE;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAU3F;AACD,wBAAsB,SAAS,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,mBAAmB,EAAE,EAAE,CAAC,QAAQ,EAAE,4BAA4B,EAAE,OAAO,iBAiBzH"}
|
package/lib/light.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.readColorAttributes = readColorAttributes;
|
|
37
|
+
exports.findColorTempRange = findColorTempRange;
|
|
38
|
+
exports.clampColorTemp = clampColorTemp;
|
|
39
|
+
exports.configure = configure;
|
|
40
|
+
const logger_1 = require("./logger");
|
|
41
|
+
const utils = __importStar(require("./utils"));
|
|
42
|
+
const NS = 'zhc:light';
|
|
43
|
+
async function readColorCapabilities(endpoint) {
|
|
44
|
+
await endpoint.read('lightingColorCtrl', ['colorCapabilities']);
|
|
45
|
+
}
|
|
46
|
+
async function readColorTempMinMax(endpoint) {
|
|
47
|
+
await endpoint.read('lightingColorCtrl', ['colorTempPhysicalMin', 'colorTempPhysicalMax']);
|
|
48
|
+
}
|
|
49
|
+
function readColorAttributes(entity, meta, additionalAttributes = []) {
|
|
50
|
+
/**
|
|
51
|
+
* Not all bulbs support the same features, we need to take care we read what is supported.
|
|
52
|
+
* `supportsHueAndSaturation` indicates support for currentHue and currentSaturation
|
|
53
|
+
* `supportsEnhancedHue` indicates support for enhancedCurrentHue
|
|
54
|
+
*
|
|
55
|
+
* e.g. IKEA Tådfri LED1624G9 only supports XY (https://github.com/Koenkk/zigbee-herdsman-converters/issues/1340)
|
|
56
|
+
*
|
|
57
|
+
* Additionally when we get a "get payload", only request the fields included.
|
|
58
|
+
*/
|
|
59
|
+
const attributes = ['colorMode'];
|
|
60
|
+
if (meta && meta.message) {
|
|
61
|
+
if (!meta.message.color || (utils.isObject(meta.message.color) && meta.message.color.x !== undefined)) {
|
|
62
|
+
attributes.push('currentX');
|
|
63
|
+
}
|
|
64
|
+
if (!meta.message.color || (utils.isObject(meta.message.color) && meta.message.color.y !== undefined)) {
|
|
65
|
+
attributes.push('currentY');
|
|
66
|
+
}
|
|
67
|
+
if (utils.getMetaValue(entity, meta.mapped, 'supportsHueAndSaturation', 'allEqual', true)) {
|
|
68
|
+
if (!meta.message.color || (utils.isObject(meta.message.color) && meta.message.color.hue !== undefined)) {
|
|
69
|
+
if (utils.getMetaValue(entity, meta.mapped, 'supportsEnhancedHue', 'allEqual', true)) {
|
|
70
|
+
attributes.push('enhancedCurrentHue');
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
attributes.push('currentHue');
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (!meta.message.color || (utils.isObject(meta.message.color) && meta.message.color.saturation !== undefined)) {
|
|
77
|
+
attributes.push('currentSaturation');
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return [...attributes, ...additionalAttributes];
|
|
82
|
+
}
|
|
83
|
+
function findColorTempRange(entity) {
|
|
84
|
+
let colorTempMin;
|
|
85
|
+
let colorTempMax;
|
|
86
|
+
if (utils.isGroup(entity)) {
|
|
87
|
+
const minCandidates = entity.members
|
|
88
|
+
.map((m) => m.getClusterAttributeValue('lightingColorCtrl', 'colorTempPhysicalMin'))
|
|
89
|
+
.filter((v) => v != null)
|
|
90
|
+
.map((v) => Number(v));
|
|
91
|
+
if (minCandidates.length > 0) {
|
|
92
|
+
colorTempMin = Math.max(...minCandidates);
|
|
93
|
+
}
|
|
94
|
+
const maxCandidates = entity.members
|
|
95
|
+
.map((m) => m.getClusterAttributeValue('lightingColorCtrl', 'colorTempPhysicalMax'))
|
|
96
|
+
.filter((v) => v != null)
|
|
97
|
+
.map((v) => Number(v));
|
|
98
|
+
if (maxCandidates.length > 0) {
|
|
99
|
+
colorTempMax = Math.min(...maxCandidates);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
colorTempMin = entity.getClusterAttributeValue('lightingColorCtrl', 'colorTempPhysicalMin');
|
|
104
|
+
colorTempMax = entity.getClusterAttributeValue('lightingColorCtrl', 'colorTempPhysicalMax');
|
|
105
|
+
}
|
|
106
|
+
if (colorTempMin == null || colorTempMax == null) {
|
|
107
|
+
const entityId = utils.isGroup(entity) ? entity.groupID : entity.deviceIeeeAddress;
|
|
108
|
+
logger_1.logger.debug(`Missing colorTempPhysicalMin and/or colorTempPhysicalMax for ${utils.isGroup(entity) ? 'group' : 'endpoint'} ${entityId}!`, NS);
|
|
109
|
+
}
|
|
110
|
+
return [colorTempMin, colorTempMax];
|
|
111
|
+
}
|
|
112
|
+
function clampColorTemp(colorTemp, colorTempMin, colorTempMax) {
|
|
113
|
+
if (colorTempMin != null && colorTemp < colorTempMin) {
|
|
114
|
+
logger_1.logger.debug(`Requested color_temp ${colorTemp} is lower than minimum supported ${colorTempMin}, using minimum!`, NS);
|
|
115
|
+
return colorTempMin;
|
|
116
|
+
}
|
|
117
|
+
if (colorTempMax != null && colorTemp > colorTempMax) {
|
|
118
|
+
logger_1.logger.debug(`Requested color_temp ${colorTemp} is higher than maximum supported ${colorTempMax}, using maximum!`, NS);
|
|
119
|
+
return colorTempMax;
|
|
120
|
+
}
|
|
121
|
+
return colorTemp;
|
|
122
|
+
}
|
|
123
|
+
async function configure(device, coordinatorEndpoint, readColorTempMinMaxAttribute) {
|
|
124
|
+
if (device.powerSource === 'Unknown') {
|
|
125
|
+
device.powerSource = 'Mains (single phase)';
|
|
126
|
+
device.save();
|
|
127
|
+
}
|
|
128
|
+
for (const endpoint of device.endpoints.filter((e) => e.supportsInputCluster('lightingColorCtrl'))) {
|
|
129
|
+
try {
|
|
130
|
+
await readColorCapabilities(endpoint);
|
|
131
|
+
if (readColorTempMinMaxAttribute) {
|
|
132
|
+
await readColorTempMinMax(endpoint);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
catch {
|
|
136
|
+
/* Fails for some, e.g. https://github.com/Koenkk/zigbee2mqtt/issues/5717 */
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.readColorCapabilities = readColorCapabilities;
|
|
141
|
+
exports.readColorTempMinMax = readColorTempMinMax;
|
|
142
|
+
exports.readColorAttributes = readColorAttributes;
|
|
143
|
+
exports.findColorTempRange = findColorTempRange;
|
|
144
|
+
exports.clampColorTemp = clampColorTemp;
|
|
145
|
+
exports.configure = configure;
|
|
146
|
+
//# sourceMappingURL=light.js.map
|
package/lib/light.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"light.js","sour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AqB,GAAG,qBAAqB,CAAC;AACtD,OAAO,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;AAClD,OAAO,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;AAClD,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AAChD,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;AACxC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
package/lib/logger.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/lib/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAE/B,eAAO,IAAI,MAAM,EAAE,MASlB,CAAC;AAEF,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAEzC"}
|
package/lib/logger.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logger = void 0;
|
|
4
|
+
exports.setLogger = setLogger;
|
|
5
|
+
exports.logger = {
|
|
6
|
+
debug: (messageOrLambda, namespace) => console.debug(`${namespace}: ${typeof messageOrLambda === 'function' ? messageOrLambda() : messageOrLambda}`),
|
|
7
|
+
info: (messageOrLambda, namespace) => console.info(`${namespace}: ${typeof messageOrLambda === 'function' ? messageOrLambda() : messageOrLambda}`),
|
|
8
|
+
warning: (messageOrLambda, namespace) => console.warn(`${namespace}: ${typeof messageOrLambda === 'function' ? messageOrLambda() : messageOrLambda}`),
|
|
9
|
+
error: (messageOrLambda, namespace) => console.error(`${namespace}: ${typeof messageOrLambda === 'function' ? messageOrLambda() : messageOrLambda}`),
|
|
10
|
+
};
|
|
11
|
+
function setLogger(l) {
|
|
12
|
+
exports.logger = l;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/lib/logger.ts"],"names":[],"mappings":";;;AAaA,8BAEC;AAbU,QAAA,MAAM,GAAW;IACxB,KAAK,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,EAAE,CAClC,OAAO,CAAC,KAAK,CAAC,GAAG,SAAS,KAAK,OAAO,eAAe,KAAK,UAAU,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IACjH,IAAI,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,EAAE,CACjC,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,KAAK,OAAO,eAAe,KAAK,UAAU,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IAChH,OAAO,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,EAAE,CACpC,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,KAAK,OAAO,eAAe,KAAK,UAAU,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IAChH,KAAK,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,EAAE,CAClC,OAAO,CAAC,KAAK,CAAC,GAAG,SAAS,KAAK,OAAO,eAAe,KAAK,UAAU,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;CACpH,CAAC;AAEF,SAAgB,SAAS,CAAC,CAAS;IAC/B,cAAM,GAAG,CAAC,CAAC;AACf,CAAC"}
|