04.06.2023, 11:03
(This post was last modified: 04.06.2023, 11:05 by pioneersteffen.)
Hi @all,
Many thanks for the script it works perfectly, I getting a response as following:
How can I pick a variable out of the table?
For example I want to pick out “pac” and write this value to a group address. How would this work?
Many thanks!
Best Regards
Steffen
Many thanks for the script it works perfectly, I getting a response as following:
Code:
SEMS 04.06.2023 12:49:42
* table:
["backUpVload_S"]
* number: 0
["istr10"]
* number: 670
["battary_work_mode"]
* number: 0
["etotal"]
* number: 61.6
["pbackup"]
* number: 0
["istr3"]
* number: 0
["istr15"]
* number: -810.4
["bms_alarm"]
* number: 0
["pre_hour_lasttotal"]
* userdata: NULL
["bms_discharge_i_max"]
* userdata: NULL
["sn"]
* string: 56000DTS229R0076
["isbuettey"]
* bool: false
["backUpPload_T"]
* number: 0
["istr14"]
* number: 185.2
["total_buy"]
* number: 0
["ram"]
* number: 53
["dataloggersn"]
* string:
["genset_etotal"]
* userdata: NULL
["istr16"]
* number: 560.4
["genset_mode"]
* userdata: NULL
["iac2"]
* number: 5
["battery8sn"]
* userdata: NULL
["reactive_power"]
* number: 0
["name"]
* string: SDT G2
["ezPro_connect_status"]
* userdata: NULL
["backUpIload_S"]
* number: 0
["mtActivepowerR"]
* number: 0
["fac3"]
* number: 50.01
["meter_type"]
* userdata: NULL
["istr13"]
* number: 220
["pac"]
* number: 3457
["vpv2"]
* number: 360.2
["mtActivepowerT"]
* number: 0
["cts"]
* userdata: NULL
["tempperature"]
* number: 56.3
["eDischargeDay"]
* number: 0
["ibattery1"]
* number: 0
["istr6"]
* number: 0.1
["istr8"]
* number: 118
["istr1"]
* number: 5.1
["yesterdaysellertotal"]
* number: 0
["more_batterys"]
* userdata: NULL
["outputpower"]
* number: 3457
["mtActivepowerS"]
* number: 0
["eTotalBuy"]
* userdata: NULL
["master"]
* userdata: NULL
["powerstation_id"]
* string: fe648d7b-b84b-4427-bb5f-f4b4a5c4c17b
["istr4"]
* number: 0
["istr7"]
* number: 64.7
["ipv2"]
* number: 5
["eP_connect_status_recover"]
* userdata: NULL
["isbuetteybpu"]
* bool: false
["buy"]
* number: 0
["last_time"]
* number: 1685875672648
["ipv4"]
* number: 0
["genset_yeasterdayTotal"]
* userdata: NULL
["iload"]
* number: 0
["isESUOREMU"]
* bool: false
["backUpPload_S"]
* number: 0
["change_type"]
* number: 0
["backUpVload_T"]
* number: 0
["meterConnectStatus"]
* userdata: NULL
["current_hour_pv"]
* number: 0
["battery3sn"]
* userdata: NULL
["pre_hour_time"]
* userdata: NULL
["thismonthetotle"]
* number: 43.1
["hasmeter"]
* bool: false
["bms_warning"]
* number: 0
["battery4sn"]
* userdata: NULL
["yesterdayct2sellertotal"]
* userdata: NULL
["eBatteryCharge"]
* userdata: NULL
["pmeter"]
* number: 0
["hour_total"]
* number: 26
["istr9"]
* number: 669.3
["iac3"]
* number: 5
["battery5sn"]
* userdata: NULL
["soh"]
* number: 0
["isbuetteybps"]
* bool: false
["all_eday"]
* number: 18.5
["iac1"]
* number: 5.1
["turnon_time"]
* number: 1685712233090
["battery1sn"]
* userdata: NULL
["equipment_name"]
* userdata: NULL
["battery6sn"]
* userdata: NULL
["vac1"]
* number: 226.3
["vac3"]
* number: 224.2
["genset_power"]
* userdata: NULL
["status"]
* number: 1
["itotal"]
* number: 7.392
["battery_count"]
* userdata: NULL
["total_pbattery"]
* number: 0
["workmode"]
* number: 1
["inverter_type"]
* number: 0
["parallel_code"]
* userdata: NULL
["vpv3"]
* number: 0
["vpv1"]
* number: 346
["eBatteryDischarge"]
* userdata: NULL
["deratingMode"]
* userdata: NULL
["safetyConutry"]
* number: 79
["errors"]
* table:
["extend_properties"]
* userdata: NULL
["istr5"]
* number: 0.1
["genset_eday"]
* number: 0
["check_code"]
* string: 045109
["isoLimit"]
* number: 0
["eday"]
* number: 18.5
["eDayBuy"]
* number: 0
["battery7sn"]
* userdata: NULL
["yesterdaybuytotal"]
* number: 0
["model_type"]
* string: GW6K-DT
["vac2"]
* number: 225.1
["fault_messge"]
* number: 0
["soc"]
* number: 44
["genset_start_mode"]
* userdata: NULL
["yesterdayetotalload"]
* number: 0
["yesterdayetotal"]
* userdata: NULL
["yesterdaylastime"]
* number: 0
["vbattery1"]
* number: 0
["bms_charge_i_max"]
* number: 3
["total_sell"]
* number: 0
["pv_power"]
* number: 0
["iday"]
* number: 2.22
["lastmonthetotle"]
* number: 0.4
["eChargeDay"]
* number: 0
["backUpIload_T"]
* number: 0
["vpv4"]
* number: 0
["battStrings"]
* userdata: NULL
["istr12"]
* number: 220
["seller"]
* number: 0
["firmwareversion"]
* number: 1515
["istr11"]
* number: 0
["istr2"]
* number: 5
["change_time"]
* number: 0
["fac1"]
* number: 50.01
["capacity"]
* number: 6
["bmssoftwareversion"]
* userdata: NULL
["ct_solution_type"]
* number: 0
["leakage_current"]
* userdata: NULL
["pf"]
* number: 0
["ipv3"]
* number: 0
["ipv1"]
* number: 5.1
["fac2"]
* number: 50.01
["vload"]
* number: 0
["battery2sn"]
* userdata: NULL
["eP_connect_status_happen"]
* userdata: NULL
How can I pick a variable out of the table?
For example I want to pick out “pac” and write this value to a group address. How would this work?
Many thanks!
Best Regards
Steffen