Jullix script

Hi,

I want to add a new script to the Jullix script on my home assistant. Can anyone help me with this, I have no program skills.
I have this and want to add an other script.

rest:
resource: https://mijn.jullix.be/api/v1/actual/default/summary/power
headers:
Authorization: Bearer --API-TOKEN-HERE–
sensor:
- name: “Grid”
value_template: “{{ value_json[‘data’][‘powers’][‘grid’] }}”
unit_of_measurement: “kW”
device_class: power
- name: “Solar”
value_template: “{{ value_json[‘data’][‘powers’][‘solar’] }}”
unit_of_measurement: “kW”
device_class: power
- name: “Car”
value_template: “{{ value_json[‘data’][‘powers’][‘car’] }}”
unit_of_measurement: “kW”
device_class: power
- name: “Battery”
value_template: “{{ value_json[‘data’][‘powers’][‘battery’] }}”
unit_of_measurement: “kW”
device_class: power
- name: “Home”
value_template: “{{ value_json[‘data’][‘powers’][‘home’] }}”
unit_of_measurement: “kW”
device_class: power

NEW SCRIPT
{
“data”: [
{
“battery”: {
“fault”: 0,
“soc”: 0,
“voltage”: 0
},
“direct_timeout”: true,
“energy_charged”: 0,
“energy_discharged”: 0,
“fault”: 0,
“id”: “string”,
“localid”: “string”,
“name”: “string”,
“power”: 0
}
],
“status”: “ok”
}

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

Also that is not a script.

You want to add another sensor to the rest integration.

To make it a bit easier, I made a HACS integration for Jullix:
Can be found here: