Hi,
I have a number of REST queries that are working successfully, this one doesn’t and I can’t work out why!
This is what is in my configuration.yaml
- platform: rest
resource: http://192.168.1.165/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System
name: "Grid Voltage"
value_template: '{{ (value_json.Body.Data.0.Voltage_AC_Phase_1)|round(3) }}'
unit_of_measurement: V
I’ve confirmed that entries are available at http://192.168.1.165/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System
{
"Body" : {
"Data" : {
"0" : {
"Current_AC_Phase_1" : 2.7480000000000002,
"Current_AC_Sum" : 2.7480000000000002,
"Details" : {
"Manufacturer" : "Fronius",
"Model" : "Smart Meter 63A-1",
"Serial" : "19070160"
},
"Enable" : 1,
"EnergyReactive_VArAC_Phase_1_Consumed" : 610,
"EnergyReactive_VArAC_Phase_1_Produced" : 4197690,
"EnergyReactive_VArAC_Sum_Consumed" : 610,
"EnergyReactive_VArAC_Sum_Produced" : 4197690,
"EnergyReal_WAC_Minus_Absolute" : 495136,
"EnergyReal_WAC_Phase_1_Consumed" : 626431,
"EnergyReal_WAC_Phase_1_Produced" : 495136,
"EnergyReal_WAC_Plus_Absolute" : 626431,
"EnergyReal_WAC_Sum_Consumed" : 626431,
"EnergyReal_WAC_Sum_Produced" : 495136,
"Frequency_Phase_Average" : 50,
"Meter_Location_Current" : 0,
"PowerApparent_S_Phase_1" : 650.45000000000005,
"PowerApparent_S_Sum" : 650.45000000000005,
"PowerFactor_Phase_1" : 0.42999999999999999,
"PowerFactor_Sum" : 0.42999999999999999,
"PowerReactive_Q_Phase_1" : -470.86000000000001,
"PowerReactive_Q_Sum" : -470.86000000000001,
"PowerReal_P_Phase_1" : 282.79000000000002,
"PowerReal_P_Sum" : 282.79000000000002,
"TimeStamp" : 1565771004,
"Visible" : 1,
"Voltage_AC_Phase_1" : 236.69999999999999
}
}
},
"Head" : {
"RequestArguments" : {
"DeviceClass" : "Meter",
"Scope" : "System"
},
"Status" : {
"Code" : 0,
"Reason" : "",
"UserMessage" : ""
},
"Timestamp" : "2019-08-14T17:53:25+09:30"
}
}