I don't know how to give a entity to the script. In my case, it is a IP Adress which I want to block in Fritzbox.
e.g.
fritzblock.py {{ states(‘sensor.zu_sperrende_ip‘) }}
How can I access the variable in script?
e.g.
Import sys Ip = str(sys.argv[1])