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

Pure direct? #47

Closed
MojoDK opened this issue Dec 14, 2020 · 3 comments
Closed

Pure direct? #47

MojoDK opened this issue Dec 14, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@MojoDK
Copy link

MojoDK commented Dec 14, 2020

Any way to implement "Pure direct"?

@MojoDK MojoDK added the enhancement New feature or request label Dec 14, 2020
@ACDR
Copy link
Owner

ACDR commented Aug 31, 2022

Apologies for the very late response to this, unfortunately though, there is still no elegant way of doing this within the current AVR HomeKit device implementation.

You could however add a "switch" device to achieve this. I would prefer to keep this plug-in as a single AVR device, but you could try this plug-in with the below config: https://github.com/Supereg/homebridge-http-switch#readme

    "accessories": [
        {
          "accessory": "HTTP-SWITCH",
          "name": "Pure Direct Switch",
          
          "switchType": "stateful",
          
          "onUrl": "http://{AVR_IP}/YamahaExtendedControl/v1/main/setPureDirect?enable=true",
          "offUrl": "http://{AVR_IP}/YamahaExtendedControl/v1/main/setPureDirect?enable=false",
          
          "statusUrl": "http://{AVR_IP}/YamahaExtendedControl/v1/main/getStatus",
          "statusPattern": "\"pure_direct\":true"
        }   
    ]

@iSteve-O
Copy link

Apologies for the very late response to this, unfortunately though, there is still no elegant way of doing this within the current AVR HomeKit device implementation.

You could however add a "switch" device to achieve this. I would prefer to keep this plug-in as a single AVR device, but you could try this plug-in with the below config: https://github.com/Supereg/homebridge-http-switch#readme

    "accessories": [
        {
          "accessory": "HTTP-SWITCH",
          "name": "Pure Direct Switch",
          
          "switchType": "stateful",
          
          "onUrl": "http://{AVR_IP}/YamahaExtendedControl/v1/main/setPureDirect?enable=true",
          "offUrl": "http://{AVR_IP}/YamahaExtendedControl/v1/main/setPureDirect?enable=false",
          
          "statusUrl": "http://{AVR_IP}/YamahaExtendedControl/v1/main/getStatus",
          "statusPattern": "\"pure_direct\":true"
        }   
    ]

This is awesome. I love how you explain this. I suppose this way you could make a switch for any actions, including stateless ones if you have the URL scheme. Thank you for taking the time to write this out instead of just sayin "no" like a lot would.

@ACDR
Copy link
Owner

ACDR commented Sep 3, 2022

Pure Direct Switch added in https://github.com/ACDR/homebridge-yamaha-avr/releases/tag/v3.0.0-beta.9 (see release notes for example config to enable)

@ACDR ACDR closed this as completed Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants