cbrandlehner / homebridge-daikin-local

Supports Daikin Air Conditioners on HomeBridge
MIT License
99 stars 18 forks source link

Zones support #205

Open richmitch opened 2 years ago

richmitch commented 2 years ago

Hi Christian

I've swapped over to this plug-in from your other Daikin temperature sensor plug-in, as this one has that feature and more. It would be great if we can include identifying and controlling zones. Is that something you have in your backlog?

Cheers

cbrandlehner commented 2 years ago

@richmitch I am not familiar with zones. Neither Apple Home nor the Daikin App offer anything calles "zones".

Probably this is a translation issue as my Apple devices are configured in german language. Can you please try to explain the use case in more detail?

richmitch commented 2 years ago

Hi Christian

My multi-zone, split system ducted aircon system has the following components on each floor of my house:

I can choose to enable the aircon for each zone so what I suspect happens is a vent opens and the fan blows air into that zone. I cannot control the temperature in each zone, only whether it is on or off.

The zone represents a room with one or more vents. For example, I have a system upstairs with one controller, one temperature sensor and 4 zones. 3 zones represent a separate bedroom and there is one in the hallway.

That’s a long answer to explain that I think zones would map to rooms in HomeKit. I believe from other projects that you can query zones from the controller but I don’t think you can get a name, only an id. If you can get the I’d, I can map that to a room in Home

Regards

Richard

On 26 Apr 2022, at 18:51, Christian Brandlehner @.***> wrote:

 @richmitch I am not familiar with zones. Neither Apple Home nor the Daikin App offer anything calles "zones".

Probably this is a translation issue as my Apple devices are configured in german language. Can you please try to explain the use case in more detail?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

cbrandlehner commented 2 years ago

@richmitch I see your point. The equivalent in HomeKit are Scenes. You can create a new scene "cool all rooms", add multiple daikin devices, choose a target temperature, enable them and finally save the scene. Whenever you activate the scene multiple devices will be activated at once.

Another way to do this would be by using "Apple Shortcuts" which is more powerful but also requires planning and some programming skills.

Marfre888 commented 2 years ago

@cbrandlehner

Apple Homekit actually has a 'zone' feature, so you could theoretically say, 'Hey Siri, cool ground floor to 18c'.

IMG_0464

richmitch commented 1 year ago

Hi Christian.

I think a Scene would be a way to group Rooms so you could, "Cool All Rooms" or "Cool Downstairs" as you suggested. The challenge is that I need to be able to choose which rooms to cool. I've tried to show what my setup looks like in the details below, I believe you can GET Zone settings from the controller but I don't think you can retrieve the labels I've set in the controller for each of those zones. I also don't know if the POST can specify to enable or disable a zone. The call may have to be a 2-phase call, the first to turn on the aircon and the second to set which zones are enabled. By default, the last zones enabled will be enabled when you turn on the aircon.

Downstairs 1 x sensor 1 x wi-fi controller 1 x wall-mounted control panel 8 x zone, 3 enabled, 5 disabled. Each enabled zone has at least one aircon vent in the floor and turning that zone on at the control panel results in airflow to all vents in that zone

Upstairs 1 x sensor 1 x wi-fi controller 1 x wall-mounted control panel 8 x zone, 4 enabled, 4 disabled

To give an example of the control I want and believe we can make available, I want to be able to turn on the upstairs aircon in zone 1 (bedroom 1) and zone 2 (hallway) but not zones 3 & 4.

If a zone could be assigned to a Room in HomeKit then I won't care that it's zone0:controller0, I will just see it as Main Bedroom and can choose an action for that Room.

Regards

On Fri, 29 Apr 2022 at 01:10, Christian Brandlehner < @.***> wrote:

@richmitch https://github.com/richmitch I see your point. The equivalent in HomeKit are Scenes. You can create a new scene "cool all rooms", add multiple daikin devices, choose a target temperature, enable them and finally save the scene. Whenever you activate the scene multiple devices will be activated at once.

Another way to do this would be by using "Apple Shortcuts" which is more powerful but also requires planning and some programming skills.

— Reply to this email directly, view it on GitHub https://github.com/cbrandlehner/homebridge-daikin-local/issues/205#issuecomment-1112327927, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECEG4WSCGHSGAYPLWP4YXDVHKS5TANCNFSM5ML3CYQA . You are receiving this because you were mentioned.Message ID: @.***>

teh-hippo commented 1 year ago

So, the plugin homebridge-daikin-airbase handles this in a different way that may provide some help here.

The approach is to create multiple switches for each zone. That way, to turn on / off the zones for 'Living Rooms' vs. 'Bedrooms' you can do it.

By way of dummy data, for me it looks like this:

      this.get_zone_setting = this.apiroute + '/skyfi/aircon/get_zone_setting';
      this.set_zone_setting = this.apiroute + '/skyfi/aircon/set_zone_setting';

Result:

ret=OK,zone_name=%4c%49%56%49%4e%47%3b%42%45%44%52%4f%4f%4d%53%3b%20%20%20%20%20%20%20%5a%6f%6e%65%33%3b%20%20%20%20%20%20%20%5a%6f%6e%65%34%3b%20%20%20%20%20%20%20%5a%6f%6e%65%35%3b%20%20%20%20%20%20%20%5a%6f%6e%65%36%3b%20%20%20%20%20%20%20%5a%6f%6e%65%37%3b%20%20%20%20%20%20%20%5a%6f%6e%65%38,zone_onoff=0%3b0%3b0%3b0%3b0%3b0%3b0%3b0

Which decodes to: LIVING;BEDROOMS; Zone3; Zone4; Zone5; Zone6; Zone7; Zone8

I've been trying to implement this actually, but encountered a bug in the queue aspect of this plugin, which I'll create a separate issue for. It's blocking me from proceeding further.