mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-16 23:00:43 +08:00
Compare commits
3 Commits
a065868917
...
7940e6714e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7940e6714e | ||
|
|
1cdcb785b5 | ||
|
|
cd0f126f92 |
@ -17,7 +17,7 @@ Xiaomi Home Integration is an integrated component of Home Assistant supported b
|
||||
cd config
|
||||
git clone https://github.com/XiaoMi/ha_xiaomi_home.git
|
||||
cd ha_xiaomi_home
|
||||
./install.sh /config
|
||||
./install.sh ..
|
||||
```
|
||||
|
||||
We recommend this installation method, for it is convenient to switch to a tag when updating `xiaomi_home` to a certain version.
|
||||
@ -28,7 +28,7 @@ For example, update to version v1.0.0
|
||||
cd config/ha_xiaomi_home
|
||||
git fetch
|
||||
git checkout v1.0.0
|
||||
./install.sh /config
|
||||
./install.sh ..
|
||||
```
|
||||
|
||||
### Method 2: [HACS](https://hacs.xyz/)
|
||||
|
||||
@ -431,6 +431,14 @@ SPEC_PROP_TRANS_MAP: dict[str, dict | str] = {
|
||||
'unit_of_measurement': UnitOfEnergy.KILO_WATT_HOUR
|
||||
}
|
||||
},
|
||||
'power': {
|
||||
'device_class': SensorDeviceClass.POWER,
|
||||
'entity': 'sensor',
|
||||
'optional': {
|
||||
'state_class': SensorStateClass.MEASUREMENT,
|
||||
'unit_of_measurement': UnitOfPower.WATT
|
||||
}
|
||||
},
|
||||
'total-battery': {
|
||||
'device_class': SensorDeviceClass.ENERGY,
|
||||
'entity': 'sensor',
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
cd config
|
||||
git clone https://github.com/XiaoMi/ha_xiaomi_home.git
|
||||
cd ha_xiaomi_home
|
||||
./install.sh /config
|
||||
./install.sh ..
|
||||
```
|
||||
|
||||
推荐使用此方法安装米家集成。当您想要更新至特定版本时,只需要切换至相应的 Tag 。
|
||||
@ -28,7 +28,7 @@ cd ha_xiaomi_home
|
||||
cd config/ha_xiaomi_home
|
||||
git fetch
|
||||
git checkout v1.0.0
|
||||
./install.sh /config
|
||||
./install.sh ..
|
||||
```
|
||||
|
||||
### 方法 2: [HACS](https://hacs.xyz/)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user