Skip to content

Commit

Permalink
add descriptor list
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Oct 13, 2023
1 parent 317898a commit d46cd1e
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,61 +41,61 @@ bool epWorker();
bool sendHaDiscovery();
static const char *const haDescriptor[][4]{
//LiveData
{"CONNECTION","","",""},
{"DEVICE_NUM","","",""},
{"DEVICE_TIME","","",""},
{"DEVICE_TEMP","","",""},
{"SOLAR_V","","V","voltage"},
{"SOLAR_A","","A","current"},
{"SOLAR_W","","W","power"},
{"BATT_SOC","mdi:battery-charging-high","%","battery"},
{"BATT_V","","V","voltage"},
{"BATT_A","","A","current"},
{"BATT_W","","W","power"},
{"BATT_STATE","","",""},
{"CONNECTION","mdi:connection","",""},
{"DEVICE_NUM","mdi:numeric","",""},
{"DEVICE_TIME","mdi:timer-outline","",""},
{"DEVICE_TEMP",,"mdi:thermometer-lines","°C","temperature"},
{"SOLAR_V","mdi:solar-power","V","voltage"},
{"SOLAR_A","mdi:solar-power","A","current"},
{"SOLAR_W","mdi:solar-power","W","power"},
{"BATT_SOC","car-battery","%","battery"},
{"BATT_V","mdi:battery","V","voltage"},
{"BATT_A","mdi:battery","A","current"},
{"BATT_W","mdi:battery","W","power"},
{"BATT_STATE","mdi:state-machine","",""},
{"BATT_TEMP","mdi:thermometer-lines","°C","temperature"},
{"BATT_TEMP_STATE","","",""},
{"LOAD_V","","V","voltage"},
{"LOAD_A","","A","current"},
{"LOAD_W","","W","power"},
{"LOAD_STATE","","",""},
{"CHARGER_STATE","","",""},
{"LOAD_V","mdi:battery-charging-medium","V","voltage"},
{"LOAD_A","mdi:battery-charging-medium","A","current"},
{"LOAD_W","mdi:battery-charging-medium","W","power"},
{"LOAD_STATE","mdi:power-socket-us","",""},
{"CHARGER_STATE","mdi:ev-station","",""},
{"CHARGER_MODE","","",""},
// StatsData
{"SOLAR_MAX","","",""},
{"SOLAR_MIN","","",""},
{"BATT_MAX","","",""},
{"BATT_MIN","","",""},
{"CONS_DAY","","",""},
{"CONS_MON","","",""},
{"CONS_YEAR","","",""},
{"CONS_TOT","","",""},
{"GEN_DAY","","",""},
{"GEN_MON","","",""},
{"GEN_YEAR","","",""},
{"GEN_TOT","","",""},
{"SOLAR_MAX","mdi:sun-angle","W","power"},
{"SOLAR_MIN","mdi:sun-angle-outline","W","power"},
{"BATT_MAX","mdi:battery-arrow-up-outline","W","power"},
{"BATT_MIN","mdi:battery-arrow-down-outline","W","power"},
{"CONS_DAY","mdi:solar-power-variant","Wh","energy"},
{"CONS_MON","mdi:solar-power-variant","Wh","energy"},
{"CONS_YEAR","mdi:solar-power-variant","Wh","energy"},
{"CONS_TOT","mdi:solar-power-variant","Wh","energy"},
{"GEN_DAY","mdi:solar-power","Wh","energy"},
{"GEN_MON","mdi:solar-power","Wh","energy"},
{"GEN_YEAR","mdi:solar-power","Wh","energy"},
{"GEN_TOT","mdi:solar-power","Wh","energ"},
{"CO2_REDUCTION","","",""},
// DeviceData
{"BATTERY_TYPE","","",""},
{"BATTERY_CAPACITY","","",""},
{"TEMPERATURE_COMPENSATION","","",""},
{"HIGH_VOLT_DISCONNECT","","V","voltage"},
{"CHARGING_LIMIT_VOLTS","","V","voltage"},
{"OVER_VOLTS_RECONNECT","","V","voltage"},
{"EQUALIZATION_VOLTS","","V","voltage"},
{"BOOST_VOLTS","","V","voltage"},
{"FLOAT_VOLTS","","V","voltage"},
{"BOOST_RECONNECT_VOLTS","","V","voltage"},
{"LOW_VOLTS_RECONNECT","","V","voltage"},
{"UNDER_VOLTS_RECOVER","","V","voltage"},
{"UNDER_VOLTS_WARNING","","V","voltage"},
{"LOW_VOLTS_DISCONNECT","","V","voltage"},
{"DISCHARGING_LIMIT_VOLTS","","V","voltage"},
{"BATTERY_TYPE","mdi:fuel-cell","",""},
{"BATTERY_CAPACITY","mdi:car-battery","Wh","energy_storage"},
{"TEMPERATURE_COMPENSATION","","mV","voltage"},
{"HIGH_VOLT_DISCONNECT","mdi:flash-triangle-outline","V","voltage"},
{"CHARGING_LIMIT_VOLTS","mdi:battery-minus-outline","V","voltage"},
{"OVER_VOLTS_RECONNECT","mdi:battery-sync-outline","V","voltage"},
{"EQUALIZATION_VOLTS","mdi:battery-sync-outline","V","voltage"},
{"BOOST_VOLTS","mdi:battery-plus","V","voltage"},
{"FLOAT_VOLTS","mdi:battery-plus-variant","V","voltage"},
{"BOOST_RECONNECT_VOLTS","mdi:battery-plus","V","voltage"},
{"LOW_VOLTS_RECONNECT","mdi:flash-triangle-outline","V","voltage"},
{"UNDER_VOLTS_RECOVER","mdi:flash-triangle-outline","V","voltage"},
{"UNDER_VOLTS_WARNING","mdi:flash-triangle-outline","V","voltage"},
{"LOW_VOLTS_DISCONNECT","mdi:flash-triangle-outline","V","voltage"},
{"DISCHARGING_LIMIT_VOLTS","mdi:flash-triangle-outline","V","voltage"},
// ESP Data
{"DEVICE_QUANTITY","","",""},
{"DEVICE_FREE_HEAP","","",""},
{"DEVICE_FREE_JSON","","",""},
{"ESP_VCC","","",""},
{"Wifi_RSSI","","",""},
{"ESP_VCC","","V","voltage"},
{"Wifi_RSSI","","dBm","signal_strength"},
{"sw_version","","",""},
};

0 comments on commit d46cd1e

Please sign in to comment.