I no longer have the ADB decoder, so I can't continue working on this solution. Feel free to fork the repository or edit the code directly after installing this plugin.
ADB Service allows you to interact with your decoder device. I tested it with ADB NCP4740SF - WIFI PREMIUMBOX+. If you have different type of ADB decoder, you can check if my solution works to you and let me know.
To get started:
- put all the files from
/custom_components/adb_service/
here:<config directory>/custom_components/adb_service/
- setup configuration.yaml according to configuration section
- restart your home assistant
- check your states section - there should be sensor.adb
Just add it to your configuration.yaml
adb_service:
host: 192.168.0.174
key | description |
---|---|
host(required) | IP address of your device |
You should check your DHCP State of your router. I recommend to setup it as static IP.
Your device should be available on port :8080.
For example check the http://<ip>:8080/system/version
- this page should returns similar response:
{"internal_version":"1.8.11","external_version":"1.1.8","manufacturer":"Advanced Digital Broadcast","model":"NCP4740SF","friendly_name":"Główny Dekoder","release":"2015.09.01"}
It allows you to send any key to your device. You have to pass as a parameter which key want to press. As a default this is standby button.
key | description |
---|---|
key | Name of key to send |
The naming convetion to send key to device API is: Key<button>
. You can pass it without Key prefix.
- StandBy
- ProgramDown
- ProgramUp
- Back
- VolumeUp
- VolumeDown
- Mute
- Guide
- Info
- Menu
- Exit
- Left
- Right
- Down
- Up
- Play
- Pause
- Rewind
- FForward
- Record
- Stop
- Ok
- Zero
- One
- Two
- Three
- Four
- Five
- Six
- Seven
- Eight
- Nine
- At
- Red
- Green
- Yellow
- Blue
- OPTS
- Setup
- Lang
- Mode
- RecList
- TVRadio
To press channel 11 You have call the service twice with key One
List of devices we know and tested. If your defice works with this solution let me know.
- NCP4740SF - WIFI PREMIUMBOX+
- ITI3740SX - MEDIABOX+
- USW4001NCP - UltraBox+
- ITI5720SX - Turbobox+
I created simple interface to easier interact. You can use it or create something nicer ;-) Don't forget to share with us.