- Ondersteuning van EVCC zou wenselijk zijn.
Integratie in EVCC is gelukt middels HTTP plugin. Onderstaande toevoegen aan EVCC.yaml:
- name: my_battery
type: custom
power:
source: http
uri: Verwijderde link
method: GET
headers:
- content-type: application/json
auth:
type: basic
user:
password: *
insecure: false
jq: .sessy.power
cache: 60s
timeout: 10s
soc:
source: http
uri: http://ip-adres/api/v1/power/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user:
password: *
insecure: false
jq: .sessy.state_of_charge
cache: 60s
Kan je iets specifieker zijn?
Bijvoorbeeld in welke sectie van de EVCC.yaml file dit geplaatst moet worden en tevens mist de de eerste url in de power sectie.
Alvast bedankt.
Rien
Geen weet van specifieke volgorde in yaml file.
Beide url: http://hier_ip_adres_van_je sessy/api/v1/power/status
Remmo
Heb even zitten spelen maar deze kwam bij my door de validatie heen:
Heb hem in EVCC via de expirimental configuratie pagina toegevoegd,
met type User Defined Device
power:
source: http
uri: 192.168.1.IP/api/v1/power/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .sessy.power
cache: 60s
timeout: 10s
soc:
source: http
uri: 192.168.1.IP/api/v1/power/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .sessy.state_of_charge
cache: 60s
Heb de P1 meter werkend in de YAML editor:
- name: grid
type: custom
power: # power (W)
source: http
uri: 192.168.1.30/api/v2/p1/details
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .power_total
cache: 60s
scale: 1
currents: # phase currents in A
- source: http
uri: 192.168.1.30/api/v2/p1/details
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .current_l1
cache: 60s
scale: 0.001
- source: http
uri: 192.168.1.30/api/v2/p1/details
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .current_l2
cache: 60s
scale: 0.001
- source: http
uri: 192.168.1.30/api/v2/p1/details
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .current_l3
cache: 60s
scale: 0.001
De batterij ook (nog niet volledig, aansturen nog niet aan begonnen)
Heb ook gemerkt dat als je Power en AMPS en Voltage toevoegt de sessy de api call weigert.
Bovendien zijn de AMPS (Renuwable energy in de api) niet de amps van de sessy zelf, maar wordt dat gebruikt voor je zekering te beschermen.
Die heb ik dus uit het template gegooid.
## required attributes
power: # current power
source: http
uri: 192.168.1.32/api/v1/power/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .sessy.power
cache: 60s
timeout: 10s
## optional attributes (read-only)
energy: # meter reading in kWh
source: http
uri: 192.168.1.32/api/v1/energy/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .sessy_energy.import_wh
cache: 60s
scale: 0.001
#maxpower: # maximum AC power in W (for hybrid pv)
# source: const
# value: 1800
soc: # state of charge in % (for battery)
source: http
uri: 192.168.1.32/api/v1/power/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .sessy.state_of_charge
cache: 60s
capacity: 5 # capacity in kWh (for battery)
voltages: # phase voltages in V
- source: http
uri: 192.168.1.32/api/v1/power/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .renewable_energy_phase1.voltage_rms
scale: 0.001
cache: 60s
- source: http
uri: 192.168.1.32/api/v1/power/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .renewable_energy_phase2.voltage_rms
scale: 0.001
cache: 60s
- source: http
uri: 192.168.1.32/api/v1/power/status
method: GET
headers:
- content-type: application/json
auth:
type: basic
user: *
password: *
insecure: false
jq: .renewable_energy_phase3.voltage_rms
scale: 0.001
cache: 60s
## optional attributes (writeable)
#limitsoc: # set battery charge target in % (for battery)
# source: js
# script: console.log(limitsoc)
#batterymode: # set charging mode directly (1: normal, 2: hold, 3: charge) (for battery)
# source: js
# script: console.log(batterymode)
De batterij ook (nog niet volledig, aansturen nog niet aan begonnen)
Heb ook gemerkt dat als je Power en AMPS en Voltage toevoegt de sessy de api call weigert.
Bovendien zijn de AMPS (Renuwable energy in de api) niet de amps van de sessy zelf, maar wordt dat gebruikt voor je zekering te beschermen.
Die heb ik dus uit het template gegooid.
## required attributes power: # current power source: http uri: 192.168.1.32/api/v1/power/status method: GET headers: - content-type: application/json auth: type: basic user: * password: * insecure: false jq: .sessy.power cache: 60s timeout: 10s ## optional attributes (read-only) energy: # meter reading in kWh source: http uri: 192.168.1.32/api/v1/energy/status method: GET headers: - content-type: application/json auth: type: basic user: * password: * insecure: false jq: .sessy_energy.import_wh cache: 60s scale: 0.001 #maxpower: # maximum AC power in W (for hybrid pv) # source: const # value: 1800 soc: # state of charge in % (for battery) source: http uri: 192.168.1.32/api/v1/power/status method: GET headers: - content-type: application/json auth: type: basic user: * password: * insecure: false jq: .sessy.state_of_charge scale: 100 cache: 60s capacity: 5 # capacity in kWh (for battery) voltages: # phase voltages in V - source: http uri: 192.168.1.32/api/v1/power/status method: GET headers: - content-type: application/json auth: type: basic user: * password: * insecure: false jq: .renewable_energy_phase1.voltage_rms scale: 0.001 cache: 60s - source: http uri: 192.168.1.32/api/v1/power/status method: GET headers: - content-type: application/json auth: type: basic user: * password: * insecure: false jq: .renewable_energy_phase2.voltage_rms scale: 0.001 cache: 60s - source: http uri: 192.168.1.32/api/v1/power/status method: GET headers: - content-type: application/json auth: type: basic user: * password: * insecure: false jq: .renewable_energy_phase3.voltage_rms scale: 0.001 cache: 60s ## optional attributes (writeable) #limitsoc: # set battery charge target in % (for battery) # source: js # script: console.log(limitsoc) #batterymode: # set charging mode directly (1: normal, 2: hold, 3: charge) (for battery) # source: js # script: console.log(batterymode)
Updated above yaml with Scale: 100 for the SOC