在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:lukasroegner/homebridge-dyson-pure-cool开源软件地址:https://github.com/lukasroegner/homebridge-dyson-pure-cool开源编程语言:JavaScript 100.0%开源软件介绍:homebridge-dyson-pure-coolIMPORTANT: Breaking Changes in version 2.0.0Dyson has introduced two factor authentication for Dyson accounts. Due to the complexity of the authentication flow, you MUST configure credentials for each device in the config. To obtain the credentials, please follow the instructions below. Supported Devices and FeaturesThis project is a homebridge plugin for the Dyson air purifiers. Supported devices are:
All your devices are exposed as air purifiers in HomeKit, with support (also in Apple Home app) for:
For heating devices, a thermostat is also exposes to HomeKit with support for:
For humidifier devices, a humidifier is also exposes to HomeKit with support for:
Optionally, the following switches are exposed:
The plugin is optimized for usage of the Home app in iOS 13, e.g. the night mode and jet focus switches are combined in a separate settings accessory. This can be changed in the config. InstallationOption 1: Install the plugin via config-ui-x:
Option 2: Install the plugin via npm: npm install homebridge-dyson-pure-cool -g Retrieve CredentialsFor each Dyson device that you want to use with this plugin, credentials have to be retrieved from the Dyson API. Step 1: Configure the plugin (don't add devices to the devices array if you don't already have the credentials for them). If you're setting up the plugin for the first time, you can simply use the following configuration: {
"platforms": [
{
"platform": "DysonPureCoolPlatform",
"devices": [],
"updateInterval": 60000,
"credentialsGeneratorPort": 48000
}
]
} Step 2: Start homebridge Step 3: Open a browser and navigate to Step 4: Follow the steps on the website to retrieve the credentials for all of the devices that are registered in your Dyson account. If you get a 401 or 400 error: Try the following:
This method seems to work for most people, see #196 for instance. Step 5: Now you can add the devices to the configuration (see below) and restart homebridge. Configuration{
"platforms": [
{
"platform": "DysonPureCoolPlatform",
"devices": [
{
"ipAddress": "XXX.XXX.XXX.XXX",
"serialNumber": "XXX-EU-XXXXXXXX",
"credentials": "xxx...xxx",
"useFahrenheit": false,
"enableAutoModeWhenActivating": false,
"enableOscillationWhenActivating": false,
"enableNightModeWhenActivating": false,
"isNightModeEnabled": false,
"isJetFocusEnabled": false,
"isContinuousMonitoringEnabled": false,
"isTemperatureSensorEnabled": false,
"isTemperatureIgnored": false,
"temperatureOffset": 0,
"isHumiditySensorEnabled": false,
"isHumidityIgnored": false,
"humidityOffset": 0,
"isAirQualitySensorEnabled": false,
"isAirQualityIgnored": false,
"isSingleAccessoryModeEnabled": false,
"isFullRangeHumidity": false,
"isHeatingDisabled": false,
"isHeatingSafetyIgnored": false
}
],
"updateInterval": 60000,
"credentialsGeneratorPort": 48000
}
]
} devices: Array of all your Dyson devices. ipAddress: Local IP address of the device. Leave out leading zeros (e.g. 192.168.0.1 instead of 192.168.000.001). serialNumber: Serial number of the device. credentials: The credentials for connecting to the device. They can be retrieved via the credentials generator (website), see instructions above. useFahrenheit: If set to enableAutoModeWhenActivating: If set to enableOscillationWhenActivating: If set to enableNightModeWhenActivating: If set to isNightModeEnabled: If set to isJetFocusEnabled: If set to isContinuousMonitoringEnabled: If set to isTemperatureSensorEnabled: If set to isTemperatureIgnored: If set to temperatureOffset: Negatively or positively offset the value reported by the temperature sensor before exposing it to HomeKit. Provide the value in degree Celsius. isHumiditySensorEnabled: If set to isHumidityIgnored: If set to humidityOffset: Negatively or positively offset the value reported by the humidity sensor before exposing it to HomeKit. Provide the value in degree Celsius. isAirQualitySensorEnabled: If set to isAirQualityIgnored: If set to isSingleSensorAccessoryModeEnabled: If set to isSingleAccessoryModeEnabled: If set to isFullRangeHumidity: Only for PH01/PH02/PH03/PH04. If set to isHeatingDisabled: Only for HP02/HP04/HP06/HP07/HP09. If set to isHeatingSafetyIgnored: Only for HP02/HP04/HP06/HP07/HP09. If set to updateInterval (optional): The interval (in milliseconds) at which updates of the sensors are requested from the Dyson devices. Defaults to 60 seconds. credentialsGeneratorPort (optional): The port number for the (credentials generator) website. Only change this setting in case of a port collision. Using Multiple DevicesWhen setting up multiple devices, it's very easy to get the serial number, IP address and credentials mismatched. This will result in silent failures and non-responsive devices. You can check if you've got this issue by enabled debug in your homebridge controller and reviewing the logs for authentication failures. To avoid this situation, take special care to match the serial number of the unit in the Dyson app with the last six digits of the mac address found on the appliance and then double check your IP address matches. It's strongly recommended you setup a reserved IP address for the unit via your DHCP server so you can be certain the serial number matches the IP address. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论