Constructors
constructor
new Fritz ( username , password , url ? ) : Fritz
Parameters
username : string
password : string
Optional
url : string
Properties
get Battery Charge
get Battery Charge : IExt < unknown > = ...
get Bulb List
get Bulb List : IBase < string [] > = ...
get Button List
get Button List : IBase < string [] > = ...
get Color Bulb List
get Color Bulb List : IBase < string [] > = ...
get Switch Energy
get Switch Energy : IExt < number > = ...
get Switch Name
get Switch Name : IExt < string > = ...
get Switch Power
get Switch Power : IExt < null | number > = ...
get Switch Presence
get Switch Presence : IExt < boolean > = ...
get Switch State
get Switch State : IExt < boolean > = ...
get Template List
get Template List : IBase < any [] > = ...
get Thermostat List
get Thermostat List : IBase < any > = ...
get Window Open
get Window Open : IExt < boolean > = ...
Protected
password
password : string
set Switch Off
set Switch Off : IExt < boolean > = ...
set Switch On
set Switch On : IExt < boolean > = ...
set Switch Toggle
set Switch Toggle : IExt < boolean > = ...
Protected
sid
sid : null | string
Protected
url
url : string = defaultUrl
Protected
username
username : string
Methods
apply Template
apply Template ( ain ) : Promise < unknown >
Returns Promise < unknown >
check Session
check Session ( ) : Promise < boolean >
Returns Promise < boolean >
execute Command
execute Command < T > ( sid , command , ain , path ? , ... param ) : Promise < T >
Parameters
sid : boolean
command : null | string
ain : null | string
Optional
path : string
Rest
... param : string []
Returns Promise < T >
get Basic Device Stats
get Basic Device Stats ( ain ) : Promise < unknown >
Returns Promise < unknown >
get Device List Infos
get Device List Infos ( ) : Promise < string >
Returns Promise < string >
get Guest Wlan
get Guest Wlan ( ) : Promise < any >
Returns Promise < any >
getOSVersion
getOSVersion ( ) : Promise < null | string >
Returns Promise < null | string >
get Phone List
get Phone List ( ) : Promise < unknown >
Returns Promise < unknown >
get Presence
get Presence ( ain ) : Promise < boolean >
Returns Promise < boolean >
getSID
getSID ( ) : Promise < string >
Returns Promise < string >
Private
get SessionID
get SessionID ( username , password ) : Promise < string >
Private
Parameters
username : string
password : string
Returns Promise < string >
get Switch List
get Switch List ( ) : Promise < any [] >
Returns Promise < any [] >
get Temperature
get Temperature ( ain ) : Promise < number >
Returns Promise < number >
get Template List Infos
get Template List Infos ( ) : Promise < string >
Returns Promise < string >
parse Guest WlanHTML
parse Guest WlanHTML ( html ) : void
Returns void
set Blind
set Blind ( ain , blindState ) : Promise < string | number >
Parameters
ain : string
blindState : string | number
Returns Promise < string | number >
set Color
set Color ( ain , color , satindex , duration ) : Promise < ColorName >
Parameters
ain : string
satindex : number
duration : number
set Color Temperature
set Color Temperature ( ain , temperature , duration ) : Promise < 6500 | 5900 | 5300 | 4700 | 4200 | 3800 | 3400 | 3000 | 2700 >
Parameters
ain : string
temperature : number
duration : number
Returns Promise < 6500 | 5900 | 5300 | 4700 | 4200 | 3800 | 3400 | 3000 | 2700 >
set Guest Wlan
set Guest Wlan ( enable ) : Promise < void >
Returns Promise < void >
set Hkr Boost
set Hkr Boost ( ain , endtime ) : Promise < number >
Parameters
ain : string
endtime : number
Returns Promise < number >
set Hkr Offset
set Hkr Offset ( deviceId , offset ) : Promise < number >
Parameters
deviceId : string
offset : number
Returns Promise < number >
set Hkr Window Open
set Hkr Window Open ( ain , endtime ) : Promise < void >
Parameters
ain : string
endtime : number
Returns Promise < void >
set Level
set Level ( ain , level ) : Promise < number >
Parameters
ain : string
level : number
Returns Promise < number >
set Level Percentage
set Level Percentage ( ain , levelInPercent ) : Promise < number >
Parameters
ain : string
levelInPercent : number
Returns Promise < number >
set Simple On Off
set Simple On Off ( ain , state ) : Promise < IState >
Returns Promise < IState >
set Temp Target
set Temp Target ( ain , temp ) : Promise < number >
Returns Promise < number >
Static
Private
http Request
http Request < T > ( request , options ? ) : Promise < T >
Private
Returns Promise < T >
Default constructor