-
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
Conversation
support for Airzone Aidoo Zigbee - AZAI6ZBEMHI
src/devices/AirzoneAidoo.ts
Outdated
tz.fan_mode, | ||
], | ||
exposes: [ | ||
e.local_temperature(), |
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.
Please use e.climate()
instead (search this repo for examples)
src/devices/AirzoneAidoo.ts
Outdated
endpoint: (device: Device): { [key: string]: number } => { | ||
return { 'system': 1 }; | ||
}, | ||
meta: { configureKey: 1 } as any, |
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.
This can be removed
src/devices/AirzoneAidoo.ts
Outdated
e.enum('fan_mode', ea.ALL, ['off', 'low', 'medium', 'high', 'on', 'auto']) | ||
.withDescription('Fan mode'), | ||
], | ||
endpoint: (device: Device): { [key: string]: number } => { |
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.
This can be removed
src/devices/AirzoneAidoo.ts
Outdated
@@ -0,0 +1,66 @@ | |||
import {Definition, Device, Endpoint, Logger} from 'zigbee-herdsman-converters'; |
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.
import {Definition, Device, Endpoint, Logger} from 'zigbee-herdsman-converters'; | |
import {Definition, Device, Endpoint, Logger} from '../lib/types'; |
src/devices/AirzoneAidoo.ts
Outdated
|
||
const definition: Definition = { | ||
zigbeeModel: ['Aidoo Zigbee'], | ||
model: 'Aidoo Zigbee AZAI6ZBEMHI', |
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.
model: 'Aidoo Zigbee AZAI6ZBEMHI', | |
model: 'AZAI6ZBEMHI', |
src/devices/AirzoneAidoo.ts
Outdated
.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 comment
The reason will be displayed to describe this comment to others. Learn more.
e.binary('switch', ea.ALL), | |
e.switch(), |
src/devices/AirzoneAidoo.ts
Outdated
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), | ||
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 comment
The reason will be displayed to describe this comment to others. Learn more.
e.enum('fan_mode', ea.ALL, ['off', 'low', 'medium', 'high', 'on', 'auto']) | |
e.fan().withModes(['off', 'low', 'medium', 'high', 'on', 'auto']) |
src/devices/AirzoneAidoo.ts
Outdated
await reporting.onOff(endpoint, logger); | ||
await reporting.fanMode(endpoint, logger); | ||
}, | ||
device: { |
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.
This is not used, can be removed
src/devices/AirzoneAidoo.ts
Outdated
.withSetpoint('occupied_cooling_setpoint', 5, 30, 0.5) | ||
] | ||
}, | ||
ha_category: 'climate' |
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.
This is not used, can be removed
@Koenkk thanks for there pointers. used e.climate as you pointed out. Still getting the following build error and clueless as on how to fix: I did the swap you mentioned above:
|
File name shouldn't be "airzone.ts" ? Regarding the Model / Desciption : The device can be used to control remotely an AC, it is compatible with many different kinds of AC Brands. Here you mention only the version compatible with Mitshubishi. In terms of Zigbee functionnality, it is only 1 product, so I think it would make more sense to make something generic as done in #7405 otherwise we would need to create dozens of reference. Also, the ACLouverPosition Attribute is missing here. |
@AlexisPolegato could you submit a pr to fix these problems? |
Added support for Airzone Aidoo Zigbee - AZAI6ZBEMHI