Update sensor names in JackeryHome component from Chinese to English for better clarity and consistency.
This commit is contained in:
@@ -22,49 +22,49 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
# 传感器配置
|
# 传感器配置
|
||||||
SENSORS = {
|
SENSORS = {
|
||||||
"solar_power": {
|
"solar_power": {
|
||||||
"name": "太阳能发电",
|
"name": "Solar Power",
|
||||||
"unit": UnitOfPower.WATT,
|
"unit": UnitOfPower.WATT,
|
||||||
"icon": "mdi:solar-power",
|
"icon": "mdi:solar-power",
|
||||||
"device_class": SensorDeviceClass.POWER,
|
"device_class": SensorDeviceClass.POWER,
|
||||||
"state_class": SensorStateClass.MEASUREMENT,
|
"state_class": SensorStateClass.MEASUREMENT,
|
||||||
},
|
},
|
||||||
"home_power": {
|
"home_power": {
|
||||||
"name": "家庭用电",
|
"name": "Home Power",
|
||||||
"unit": UnitOfPower.WATT,
|
"unit": UnitOfPower.WATT,
|
||||||
"icon": "mdi:home-lightning-bolt",
|
"icon": "mdi:home-lightning-bolt",
|
||||||
"device_class": SensorDeviceClass.POWER,
|
"device_class": SensorDeviceClass.POWER,
|
||||||
"state_class": SensorStateClass.MEASUREMENT,
|
"state_class": SensorStateClass.MEASUREMENT,
|
||||||
},
|
},
|
||||||
"grid_import": {
|
"grid_import": {
|
||||||
"name": "电网输入",
|
"name": "Grid Import",
|
||||||
"unit": UnitOfPower.WATT,
|
"unit": UnitOfPower.WATT,
|
||||||
"icon": "mdi:transmission-tower-import",
|
"icon": "mdi:transmission-tower-import",
|
||||||
"device_class": SensorDeviceClass.POWER,
|
"device_class": SensorDeviceClass.POWER,
|
||||||
"state_class": SensorStateClass.MEASUREMENT,
|
"state_class": SensorStateClass.MEASUREMENT,
|
||||||
},
|
},
|
||||||
"grid_export": {
|
"grid_export": {
|
||||||
"name": "电网输出",
|
"name": "Grid Export",
|
||||||
"unit": UnitOfPower.WATT,
|
"unit": UnitOfPower.WATT,
|
||||||
"icon": "mdi:transmission-tower-export",
|
"icon": "mdi:transmission-tower-export",
|
||||||
"device_class": SensorDeviceClass.POWER,
|
"device_class": SensorDeviceClass.POWER,
|
||||||
"state_class": SensorStateClass.MEASUREMENT,
|
"state_class": SensorStateClass.MEASUREMENT,
|
||||||
},
|
},
|
||||||
"battery_charge": {
|
"battery_charge": {
|
||||||
"name": "电池充电",
|
"name": "Battery Charge",
|
||||||
"unit": UnitOfPower.WATT,
|
"unit": UnitOfPower.WATT,
|
||||||
"icon": "mdi:battery-charging",
|
"icon": "mdi:battery-charging",
|
||||||
"device_class": SensorDeviceClass.POWER,
|
"device_class": SensorDeviceClass.POWER,
|
||||||
"state_class": SensorStateClass.MEASUREMENT,
|
"state_class": SensorStateClass.MEASUREMENT,
|
||||||
},
|
},
|
||||||
"battery_discharge": {
|
"battery_discharge": {
|
||||||
"name": "电池放电",
|
"name": "Battery Discharge",
|
||||||
"unit": UnitOfPower.WATT,
|
"unit": UnitOfPower.WATT,
|
||||||
"icon": "mdi:battery-minus",
|
"icon": "mdi:battery-minus",
|
||||||
"device_class": SensorDeviceClass.POWER,
|
"device_class": SensorDeviceClass.POWER,
|
||||||
"state_class": SensorStateClass.MEASUREMENT,
|
"state_class": SensorStateClass.MEASUREMENT,
|
||||||
},
|
},
|
||||||
"battery_soc": {
|
"battery_soc": {
|
||||||
"name": "电池电量",
|
"name": "Battery State of Charge",
|
||||||
"unit": PERCENTAGE,
|
"unit": PERCENTAGE,
|
||||||
"icon": "mdi:battery-70",
|
"icon": "mdi:battery-70",
|
||||||
"device_class": SensorDeviceClass.BATTERY,
|
"device_class": SensorDeviceClass.BATTERY,
|
||||||
|
|||||||
Reference in New Issue
Block a user