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

Maintenance: remove entities that have been deprecated over 6 months

Bulk replacements due to new platforms becoming available

- vacuum replaced by lawn_mower
- binary_sensor replaced by event

One off replacements for device improvements
- water_heater replaced by climate when report came that it also supports cooling
- sensor replaced by binary_sensor
- fan removed as it only duplicates the humidifier modes
Jason Rumney 1 год назад
Родитель
Сommit
f4012b508a

+ 0 - 16
custom_components/tuya_local/devices/9in1_airquality_monitor.yaml

@@ -101,22 +101,6 @@ secondary_entities:
         name: sensor
         unit: "%"
         class: measurement
-  - entity: sensor
-    name: Charge State
-    class: enum
-    category: diagnostic
-    deprecated: binary_sensor_plug
-    dps:
-      - id: 23
-        type: boolean
-        name: sensor
-        mapping:
-          - dps_val: false
-            value: "Battery"
-            icon: "mdi:battery"
-          - dps_val: true
-            value: "Charging"
-            icon: "mdi:battery-charging"
   - entity: binary_sensor
     class: plug
     category: diagnostic

+ 0 - 14
custom_components/tuya_local/devices/ble_hu06_lock.yaml

@@ -150,20 +150,6 @@ secondary_entities:
             value: ring
           - dps_val: false
             value: null
-  - entity: binary_sensor
-    name: Doorbell
-    deprecated: event_doorbell
-    class: sound
-    category: diagnostic
-    dps:
-      - id: 24
-        type: boolean
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: null
-            value: false
   - entity: number
     name: Doorbell volume
     category: config

+ 0 - 13
custom_components/tuya_local/devices/ble_solar_light.yaml

@@ -122,19 +122,6 @@ secondary_entities:
           - dps_val: none
             value: clear
           - value: null
-  - entity: binary_sensor
-    class: motion
-    deprecated: event_motion
-    category: diagnostic
-    dps:
-      - id: 52
-        type: string
-        name: sensor
-        optional: true
-        mapping:
-          - dps_val: pir
-            value: true
-          - value: false
   - entity: select
     name: Daylight cutoff
     icon: "mdi:contrast-box"

+ 0 - 9
custom_components/tuya_local/devices/bstuokey_access_keypad.yaml

@@ -120,15 +120,6 @@ secondary_entities:
             value: ring
           - dps_val: false
             value: null
-  - entity: binary_sensor
-    name: Doorbell
-    deprecated: event_doorbell
-    class: sound
-    dps:
-      - id: 101
-        type: boolean
-        name: sensor
-        optional: true
   - entity: switch
     name: Beep on error
     category: config

+ 0 - 30
custom_components/tuya_local/devices/klarstein_dryfy_pro_connect_dehumidifier.yaml

@@ -38,36 +38,6 @@ primary_entity:
       mapping:
         - step: 5
 secondary_entities:
-  - entity: fan
-    deprecated: humidifier mode
-    dps:
-      - id: 1
-        name: switch
-        type: boolean
-      - id: 2
-        name: preset_mode
-        type: string
-        optional: true
-        mapping:
-          - dps_val: auto
-            value: auto
-          - dps_val: high
-            value: high
-          - dps_val: low
-            value: low
-          - dps_val: fan
-            value: Fan
-      - id: 102
-        name: oscillate
-        type: string
-        optional: true
-        mapping:
-          - dps_val: "0_90"
-            value: true
-          - dps_val: "45"
-            value: false
-          - dps_val: "90"
-            value: false
   - entity: select
     name: Direction
     category: config

+ 0 - 72
custom_components/tuya_local/devices/linkoze_dual_button.yaml

@@ -32,78 +32,6 @@ secondary_entities:
             value: long_press
           - dps_val: double_click
             value: double_click
-  - entity: binary_sensor
-    name: Click 1
-    deprecated: event_button_1
-    dps:
-      - id: 1
-        type: string
-        name: sensor
-        persist: false
-        mapping:
-          - dps_val: single_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Click 2
-    deprecated: event_button_2
-    dps:
-      - id: 2
-        type: string
-        name: sensor
-        persist: false
-        mapping:
-          - dps_val: single_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Press 1
-    deprecated: event_button_1
-    dps:
-      - id: 1
-        type: string
-        name: sensor
-        persist: false
-        mapping:
-          - dps_val: long_press
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Press 2
-    deprecated: event_button_2
-    dps:
-      - id: 2
-        type: string
-        name: sensor
-        persist: false
-        mapping:
-          - dps_val: long_press
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Double click 1
-    deprecated: event_button_1
-    dps:
-      - id: 1
-        type: string
-        name: sensor
-        persist: false
-        mapping:
-          - dps_val: double_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Double click 2
-    deprecated: event_button_2
-    dps:
-      - id: 2
-        type: string
-        name: sensor
-        persist: false
-        mapping:
-          - dps_val: double_click
-            value: true
-          - value: false
   - entity: sensor
     class: battery
     category: diagnostic

+ 0 - 237
custom_components/tuya_local/devices/loratap_zigbee_six_switch.yaml

@@ -94,243 +94,6 @@ secondary_entities:
             value: long_press
           - dps_val: double_click
             value: double_click
-  - entity: binary_sensor
-    name: Click 1
-    deprecated: event_button_1
-    dps:
-      - id: 1
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: single_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Click 2
-    deprecated: event_button_2
-    dps:
-      - id: 2
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: single_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Click 3
-    deprecated: event_button_3
-    dps:
-      - id: 3
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: single_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Click 4
-    deprecated: event_button_4
-    dps:
-      - id: 4
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: single_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Click 5
-    deprecated: event_button_5
-    dps:
-      - id: 5
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: single_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Click 6
-    deprecated: event_button_6
-    dps:
-      - id: 6
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: single_click
-            value: true
-          - value: false
-
-  - entity: binary_sensor
-    name: Long click 1
-    deprecated: event_button_1
-    dps:
-      - id: 1
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: long_press
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Long click 2
-    deprecated: event_button_2
-    dps:
-      - id: 2
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: long_press
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Long click 3
-    deprecated: event_button_3
-    dps:
-      - id: 3
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: long_press
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Long click 4
-    deprecated: event_button_4
-    dps:
-      - id: 4
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: long_press
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Long click 5
-    deprecated: event_button_5
-    dps:
-      - id: 5
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: long_press
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Long click 6
-    deprecated: event_button_6
-    dps:
-      - id: 6
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: long_press
-            value: true
-          - value: false
-
-  - entity: binary_sensor
-    name: Double click 1
-    deprecated: event_button_1
-    dps:
-      - id: 1
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: double_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Double click 2
-    deprecated: event_button_2
-    dps:
-      - id: 2
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: double_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Double click 3
-    deprecated: event_button_3
-    dps:
-      - id: 3
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: double_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Double click 4
-    deprecated: event_button_4
-    dps:
-      - id: 4
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: double_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Double click 5
-    deprecated: event_button_5
-    dps:
-      - id: 5
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: double_click
-            value: true
-          - value: false
-  - entity: binary_sensor
-    name: Double click 6
-    deprecated: event_button_6
-    dps:
-      - id: 6
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: double_click
-            value: true
-          - value: false
-
   - entity: sensor
     class: battery
     category: diagnostic

+ 0 - 13
custom_components/tuya_local/devices/lucking_hs6_lock.yaml

@@ -217,16 +217,3 @@ secondary_entities:
             value: ring
           - dps_val: false
             value: null
-  - entity: binary_sensor
-    name: Doorbell
-    deprecated: event_doorbell
-    class: sound
-    category: diagnostic
-    dps:
-      - id: 101
-        type: boolean
-        name: sensor
-        optional: true
-        mapping:
-          - dps_val: null
-            value: false

+ 0 - 43
custom_components/tuya_local/devices/moebot_s_mower.yaml

@@ -84,49 +84,6 @@ primary_entity:
       name: zones
       optional: true
 secondary_entities:
-  - entity: vacuum
-    icon: "mdi:robot-mower"
-    deprecated: lawn_mower
-    dps:
-      - id: 101
-        name: status
-        type: string
-        mapping:
-          - dps_val: STANDBY
-            value: standby
-          - dps_val: MOWING
-            value: mowing
-          - dps_val: CHARGING
-            value: charging
-          - dps_val: EMERGENCY
-            value: manually stopped
-          - dps_val: LOCKED
-            value: locked
-          - dps_val: PAUSED
-            value: paused
-          - dps_val: PARK
-            value: returning
-          - dps_val: CHARGING_WITH_TASK_SUSPEND
-            value: charging
-          - dps_val: FIXED_MOWING
-            value: spot mowing
-          - dps_val: ERROR
-            value: error
-      - id: 115
-        name: command
-        type: string
-        optional: true
-        mapping:
-          - dps_val: StartMowing
-            value: start
-          - dps_val: StartFixedMowing
-            value: clean_spot
-          - dps_val: PauseWork
-            value: pause
-          - dps_val: CancelWork
-            value: stop
-          - dps_val: StartReturnStation
-            value: return_to_base
   - entity: button
     name: Start fixed mowing
     icon: "mdi:mower-on"

+ 0 - 12
custom_components/tuya_local/devices/pir_spotlight.yaml

@@ -81,18 +81,6 @@ secondary_entities:
             value: detected
           - dps_val: none
             value: clear
-  - entity: binary_sensor
-    class: motion
-    deprecated: event_motion
-    dps:
-      - id: 52
-        type: string
-        name: sensor
-        mapping:
-          - dps_val: "pir"
-            value: true
-          - value: false
-        optional: true
   - entity: select
     name: Motion distance
     category: config

+ 0 - 56
custom_components/tuya_local/devices/poolex_q7_heatpump.yaml

@@ -106,62 +106,6 @@ primary_entity:
       type: integer
       name: unknown_21
 secondary_entities:
-  - entity: water_heater
-    icon: "mdi:pool-thermometer"
-    deprecated: climate
-    category: config
-    dps:
-      - id: 1
-        type: boolean
-        name: operation_mode
-        mapping:
-          - dps_val: false
-            value: "off"
-          - dps_val: true
-            value: heatpump
-      - id: 2
-        type: integer
-        name: temperature
-        range:
-          min: 5
-          max: 80
-        mapping:
-          - constraint: temperature_unit
-            conditions:
-              - dps_val: f
-                range:
-                  min: 41
-                  max: 176
-                value_redirect: temp_set_f
-      - id: 3
-        type: integer
-        name: current_temperature
-        mapping:
-          - constraint: temperature_unit
-            conditions:
-              - dps_val: f
-                value_redirect: temp_current_f
-      - id: 13
-        type: string
-        name: temperature_unit
-        mapping:
-          - dps_val: c
-            value: C
-          - dps_val: f
-            value: F
-      - id: 14
-        type: integer
-        name: temp_set_f
-        range:
-          min: 41
-          max: 176
-        hidden: true
-        optional: true
-      - id: 15
-        type: integer
-        name: temp_current_f
-        hidden: true
-        optional: true
   - entity: select
     translation_key: temperature_unit
     category: config

+ 0 - 22
custom_components/tuya_local/devices/rl_video_lock.yaml

@@ -43,25 +43,3 @@ secondary_entities:
           - dps_val: ""
             value: null
           - value: ring
-  - entity: binary_sensor
-    name: Doorbell
-    deprecated: event_doorbell
-    class: sound
-    category: diagnostic
-    dps:
-      - id: 136
-        type: string
-        name: sensor
-        optional: true
-        persist: false
-        mapping:
-          - dps_val: null
-            value: false
-          - dps_val: ""
-            value: false
-          - value: true
-      - id: 136
-        type: string
-        name: details
-        optional: true
-        persist: false

+ 0 - 10
custom_components/tuya_local/devices/smardeer_lock33.yaml

@@ -97,13 +97,3 @@ secondary_entities:
             value: ring
           - dps_val: false
             value: null
-  - entity: binary_sensor
-    name: Doorbell
-    deprecated: event_doorbell
-    class: sound
-    category: diagnostic
-    dps:
-      - id: 19
-        type: boolean
-        name: sensor
-        optional: true

+ 0 - 14
custom_components/tuya_local/devices/smart_siren_alarm.yaml

@@ -237,17 +237,3 @@ secondary_entities:
           - dps_val: "ACA="
             value: ring
           - value: null
-  - entity: binary_sensor
-    name: Doorbell push
-    deprecated: event_doorbell
-    category: diagnostic
-    icon: "mdi:crosshairs-question"
-    dps:
-      - id: 128
-        type: string
-        name: sensor
-        optional: true
-        mapping:
-          - dps_val: "ACA="
-            value: true
-          - value: false