Please note - you may want to validate whether the options used affect your setup.
Create a new service file.
nano /etc/systemd/system/disable-offloading.service
| blueprint: | |
| name: Smart USB Laadstation met Timer | |
| description: > | |
| Automatisch in- en uitschakelen van een USB laadstation op basis van | |
| vermogensverbruik en optionele starttijd. Ideaal voor apparaten die | |
| automatisch moeten uitschakelen wanneer het opladen voltooid is. | |
| Volledig onafhankelijk per automatisering - maak meerdere instanties aan! | |
| domain: automation | |
| source_url: https://gist.github.com/wilfredsmit/smart_usb_charger.yaml | |
| author: Wilfred in samenwerking met Claude |
| --- | |
| # Device: ESP32-S | |
| # Type: ESP32 Cam AI-Thinker | |
| # Wi-Fi MAC: xx:xx:xx:xx:xx:xx | |
| # | |
| substitutions: | |
| device_name: vc06 | |
| device_id: vc06_cam | |
| device_friendly_name: VC06 | |
| device_address: vc06.local |
| # IrScrutinizer parametric export | |
| # | |
| # Creating tool: IrScrutinizer version 1.1.1 | |
| # Creating user: Erik | |
| # CreateDate: Tue Oct 07 22:37:43 CEST 2014 | |
| # | |
| # | |
| # Manufacturer: Motorola | |
| # Model: VIP1853 | |
| # Export from IrScrutinizer |
| # Disable Commercial Repo | |
| sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list | |
| # Add PVE Community Repo | |
| echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list | |
| # Remove nag | |
| cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js{,.bak} | |
| sed -i "s/if (data.status !== 'Active')/if (false)/" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js |