-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Airzone Aidoo Zigbee - AZAI6ZBEMHI #7636
Changes from 13 commits
fe144a0
74022a6
342763b
ac890d8
4c313d3
67120c2
bedd8ba
7656c85
9924fde
8fe85bb
7b4b365
6d11324
2db797a
957e8fc
99d0eaa
2c38838
e07d81b
43215a5
d74edd7
60a940e
e83d085
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,66 @@ | ||||||
import {Definition, Device, Endpoint, Logger} from 'zigbee-herdsman-converters'; | ||||||
import * as exposes from '../lib/exposes'; | ||||||
import fz from '../converters/fromZigbee'; | ||||||
import tz from '../converters/toZigbee'; | ||||||
import * as reporting from '../lib/reporting'; | ||||||
|
||||||
const e = exposes.presets; | ||||||
const ea = exposes.access; | ||||||
|
||||||
const definition: Definition = { | ||||||
zigbeeModel: ['Aidoo Zigbee'], | ||||||
model: 'Aidoo Zigbee AZAI6ZBEMHI', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
vendor: 'Airzone', | ||||||
description: 'Gateway for two-way control and integration of AirCon Units.AZAI6ZBEMHI for Mitsubishi Heavy', | ||||||
fromZigbee: [fz.thermostat, fz.on_off, fz.fan], | ||||||
toZigbee: [ | ||||||
tz.thermostat_local_temperature, | ||||||
tz.thermostat_occupied_heating_setpoint, | ||||||
tz.thermostat_occupied_cooling_setpoint, | ||||||
tz.thermostat_system_mode, | ||||||
tz.on_off, | ||||||
tz.fan_mode, | ||||||
], | ||||||
exposes: [ | ||||||
e.local_temperature(), | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use |
||||||
e.numeric('occupied_heating_setpoint', ea.ALL) | ||||||
.withUnit('°C') | ||||||
.withDescription('Occupied heating setpoint'), | ||||||
e.numeric('occupied_cooling_setpoint', ea.ALL) | ||||||
.withUnit('°C') | ||||||
.withDescription('Specifies the cooling mode setpoint when the room is occupied.'), | ||||||
e.enum('system_mode', ea.ALL, ['off', 'auto', 'cool', 'heat', 'fan_only', 'dry']) | ||||||
.withDescription('Specifies the current operating mode of the thermostat. Supported values are:\n- 0x00 = OFF\n- 0x01 = Auto\n- 0x03 = Cool\n- 0x04 = Heat\n- 0x07 = Fan Only\n- 0x08 = Dry'), | ||||||
e.binary('switch', ea.ALL), | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
e.enum('fan_mode', ea.ALL, ['off', 'low', 'medium', 'high', 'on', 'auto']) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
.withDescription('Fan mode'), | ||||||
], | ||||||
endpoint: (device: Device): { [key: string]: number } => { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed |
||||||
return { 'system': 1 }; | ||||||
}, | ||||||
meta: { configureKey: 1 } as any, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed |
||||||
configure: async (device: Device, coordinatorEndpoint: Endpoint, logger: Logger): Promise<void> => { | ||||||
const endpoint = device.getEndpoint(1); | ||||||
await reporting.bind(endpoint, coordinatorEndpoint, ['hvacThermostat', 'hvacFanCtrl', 'genOnOff'], logger); | ||||||
await reporting.thermostatTemperature(endpoint, logger); | ||||||
await reporting.thermostatOccupiedHeatingSetpoint(endpoint, logger); | ||||||
await reporting.thermostatOccupiedCoolingSetpoint(endpoint, logger); | ||||||
await reporting.onOff(endpoint, logger); | ||||||
await reporting.fanMode(endpoint, logger); | ||||||
}, | ||||||
device: { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not used, can be removed |
||||||
type: 'climate', | ||||||
features: [ | ||||||
e.climate() | ||||||
.withLocalTemperature() | ||||||
.withSystemMode(['off', 'auto', 'cool', 'heat', 'fan_only', 'dry']) | ||||||
.withRunningState(['idle', 'heat', 'cool']) | ||||||
.withFanMode(['off', 'low', 'medium', 'high', 'on', 'auto']) | ||||||
.withSetpoint('occupied_heating_setpoint', 5, 30, 0.5) | ||||||
.withSetpoint('occupied_cooling_setpoint', 5, 30, 0.5) | ||||||
] | ||||||
}, | ||||||
ha_category: 'climate' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not used, can be removed |
||||||
}; | ||||||
|
||||||
export default definition; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.