Hello,
I’am new to HA. I think I have a simple question…
I have a raspberry with MAX2play installed.
I use this to listen music or watching movies. To do this I have to start en stop the kodi services. This is simpely done by a http command like:
http://192.168.178.193/plugins/max2play_settings/controller/Xbmc.php?action=start&downloadurl=&addonurl=&addonbox=
Now I want to make a switch so i can use it in my automations. Could someone help me with this.
I tried this already but HA didn’t accept the config.
> switch:
> - platform: command_line
> switches:
> Kodi:
> command_on: 'curl -k "http://192.168.178.193/plugins/max2play_settings/controller/Xbmc.php?action=start&downloadurl=&addonurl=&addonbox="'
> command_off: 'curl -k "http://192.168.178.193/plugins/max2play_settings/controller/Xbmc.php?action=stop&downloadurl=&addonurl=&addonbox="'