本帖最后由 relliky 于 2024-5-1 23:08 编辑
把整个集成删了一定是可以删干净的。
我也有过不得不删集成的时候,然后导致重命名都报废了,所以到后来我另外用group做传感器来避免手动重命名实体。
比如这些是我重命名人体传感器,灯,窗帘电机和温湿度传感器的代码:
cover:
- platform: group
name: Master Room Curtain
entities: cover.0x04cf8cdf3c73a19b_motor
switch:
- platform: group
name: Master Room Wall Switch 1
entities: switch.0x04cf8cdf3c7ad638_channel_1
template:
- sensor:
- name: Master Room Temperature Sensor
unit_of_measurement: "\xB0C"
- sensor:
- name: Master Room Occupancy Sensor Light
unit_of_measurement: lx
state: '{{states.sensor["dced830908fb_illuminance"].state}}'
binary_sensor:
- platform: group
name: Master Room Occupancy Sensor Occupancy
entities: binary_sensor.dced830908fb_occupancy
- platform: group
name: Master Room TV Motion Sensor Motion
entities: binary_sensor.0x00158d0005228ba8_motion
|