aurc / melview-mitsubishi-au-nz

Apache License 2.0
9 stars 5 forks source link

Zone support? #4

Open jherden84 opened 3 years ago

jherden84 commented 3 years ago

By the way love the app! Is it possible for to include Zone/Room support with this plugin. i.e. I have a single unit with different zones/rooms?

I still have to use the wifiapp or wall controller to manually change the Zones/Rooms. Is it possible to do this in homebridge/Homekit. I am not 100% sure what this would even look like in HomeKit (a seperate a/c in each room?). Looking at the melview specs it look like rooms commands are listed any way to incorperate?

Thanks for your great work!

jherden84 commented 2 years ago

BUMP! Anyone able to support this enhancement. The guys on Homeassistant have managed to build in some Zone support. It woudl be great to be able to offer simular functionality in Homebridge - https://github.com/zacharyrs/ha-melview/issues/9

jherden84 commented 2 years ago

Hey, for anyone insterested this should be very achievable. I have spent a lot of time working wiht exisiting plug in (locally) but I hjust dont have node.js or homebridge/skills to write and updated plugin.

I have managed to exposed the zones from the api. My hope/plan was to then create dynamic switches based on the zones:zoneid then bind the switches to the state of the zone. Then upon updating a switch write this to the api. Essentually recreating the wi-fi control app but being albe to use homekit excludsivley.

Ideally the A/C unit and Zones switches could be setup in a 'room' of homekit. Or perhaps looking at the new TV remote mutlifunction layout as shown in CMD4. The big advantage is them being able to run automations of this. Using temp sensors, time of day etc.

If anyone is interested in picking up/developing - I would be super keen to work with you (test etc) and to complete.

Example of Zone output from the api capabialities.aspx

zones: [ { zoneid: 1, status: 1, name: 'Dining', display: 1 }, { zoneid: 2, status: 1, name: 'Study', display: 1 }, { zoneid: 3, status: 0, name: 'Theatre ', display: 1 }, { zoneid: 4, status: 0, name: 'Master Bed', display: 1 }, { zoneid: 5, status: 0, name: 'Kids', display: 1 }, { zoneid: 6, status: 0, name: 'Spare', display: 1 }, { zoneid: 7, status: 0, name: 'Kids2', display: 1 }, { zoneid: 8, status: 0, name: 'Zone 8', display: 0 } ]

jherden84 commented 2 years ago

I have managed to updated the plugin and solve the issue :) Plugin can support the zones on a ducted A/C unit and will expose seperate FAN accessories for each zone. Pic attached below. If any one is interested I can share plugin. IMG_5719 2