# https://www.home-assistant.io/integrations/rest/
#charger
{"evseEnabled":1,"state":2,"pilot":2,"currentSet":7,"curDesign":16,"typeEvse":1,"typeRelay":4,"aiModecurrent":7,"aiStatus":1,"aiVoltage":195,"aiPatameter":200,"restricted_mode":1,"ground":1,"groundCtrl":2,"timerType":2,"limitsStatus":64,"timeLimit":0,"energyLimit":0,"moneyLimit":10,"tarif":1.67,"tarif_2":1,"tarif_3":1,"tarif_2_start":420,"tarif_2_stop":1380,"tarif_3_start":0,"tarif_3_stop":0,"tarif_2_status":0,"tarif_3_status":0,"current_tarif":0,"add_curr":0,"led_ctrl":0,"one_charge":0,"startSchedule1":60,"stopSchedule1":240,"currentSchedule1":12,"energySchedule1":0,"startSchedule2":5,"stopSchedule2":39,"currentSchedule2":12,"energySchedule2":0,"totalEnergy":15818.34,"sessionStart":0,"sessionTime":31445,"sessionEnergy":25.1515,"sessionMoney":42.00278,"IEM1":196.4394,"IEM2":503.2181,"IEM1_money":328.1579,"IEM2_money":933.5886,"systemTime":1706887360,"timeZone":3,"curMeas1":0,"curMeas2":0,"curMeas3":0,"voltMeas1":232.353,"voltMeas2":0,"voltMeas3":0,"temperature2":4,"temperature1":12,"leakValue":0,"vBat":0.7396,"powerMeas":0,"STA_IP_Addres":"192.168.2.151"}
rest:
scan_interval: 5
resource: http://192.168.X.X/main
method: POST
sensor:
- name: "EVCharger Input Voltage"
device_class: "voltage"
unit_of_measurement: V
value_template: "{{ value_json.voltMeas1 }}"
- name: "EVCharger Input Current"
device_class: "current"
unit_of_measurement: A
value_template: "{{ value_json.curMeas1 }}"
- name: "EVCharger Power Usage"
device_class: "power"
unit_of_measurement: W
value_template: "{{ value_json.powerMeas }}"
- name: "EVCharger Session Energy Used"
device_class: "energy"
unit_of_measurement: kWh
value_template: "{{ value_json.sessionEnergy }}"
- name: "EVCharger Current User Setting"
device_class: "current"
unit_of_measurement: A
value_template: "{{ value_json.currentSet }}"
Коментарі
Дописати коментар