Skip to content
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

Merged
merged 21 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions src/devices/airzone_aidoo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import {Definition} from '../lib/types';
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 definitions: Definition[] = [
{
zigbeeModel: ['Aidoo Zigbee'],
model: 'AZAI6ZBEMHI',
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.climate()
.withLocalTemperature()
.withSystemMode(['off', 'auto', 'cool', 'heat', 'fan_only', 'dry'])
.withFanMode(['off', 'low', 'medium', 'high', 'on', 'auto'])
.withSetpoint('occupied_heating_setpoint', 5, 30, 0.5)
.withSetpoint('occupied_cooling_setpoint', 5, 30, 0.5),
e.switch(),
],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['hvacThermostat', 'hvacFanCtrl', 'genOnOff']);
await reporting.thermostatTemperature(endpoint);
await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
await reporting.onOff(endpoint);
await reporting.fanMode(endpoint);
},
},
];

export default definitions;
module.exports = definitions;
2 changes: 2 additions & 0 deletions src/devices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import adeo from './adeo';
import adurosmart from './adurosmart';
import aeotec from './aeotec';
import airam from './airam';
import airzone_aidoo from './airzone_aidoo';
import ajax_online from './ajax_online';
import akuvox from './akuvox';
import alchemy from './alchemy';
Expand Down Expand Up @@ -307,6 +308,7 @@ export default [
...adurosmart,
...aeotec,
...airam,
...airzone_aidoo,
...ajax_online,
...akuvox,
...alchemy,
Expand Down
Loading