ol-iver / denonavr

Automation Library for Denon AVR receivers.
MIT License
176 stars 67 forks source link

Sensors with AVR information? #211

Closed alanthewild closed 3 years ago

alanthewild commented 3 years ago

I'm using these command_line sensors at the moment as the denonavr function doesn't include some data I need:

  - platform: command_line
    command: python3 -c "import requests; print(requests.get('http://192.168.1.90/goform/formTuner_TunerXml.xml').text)" | grep "<Frequency>" | grep -Eo [0-9]{3}.[0-9]{2}\|[0-9]{2}.[0-9]{2}
    name: Tuner Frequency
    scan_interval: 5

  - platform: command_line
    command: python3 -c "import requests; print(requests.get('http://192.168.1.90/goform/formTuner_TunerXml.xml').text)" | grep "<Preset>" | grep -Eo [0-9]{2}
    name: Tuner Preset
    scan_interval: 5

Any chance these can be added as attributes? I use them to highlight the specific button that corresponds to the current radio station in my UI.

stale[bot] commented 3 years ago

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.