Hi LE community,
I am newbie in LibreElec and Python. I wrote an addon for control amplifier power using GPIO output and relay. It set 1 to GPIO output if KODI is playing any video or audio file and set 0 after timeout. Addon have settings:
Timeout - from 2 to 20 minutes
gpio pin - it will be used for relay control
Notification - notifications will be showed on turning or turning off.
So maybe more experienced users can take a look and tell if everything is ok with this addon?