MCPcopy Index your code

hub / github.com/cbrandlehner/homebridge-daikin-local / functions

Functions87 in github.com/cbrandlehner/homebridge-daikin-local

↓ 56 callersMethodon
()
test/helpers/mock-homebridge.js:24
↓ 50 callersMethodgetCharacteristic
(name)
test/helpers/mock-homebridge.js:43
↓ 24 callersMethodupdateValue
()
test/helpers/mock-homebridge.js:28
↓ 9 callersFunctioncreateDaikin
* Create a Daikin-Local accessory instance with a minimal Homebridge mock. * * @param {object} [config={}] Accessory config overrides. * @returns {
test/helpers/mock-homebridge.js:79
↓ 9 callersMethodsetCharacteristic
(name, value)
test/helpers/mock-homebridge.js:48
↓ 7 callersFunctionparseResponse
(response)
src/utils.js:10
↓ 6 callersFunctionmapDaikinModeToCurrentHeaterCoolerState
* @param {string|undefined} mode Daikin mode code. * @param {string|undefined} pow Power state (0/1). * @param {object} states HomeKit CurrentHeater
src/utils.js:95
↓ 6 callersFunctionparseTemperatureDisplayUnits
(value, units)
src/utils.js:66
↓ 5 callersFunctionmapDaikinModeToTargetHeaterCoolerState
* @param {string|undefined} mode Daikin mode code. * @param {string|undefined} pow Power state (0/1). * @param {object} states HomeKit TargetHeaterC
src/utils.js:120
↓ 4 callersFunctiongetCoolingThresholdFromControl
* Cooling threshold for HomeKit. Uses active setpoint in cool mode, stored dt7 otherwise. * * @param {object} responseValues Parsed get_control_info
src/utils.js:141
↓ 4 callersFunctionisDaikinAutoMode
* Some firmware reports auto as mode=0; mode=1 is also auto on other units. * * @param {string|undefined} mode Daikin mode code. * @returns {boolea
src/utils.js:85
↓ 4 callersFunctionparseThresholdField
(responseValues, field)
src/utils.js:74
↓ 4 callersFunctionrawToDaikinSpeed
(rawFanSpeed)
src/utils.js:306
↓ 4 callersMethodsetProps
()
test/helpers/mock-homebridge.js:20
↓ 3 callersFunctionbroadcastFaikoutStatus
()
dev/mock-daikin-server.js:32
↓ 3 callersFunctionbuildWebSocketStatusUrl
* Build the Faikout WebSocket status URL from apiroute and a resolved host. * * @param {string} apiroute Configured controller origin. * @param {st
src/utils.js:291
↓ 3 callersFunctiondaikinSpeedToRaw
(daikinSpeed)
src/utils.js:28
↓ 3 callersFunctiongetHeatingThresholdFromControl
* Heating threshold for HomeKit. Uses active setpoint in heat mode, stored dt5 otherwise. * * @param {object} responseValues Parsed get_control_info
src/utils.js:172
↓ 3 callersFunctionisIpAddress
* @param {string} host Hostname or IP address. * @returns {boolean}
src/utils.js:212
↓ 3 callersFunctionreplaceHostInUrl
* Swap the URL hostname for a resolved IP while preserving port, path, and query. * * @param {string} url Request URL. * @param {string} resolvedIP
src/utils.js:274
↓ 3 callersFunctionshouldRouteCoolingSetToHeating
* Siri may invoke the cooling threshold setter while the unit is heating. * * @param {string|undefined} mode Daikin mode code. * @returns {boolean}
src/utils.js:196
↓ 3 callersFunctionshouldRouteHeatingSetToCooling
* @param {string|undefined} mode Daikin mode code. * @returns {boolean}
src/utils.js:204
↓ 3 callersMethodupdateCharacteristic
()
test/helpers/mock-homebridge.js:32
↓ 2 callersFunctionapplyControlParams
(state, params, system)
dev/fixtures/daikin-responses.js:56
↓ 2 callersFunctionapplyFaikoutJsonControl
(state, payload)
dev/fixtures/daikin-responses.js:128
↓ 2 callersFunctionapplyHttpsTls
(request)
src/index.js:393
↓ 2 callersFunctiongetDefaultHttpAgent
()
src/index.js:455
↓ 2 callersFunctionisOpenSSL3
()
src/index.js:389
↓ 2 callersFunctionresolveControllerHost
* Resolve a configured controller host to IPv4. IP literals pass through unchanged. * * @param {string} hostname Hostname or IP from apiroute. * @r
src/utils.js:248
↓ 1 callersFunctionclearDnsCache
Clear the in-memory DNS cache (used by tests).
src/utils.js:238
↓ 1 callersFunctioncreateDefaultState
()
dev/fixtures/daikin-responses.js:28
↓ 1 callersFunctioncreateMockLog
@returns {object} Minimal Homebridge logger mock.
test/helpers/mock-homebridge.js:4
↓ 1 callersFunctiongetCachedDnsAddress
* @param {string} hostname Configured controller hostname. * @returns {string|undefined}
src/utils.js:220
↓ 1 callersFunctiongetDefaultAgent
()
src/index.js:444
↓ 1 callersFunctiongetLegacyAgent
()
src/index.js:428
↓ 1 callersFunctionhandleSetControlInfo
(pathname)
dev/mock-daikin-server.js:41
↓ 1 callersFunctionlogHttpsTlsPath
(log, apiroute)
src/index.js:405
↓ 1 callersFunctionparseQuery
(path)
dev/fixtures/daikin-responses.js:39
↓ 1 callersFunctionreadCoolingTemperature
* @param {object} daikin Daikin accessory instance. * @returns {Promise<number>} Cooling threshold reported to HomeKit.
test/helpers/mock-homebridge.js:168
↓ 1 callersFunctionreadCurrentTemperature
* @param {object} daikin Daikin accessory instance. * @returns {Promise<number>} Current indoor temperature in degrees Celsius.
test/helpers/mock-homebridge.js:117
↓ 1 callersFunctionreadFanSpeed
* @param {object} daikin Daikin accessory instance. * @returns {Promise<number>} Fan speed percentage reported to HomeKit.
test/helpers/mock-homebridge.js:134
↓ 1 callersFunctionreadHeaterCoolerState
* @param {object} daikin Daikin accessory instance. * @returns {Promise<number>} Current heater/cooler state reported to HomeKit.
test/helpers/mock-homebridge.js:151
↓ 1 callersFunctionreadJsonBody
(request)
dev/mock-daikin-server.js:52
↓ 1 callersFunctionsetCachedDnsAddress
* @param {string} hostname Configured controller hostname. * @param {string} address Resolved IPv4 address.
src/utils.js:233
↓ 1 callersFunctionwriteCoolingTemperature
* @param {object} daikin Daikin accessory instance. * @param {number} temperature Target temperature in degrees Celsius. * @returns {Promise<void>}
test/helpers/mock-homebridge.js:186
FunctionCache
(expiration /* seconds */)
src/cache.js:3
FunctionDaikin
(log, config)
src/index.js:40
FunctionQueue
()
src/queue.js:1
Function_doSendGetRequest
(path, callback, options)
src/index.js:522
Function_queueGetRequest
(path, callback, options)
src/index.js:477
Function_resolveHost
(callback)
src/index.js:507
Function_serveFromCache
(path, callback, options)
src/index.js:596
Functionaction
()
src/queue.js:7
FunctioncloseFaikinWebSocket
()
src/index.js:956
FunctionconnectFaikinWebSocket
()
src/index.js:749
Methodconstructor
(name)
test/helpers/mock-homebridge.js:16
Methodconstructor
(name)
test/helpers/mock-homebridge.js:38
FunctiongetActive
(callback)
src/index.js:975
FunctiongetActiveFV
(callback)
src/index.js:990
FunctiongetCoolingTemperature
(callback)
src/index.js:1410
FunctiongetCoolingTemperatureFV
(callback)
src/index.js:1418
FunctiongetCurrentHumidity
(callback)
src/index.js:1376
FunctiongetCurrentHumidityFV
(callback)
src/index.js:1384
FunctiongetCurrentOutsideTemperature
(callback)
src/index.js:1394
FunctiongetCurrentTemperature
(callback)
src/index.js:1349
FunctiongetCurrentTemperatureFV
(callback)
src/index.js:1365
FunctiongetFanSpeedFV
(callback)
src/index.js:1881
FunctiongetFanStatusFV
(callback)
src/index.js:1799
FunctiongetHeaterCoolerState
(callback)
src/index.js:1262
FunctiongetHeaterCoolerStateFV
(callback)
src/index.js:1275
FunctiongetHeatingTemperature
(callback)
src/index.js:1456
FunctiongetHeatingTemperatureFV
(callback)
src/index.js:1464
FunctiongetSwingMode
(callback)
src/index.js:1056
FunctiongetSwingModeFV
(callback)
src/index.js:1095
FunctiongetTargetHeaterCoolerState
(callback)
src/index.js:1286
FunctiongetTargetHeaterCoolerStateFV
(callback)
src/index.js:1300
FunctionregisterAccessory
(_plugin, _name, Constructor)
test/helpers/mock-homebridge.js:94
FunctionsendFaikinControl
(controlData, callback)
src/index.js:628
FunctionsendFaikinControlFallback
(controlData, callback)
src/index.js:680
FunctionsendFaikinWebSocketCommand
(controlData, callback)
src/index.js:928
FunctionsendGetRequest
(path, callback, options)
src/index.js:471
FunctionsetActive
(power, callback)
src/index.js:1000
FunctionsetCoolingTemperature
(temperature, callback)
src/index.js:1430
FunctionsetHeatingTemperature
(temperature, callback)
src/index.js:1475
FunctionsetSwingMode
(swing, callback)
src/index.js:1106
FunctionsetTargetHeaterCoolerState
(state, callback)
src/index.js:1311
Functionshutdown
()
dev/start-mock-servers.js:32