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

[Feature request] Add support for irplus LAN spec (HTTP service) #824

Open
duhow opened this issue Apr 14, 2022 · 3 comments
Open

[Feature request] Add support for irplus LAN spec (HTTP service) #824

duhow opened this issue Apr 14, 2022 · 3 comments
Labels

Comments

@duhow
Copy link

duhow commented Apr 14, 2022

This request is to add support for HTTP endpoint with syntax provided by irplus LAN, very simple:

http://192.168.1.104:8080/?carrier=38000&code=9000+4500...
  • carrier: frequency to send the signal (defaults to 38000)
  • code: Raw signal separated by spaces without signs - note that + is the [ ] (space) in URL encoding.

Allow the user to provide a full URL with path, as there may be some device integrations that do not provide this service at the / path.

@vassilis-panos
Copy link
Member

Replace controller.py from rc branch and configure smart ir as follows (media player example):

smartir:

media_player:
  - platform: smartir
    name: Living room TV
    unique_id: living_room_tv
    device_code: 1000
    controller_data: '192.168.10.15:8080'

The json code file should look like this:

{
    "manufacturer": "Test",
    "supportedModels": [
      "Test"
    ],
    "supportedController": "irplusLAN",
    "commandsEncoding": "Raw",
    "commands": {
        "off": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"},
        "on": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"},
        "previousChannel": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"},
        "nextChannel": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"},
        "volumeDown": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"},
        "volumeUp": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"},
        "mute": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"},
        "sources": {
            "EXT1": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"},
            "EXT2": {"carier": 38000, "code": "9022 4498 572 1690 572 1690 572 1690 572 572 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 572 572 1690 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 1690 572 572 572 572 572 39702 9022 2262 572 1"}
        }
    }
}

@vassilis-panos
Copy link
Member

Do you have any feedback?

@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants