| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
NodeJS library using the AHA api of Fritzbox to control DECT smarthome devices. This library is not, in any way, affiliated or related to AVM GmbH or Fritz GmbH. Use it at your own risk.
it is an common js module with named exports. it exposes 2 classes, the API (Fritz) and an emulation (FritzEmu)
install the released version on npm with
npm install fritzdect-aha-nodejsconst Fritz = require('fritzdect-aha-nodejs').Fritz;
fritz = new Fritz(yourUsername, yourPassword, your.Url || '', your.options || {});
//your async function
...
const login = await fritz.login_SID();
const devicelistinfos = await fritz.getDeviceListInfos();
const logout = await fritz.logout_SID();
...see the example.js.
| API-call | implements FB call |
|---|---|
| getDeviceListInfos() | getdevicelistinfos |
| getTemplateListInfos() | gettemplatelistinfos |
| getTriggerListInfos() | gettriggerlistinfos |
| getColorDefaults() | getcolordefaults |
| getDeviceInfos(ain) | getdeviceinfos |
| getBasicDeviceStats(ain) | getbasicdevicestats |
| getSwitchList() | getswitchlist |
| getSwitchState(ain) | getswitchstate |
| getSwitchPresent(ain) | getswitchpresent |
| getSwitchPower(ain) | getswitchpower |
| getSwitchEnergy(ain) | getswitchenergy |
| getSwitchName(ain) | getswitchname |
| getTemperature(ain) | gettemperature |
| getHkrTsoll(ain) | gethkrtsoll |
| getHkrKomfort(ain) | gethkrkomfort |
| getHkrAbsenk(ain) | gethkrabsenk |
| getUserPermissions() | not a FB call |
| API-call | implements FB call |
|---|---|
| applyTemplate(ain) | applytemplate |
| setSwitchOn(ain) | setswitchon |
| setSwitchOff(ain) | setswitchoff |
| setSwitchToggle(ain) | setswitchtoggle |
| setSimpleOn(ain) | setsimpleonoff&onoff=1 |
| setSimpleOff(ain) | setsimpleonoff&onoff=0 |
| setSimpleToggle(ain) | setsimpletoggle |
| setTempTarget(ain, temp) | sethkrtsoll |
| setHkrBoost(ain, time) | sethkrboost |
| setWindowOpen(ain, time) | sethkrwindowopen |
| setBlind(ain, target) | setblind |
| setLevel(ain, level) | setlevel |
| setColorTemperature(ain, temp) | setcolortemperature |
| setColor(ain, saturation, hue) | setcolor |
| setUnmappedColor(ain, saturation, hue) | setunmappedcolor |
| setTriggerActive(ain, active) | settriggeractive |
Copyright (c) 2022-2023 foxthefox foxthefox@wysiwis.net
see [LICENSE.md]
| Back | FazBrowse Home | New Git URL |