Pyscript - Cant get the parameter data in my python script

Hey,

I always get errors, doesn’t matter what I try. Pyscript works fine but I cant get parameter values, how do I do this? and what would look the yaml service call code for this?

Code:

import helialux
import pyscript

# data = hass.services.get('python_script', 'juwel.helialux_control')
data = hass.python_script.data.get('data')
ip = data.get("ip")
rgba_color = data.get("rgba_color", [255, 255, 255, 255])

c = helialux.Controller(url="http://{ip}")
print(c.get_status())

print("Start manual")
c.start_manual_color_simulation(duration=5) # enable it for 5 minutes (defaults to 60)


print("just blue")
c.set_manual_color(white=rgba_color[3], blue=rgba_color[2], green=rgba_color[1], red=rgba_color[0])

print("Stop manual")
c.stop_manual_color_simulation()

Logs:

Exception in </config/pyscript/juwel.helialux_control.py> line 5: data = hass.python_script.data.get('data') ^ AttributeError: 'HomeAssistant' object has no attribute 'python_script'