Skip to content

Commit

Permalink
Bump due to the appdirectory incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
shaarkys committed Jan 10, 2025
1 parent 27d7548 commit 1e64608
Show file tree
Hide file tree
Showing 106 changed files with 7,764 additions and 6,898 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/env.json
/node_modules/
/.homeybuild/
.codegpt
.codegpt
/.homeybuild
/node_modules
appdirectory.zip
24 changes: 23 additions & 1 deletion .homeybuild/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
'use strict';

process.env.APPDATA = "C:\\Users\\breti\\AppData\\Roaming";
process.env.LOCALAPPDATA = "C:\\Users\\breti\\AppData\\Local";
process.env.USERPROFILE = "C:\\Users\\breti";

const Homey = require('homey');
const miio = require("miio");
const MiHub = require("./lib/MiHub");
Expand Down Expand Up @@ -259,7 +263,16 @@ class XiaomiMiioApp extends Homey.App {
}
});

// AIR PURIFIER, HUMIDIFIER
this.homey.flow.getActionCard('airpurifierXiaomiFanlevel')
.registerRunListener(async (args) => {
try {
return await args.device.triggerCapabilityListener('airpurifier_xiaomi_fanlevel', args.fanlevel);
} catch (error) {
return Promise.reject(error.message);
}
});

// AIR PURIFIER, HUMIDIFIER, DEHUMIDIFIER
this.homey.flow.getActionCard('humidifierZhimiMode')
.registerRunListener(async (args) => {
try {
Expand Down Expand Up @@ -314,6 +327,15 @@ class XiaomiMiioApp extends Homey.App {
}
});

this.homey.flow.getActionCard('modeDehumidifierDmaker')
.registerRunListener(async (args) => {
try {
return await args.device.triggerCapabilityListener('dehumidifier_dmaker_mode', args.mode);
} catch (error) {
return Promise.reject(error.message);
}
});

// PET WATERDISPENSER & FEEDER

this.homey.flow.getActionCard('petwaterdispenserMmggMode')
Expand Down
Loading

0 comments on commit 1e64608

Please sign in to comment.