homebridge-yamaha-home icon indicating copy to clipboard operation
homebridge-yamaha-home copied to clipboard

New config for renaming zones

Open greatestview opened this issue 1 year ago • 0 comments

Hi @NorthernMan54,

I have an old Yamaha receiver model (RX-V475), which does not allow renaming zones. So when I activate this plugin, my main zone appears as "Main" in Homekit. I know that it’s possible to rename devices in Homekit itself, but there are cases when those name changes get lost, e. g. after rebooting the network. So I was searching for a more permanent solution.

Within this pull request I added a simple optional map config, which allows to specify a custom name for each zone, if provided.

Example config (part):

{ 
    "nozones": false,
    "zone_name_map": {
        "Main": "Yamaha Main"
    },
}

The "Main" zone now appears as "Yamaha Main" inside Homekit. 🥳

Would be glad if you'd merge this pull request, thank you!

greatestview avatar Mar 31 '23 19:03 greatestview