Просмотр исходного кода

fix(raddy_pt5_poolthermometer): naming changes

- include brand and model in filename
- move brand and model into products section and use a generic top-level name in case of other devices matching
- disambiguate temperature sensors bu naming one
- give the pool thermometer a related icon

PR #3524
Jason Rumney 7 месяцев назад
Родитель
Сommit
f6f482b849

+ 6 - 2
custom_components/tuya_local/devices/pool_thermometer.yaml → custom_components/tuya_local/devices/raddy_pt5_poolthermometer.yaml

@@ -1,10 +1,13 @@
-name: Raddy PT-5 pool thermometer
+name: Pool thermometer
 products:
   - id: qirx90k6hg4qzpbz
-    model: EM3406B-TY
+    manufacturer: Raddy
+    model: PT-5
+    model_id: EM3406B-TY
 entities:
   - entity: sensor
     class: temperature
+    name: Ambient temperature
     dps:
       - id: 101
         name: sensor
@@ -23,6 +26,7 @@ entities:
         class: measurement
   - entity: sensor
     class: temperature
+    icon: "mdi:pool-thermometer"
     dps:
       - id: 103
         name: sensor