From e907c5207e2c0c680ca1345e3f8fe814b93a7ebe Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 27 Jan 2024 09:43:47 +0800 Subject: [PATCH] CI: add yamllint to check yaml files for potential errors Clean up existing yaml files. A lot of whitespace inconsistencies which mostly have no effect, a few indentation problems that might have prevented mappings from working, many truthy values other than true and false, some needing quoting as they were intended to be strings. Also some blank entries for attributes that were filled in or removed completely. Too many changes to list the ones that might have had an impact. --- .github/workflows/linting.yml | 8 +- .yamllint | 6 + .../devices/AlecoAir_D25_Traditio.yaml | 4 +- .../devices/advancedfires_1500_fireplace.yaml | 1 - .../tuya_local/devices/akai_dryer.yaml | 12 +- .../devices/alecoair_d14_dehumidifier.yaml | 12 +- .../devices/arlec_12speed_tower_fan.yaml | 1 - .../devices/asc_wifi_circuit_breaker.yaml | 8 +- .../tuya_local/devices/asip_0622_planter.yaml | 12 +- .../tuya_local/devices/atomi_ceiling_fan.yaml | 6 +- .../devices/atomi_ceramic_heater.yaml | 2 - .../devices/atomi_string_lights.yaml | 42 +++--- .../devices/atorch_at2pl_breaker.yaml | 2 +- .../devices/avatto_curtain_light.yaml | 1 - .../devices/avatto_wt100_thermostat.yaml | 10 +- .../devices/bcom_intercom_camera.yaml | 6 +- .../devices/beca_bac002_thermostat_c.yaml | 2 +- .../devices/beca_bht002_thermostat_c.yaml | 2 +- .../devices/beca_bht6000_thermostat_c.yaml | 2 +- .../tuya_local/devices/becool_heatpump.yaml | 2 +- .../devices/benexmart_blind_motor.yaml | 16 +-- .../devices/beok_tgm50_thermostat.yaml | 10 +- .../devices/beok_tgr81_thermostat_c.yaml | 5 +- .../devices/beok_tol47_thermostat.yaml | 10 +- .../devices/beok_tr8b_thermostat.yaml | 6 +- .../devices/beok_tr9b_thermostat.yaml | 8 +- .../devices/bht002_galw_thermostat.yaml | 6 - .../devices/ble_hct611_watertimer.yaml | 1 - .../tuya_local/devices/ble_hu06_lock.yaml | 3 +- .../devices/ble_pt216_temp_humidity.yaml | 5 - .../tuya_local/devices/ble_solar_light.yaml | 1 - .../tuya_local/devices/blitzwolf_bw_lt31.yaml | 3 +- .../devices/blitzwolf_bwis6_alarm.yaml | 9 -- .../devices/blitzwolf_bwsh2_humidifier.yaml | 6 +- .../devices/blitzwolf_bwsh5_humidifier.yaml | 20 ++- .../devices/blitzwolf_bwshp6_smartplug.yaml | 6 - .../devices/brade_mc6_thermostat.yaml | 10 +- .../devices/breville_easyair_purifier.yaml | 4 +- ...breville_smart_air_viral_protect_plus.yaml | 2 +- .../devices/brilliant_double_switch.yaml | 4 - .../devices/brilliant_quad_switch.yaml | 6 +- .../devices/brilliant_single_switch.yaml | 4 - .../devices/brilliant_triple_switch.yaml | 4 - .../devices/bstuokey_access_keypad.yaml | 1 - .../devices/cadence_aroma_diffuser.yaml | 9 +- .../tuya_local/devices/caldo_up_t_wifi.yaml | 16 +-- .../devices/carro_pn04f02d_fan_light.yaml | 12 +- .../tuya_local/devices/carson_cb.yaml | 5 +- .../devices/casafan_ceiling_fan_light.yaml | 4 +- .../devices/catit_pixi_6meal_feeder.yaml | 14 +- .../devices/catit_pixi_smart_feeder.yaml | 4 +- .../devices/catit_pixi_smart_fountain.yaml | 2 +- .../devices/ccb11_blind_controller.yaml | 3 +- .../tuya_local/devices/cct_lightbulb.yaml | 1 - .../tuya_local/devices/cecotec_fan_light.yaml | 74 +++++----- .../devices/ceres_plus_petfeeder.yaml | 9 -- .../tuya_local/devices/chanfok_fan_light.yaml | 3 - .../devices/cnc_ycb9zf_breaker.yaml | 2 - .../devices/compteur_energy_meter.yaml | 1 - .../cooper_hunter_air_conditioner.yaml | 11 +- .../tuya_local/devices/daizuki_heatpump.yaml | 1 - .../tuya_local/devices/dcenta_dual_meter.yaml | 2 +- .../devices/ditua_dt1522yn_aromadiffuser.yaml | 6 +- .../tuya_local/devices/djive_arc_fan.yaml | 2 +- .../devices/dongguan_garage_door_opener.yaml | 7 +- .../tuya_local/devices/dooya_curtain.yaml | 1 - .../devices/dts238_7_energy_meter.yaml | 7 +- .../tuya_local/devices/duux_whisper_fan.yaml | 3 +- ...i_circuit_breaker_with_energy_monitor.yaml | 25 +--- .../devices/ebac_dj4000_dehumidifier.yaml | 35 +---- .../devices/eberg_qubo_q40hd_heatpump.yaml | 6 +- .../devices/ecostrad_iqceramic_radiator.yaml | 2 - .../devices/eeese_carl_dehumidifier.yaml | 2 +- .../devices/eesee_adam_dehumidifier.yaml | 12 +- .../devices/electriq_airflex15w_heatpump.yaml | 10 +- .../electriq_cd25pro_dehumidifier.yaml | 2 +- .../devices/electriq_pd45e_dehumidifier.yaml | 5 +- .../devices/em3378_weather_station.yaml | 6 +- .../tuya_local/devices/es01_powerstrip.yaml | 14 +- .../devices/etersky_aroma_diffuser.yaml | 3 - .../devices/etop_ch7100_thermostat.yaml | 2 +- .../devices/etop_fcu_thermostat.yaml | 6 +- .../tuya_local/devices/eurom_601_heater.yaml | 2 - .../devices/evotherm_eti_heatpump.yaml | 2 +- .../tuya_local/devices/evsun_evcharger.yaml | 5 +- .../tuya_local/devices/feit_dimmer.yaml | 5 +- .../devices/ferroli_titano_twin.yaml | 2 +- .../tuya_local/devices/feyree_ev_charger.yaml | 3 +- .../fisher_summer_air_conditioner.yaml | 29 ++-- .../tuya_local/devices/fs_03w_curtain.yaml | 3 +- .../ge_jasco_ultra_pro_toggle_dimmer_v2.yaml | 4 +- .../devices/goldair_dehumidifier.yaml | 2 +- .../devices/goldair_gpdh340_dehumidifier.yaml | 4 - .../devices/gosund_usb_triple_powerstrip.yaml | 9 +- .../devices/gratkit_filament_dryer.yaml | 16 --- .../devices/greenwind_dehumidifier.yaml | 1 - .../devices/haier_nayun_gasalarm.yaml | 2 +- .../tuya_local/devices/hdmi_sync_light.yaml | 2 - .../devices/heatstorm_hs6000gc_heater.yaml | 1 - .../devices/himox_h05_purifier.yaml | 1 - .../devices/holman_wx1_taptimer.yaml | 22 +-- .../devices/holman_wx2_taptimer.yaml | 42 +++--- .../hombli_thermostatic_radiator_valve.yaml | 11 +- .../tuya_local/devices/hosome_purifier.yaml | 3 +- .../devices/hysen_hy08we2_thermostat.yaml | 20 ++- .../devices/ih001_led_controller.yaml | 11 +- .../devices/illumanance_sensor.yaml | 1 - .../devices/inkbird_bbq4t_thermometer.yaml | 12 -- .../devices/inkbird_ibbq4bw_thermometer.yaml | 36 ----- .../tuya_local/devices/inkbird_ibs_m1s.yaml | 36 +++-- .../devices/inkbird_itc308_thermostat.yaml | 2 +- .../devices/inkbird_pth9cw_airquality.yaml | 2 - .../devices/inow_heater_element.yaml | 4 - .../devices/intelbras_IFR7000_lock.yaml | 4 +- .../inventor_atmospherexl_dehumidifier.yaml | 18 +-- .../inventor_evaionpro_dehumidifier.yaml | 1 - .../tuya_local/devices/ir_moes_heatpump.yaml | 1 - .../devices/juskys_oh125bw2_radiator.yaml | 2 - ...rstein_dryfy_pro_connect_dehumidifier.yaml | 12 +- .../devices/klarta_humea_humidifier.yaml | 4 +- .../devices/kogan_air_purifier.yaml | 6 +- .../tuya_local/devices/kogan_bidet.yaml | 2 +- .../devices/kogan_dehumidifier.yaml | 1 - .../kogan_kasthfp2kwa_towerheater.yaml | 8 +- .../tuya_local/devices/kogan_lx10_vacuum.yaml | 16 +-- .../konlen_wf96l_waterlevel_controller.yaml | 14 +- .../tuya_local/devices/ledlux_thermostat.yaml | 2 +- .../tuya_local/devices/lenovo_e1_vacuum.yaml | 2 +- .../devices/liectroux_xr500_t3_vacuum.yaml | 1 - .../tuya_local/devices/loonas_curtain.yaml | 1 - .../devices/loratap_curtain_switch.yaml | 6 +- .../devices/loratap_garage_door.yaml | 3 - .../devices/lublueblu_sl60d_vacuum.yaml | 2 +- .../devices/lytmi_hdmisync_backlight.yaml | 2 +- .../tuya_local/devices/madimack_heatpump.yaml | 1 - .../devices/marpou_ceiling_lamp_ledlight.yaml | 22 +-- .../tuya_local/devices/me80_thermostat.yaml | 3 +- .../tuya_local/devices/medion_s20_vacuum.yaml | 5 +- .../devices/mellerware_comfy_radiator.yaml | 2 +- .../devices/mirabella_genio_usb.yaml | 2 +- .../devices/modernflames_orion_fireplace.yaml | 4 +- .../tuya_local/devices/moebot_s_mower.yaml | 7 +- .../devices/moes_bht002_thermostat_c.yaml | 2 +- .../devices/moes_star_projector.yaml | 1 - .../devices/moes_temp_humidity.yaml | 8 +- .../devices/motion_sensor_light.yaml | 4 +- .../devices/mrc_magnum_floorheater.yaml | 10 +- .../devices/nashone_mts700wb_thermostat.yaml | 2 +- .../tuya_local/devices/nedis_airquality.yaml | 3 - .../devices/nedis_openclose_sensor.yaml | 1 - .../devices/nedis_outdoor_camera.yaml | 6 +- .../tuya_local/devices/nedis_pet_feeder.yaml | 2 - .../devices/novadigital_quad_switch.yaml | 3 +- .../devices/orion_ptc2000_heater.yaml | 70 ++++----- .../devices/ovlaim_ceiling_fan_light.yaml | 1 - .../devices/pc311ty_energy_meter.yaml | 2 +- .../devices/petlibro_PLAF103_feeder.yaml | 4 +- .../devices/petlibro_camera_feeder.yaml | 1 - .../devices/phw218_waterquality_monitor.yaml | 4 +- .../tuya_local/devices/pir_rgbcw_light.yaml | 10 +- .../tuya_local/devices/pir_sensor.yaml | 1 - .../tuya_local/devices/pir_spotlight.yaml | 8 +- .../devices/poolex_q7_heatpump.yaml | 3 +- .../tuya_local/devices/position_blinds.yaml | 3 +- .../devices/princess_panel_heater.yaml | 1 - .../devices/proscenic_a9_airpurifier.yaml | 8 +- .../devices/proscenic_m9_vacuum.yaml | 14 +- .../devices/prosto_ptc2000_heater.yaml | 94 ++++++------ .../devices/qh_gd_elegant_heater.yaml | 2 - .../devices/qlima_d820a_dehumidifier.yaml | 2 +- .../devices/relay_switch_remote.yaml | 1 - .../devices/rgb_nightlight_outlet.yaml | 15 +- .../tuya_local/devices/rgbcw_lightbulb.yaml | 11 +- .../tuya_local/devices/rgbw_lightbulbv2.yaml | 2 - .../tuya_local/devices/rojeco_pet_feeder.yaml | 2 +- .../devices/rotenso_ronir35wi_heatpump.yaml | 2 +- .../devices/royal_airconditioner.yaml | 2 +- .../royalclima_rcb150_ventilation.yaml | 2 +- .../devices/rumba_bathroom_heater.yaml | 1 - .../devices/salcar_t9w_thermostat.yaml | 3 - .../tuya_local/devices/sherko_curtain.yaml | 4 +- .../devices/silvercrest_kettle.yaml | 4 +- .../tuya_local/devices/simple_blinds.yaml | 3 +- .../devices/simple_dual_switch_timer.yaml | 1 - .../devices/simple_dual_switch_timer_v2.yaml | 1 - .../devices/simple_quad_switch.yaml | 1 - .../tuya_local/devices/smardeer_lock33.yaml | 1 - .../tuya_local/devices/smart_led_strip.yaml | 61 +++++--- .../tuya_local/devices/smart_siren_alarm.yaml | 2 +- .../devices/smart_watering_device.yaml | 2 +- .../devices/smartmcb_smt006_energymeter.yaml | 2 +- .../smartmcb_smt006_energymeterv2.yaml | 2 +- .../tuya_local/devices/smartplug_encoded.yaml | 1 - .../tuya_local/devices/smartplug_usb.yaml | 5 - .../devices/smartplug_with_childlock.yaml | 2 +- .../devices/smartplugv2_childlock.yaml | 4 - .../devices/smartplugv2_energyv2.yaml | 2 +- .../devices/soleusair_air_purifier.yaml | 2 +- .../devices/somgom_single_switch.yaml | 2 +- .../sonninkonig_eco_elegance_heater.yaml | 3 - .../devices/space_dog_music_lamp.yaml | 68 ++++----- .../devices/stadlerform_karl_humidifier.yaml | 4 +- .../devices/stadlerform_roger_purifier.yaml | 3 +- .../devices/starlight_heatpump.yaml | 2 +- .../devices/sulion_ceiling_fan.yaml | 5 - .../devices/sunbeam_dual_bedwarmer.yaml | 8 +- .../suntec_coolfix_airconditioner.yaml | 2 - .../devices/sws01_weather_station.yaml | 6 - .../tuya_local/devices/tampa_led_system.yaml | 3 - .../devices/tesla_air_purifier_mini.yaml | 8 +- .../devices/tesla_air_purifier_pro.yaml | 8 +- .../tuya_local/devices/tesvor_s6_vacuum.yaml | 4 +- .../devices/thermex_if50v_waterheater.yaml | 2 +- .../devices/thermex_lima80v_waterheater.yaml | 4 +- .../devices/tongou_qcb2_circuitbreaker.yaml | 4 - .../devices/tontine_039-WIFI_blanket.yaml | 6 +- .../touchstone_sideline_fireplace.yaml | 3 +- .../devices/treatlife_ds03_fan_light.yaml | 2 - .../tuya_000004rime_weather_station.yaml | 46 +++--- .../devices/ultenic_t10_vacuum.yaml | 31 ++-- .../devices/usb_4way_powerstrip.yaml | 2 - .../devices/ustellar_ut99911_rgb.yaml | 3 +- .../devices/vacplus_dehumidifier.yaml | 2 +- .../tuya_local/devices/vivax_heatpump.yaml | 5 +- .../devices/vivion_airconditioner.yaml | 8 +- .../devices/vork_vk6067aw_purifier.yaml | 14 +- .../tuya_local/devices/weeket_kettle.yaml | 4 +- .../devices/wetair_wawh1210lw_humidifier.yaml | 20 +-- .../devices/wetair_wch750_heater.yaml | 2 +- .../wilfa_haze_hu400bc_humidifier.yaml | 32 ++--- .../devices/windcalm_fan_with_light.yaml | 1 - .../devices/woods_cortina_airconditioner.yaml | 4 +- .../xiumii_smart_human_presence_sensor.yaml | 6 +- .../devices/yagusmart_3pn_energymeter.yaml | 2 +- .../devices/yinmik_waterquality_tester.yaml | 1 - .../tuya_local/devices/yp_petfeeeder.yaml | 1 - .../devices/yx316wifi_aroma_diffuser.yaml | 7 +- .../devices/yym_805SW_aroma_nightlight.yaml | 3 +- .../tuya_local/devices/zemismart_curtain.yaml | 1 - .../devices/zemismart_roller_shade.yaml | 1 - .../zg205w_mmWave_presence_sensor.yaml | 4 +- .../devices/zigbee_climate_alarm.yaml | 4 +- .../zigbee_mir_te100ty_climate_sensor.yaml | 3 - .../tuya_local/devices/zigbee_smart_bulb.yaml | 11 +- .../devices/zm_wifi_smartmeter.yaml | 1 - .../devices/zx_db11_doorbell_alarm.yaml | 1 - .../devices/zx_db11b_doorbell_alarm.yaml | 1 - .../devices/zx_gs21_gasmonitor.yaml | 5 +- .../devices/zym100_presence_sensor.yaml | 134 +++++++++++++++++- .../devices/zym201_presence_sensor.yaml | 1 - requirements-dev.txt | 1 + 251 files changed, 939 insertions(+), 1050 deletions(-) create mode 100644 .yamllint diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 0eab512dfe..2c8868d221 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -17,9 +17,11 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements-dev.txt - - name: Lint check + - name: Python lint run: ruff check custom_components/tuya_local - - name: Check include order + - name: Python include order run: ruff check --select I --diff . - - name: Check coding style + - name: Python coding style run: ruff format --check --diff . + - name: YAML lint + run: yamllint -f parsable custom_components/tuya-local/devices diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000000..34b809f9ae --- /dev/null +++ b/.yamllint @@ -0,0 +1,6 @@ +--- + +extends: default +rules: + document-start: disable + new-lines: disable diff --git a/custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml b/custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml index 1d58e308bb..55347fcad8 100644 --- a/custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml +++ b/custom_components/tuya_local/devices/AlecoAir_D25_Traditio.yaml @@ -1,7 +1,7 @@ name: Dehumidifier products: - - id: bf1872f920fbb07813iiwn - name: AlecoAir D25 + - id: bf1872f920fbb07813iiwn + name: AlecoAir D25 primary_entity: entity: humidifier class: dehumidifier diff --git a/custom_components/tuya_local/devices/advancedfires_1500_fireplace.yaml b/custom_components/tuya_local/devices/advancedfires_1500_fireplace.yaml index 8c45cc5504..d5b9f78196 100644 --- a/custom_components/tuya_local/devices/advancedfires_1500_fireplace.yaml +++ b/custom_components/tuya_local/devices/advancedfires_1500_fireplace.yaml @@ -244,4 +244,3 @@ secondary_entities: - id: 113 name: color_disabled type: boolean - diff --git a/custom_components/tuya_local/devices/akai_dryer.yaml b/custom_components/tuya_local/devices/akai_dryer.yaml index 918bd1d35d..20fbdb3af3 100644 --- a/custom_components/tuya_local/devices/akai_dryer.yaml +++ b/custom_components/tuya_local/devices/akai_dryer.yaml @@ -8,7 +8,7 @@ primary_entity: icon: "mdi:tumble-dryer" dps: - id: 107 - name: sensor # state + name: sensor type: string mapping: - dps_val: "off" @@ -34,14 +34,14 @@ secondary_entities: icon: "mdi:play" dps: - id: 105 - name: button # start + name: button type: boolean - entity: button name: Pause icon: "mdi:pause" dps: - id: 105 - name: button # start + name: button type: boolean mapping: - dps_val: false @@ -51,7 +51,7 @@ secondary_entities: icon: "mdi:tumble-dryer" dps: - id: 5 - name: option # drying_mode + name: option type: string mapping: - dps_val: "OFF" @@ -91,7 +91,7 @@ secondary_entities: icon: "mdi:signal" dps: - id: 101 - name: option # drying_level + name: option type: integer mapping: - dps_val: 0 @@ -128,6 +128,6 @@ secondary_entities: class: duration dps: - id: 4 - name: sensor # drying_time_left + name: sensor type: integer unit: min diff --git a/custom_components/tuya_local/devices/alecoair_d14_dehumidifier.yaml b/custom_components/tuya_local/devices/alecoair_d14_dehumidifier.yaml index cc471fc526..f04dd4eda9 100644 --- a/custom_components/tuya_local/devices/alecoair_d14_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/alecoair_d14_dehumidifier.yaml @@ -7,12 +7,12 @@ primary_entity: name: switch type: boolean mapping: - - dps_val: false - icon: "mdi:air-humidifier-off" - icon_priority: 1 - - dps_val: true - icon: "mdi:air-humidifier" - icon_priority: 4 + - dps_val: false + icon: "mdi:air-humidifier-off" + icon_priority: 1 + - dps_val: true + icon: "mdi:air-humidifier" + icon_priority: 4 - id: 2 name: humidity type: integer diff --git a/custom_components/tuya_local/devices/arlec_12speed_tower_fan.yaml b/custom_components/tuya_local/devices/arlec_12speed_tower_fan.yaml index 46a982bec3..216bd58e41 100644 --- a/custom_components/tuya_local/devices/arlec_12speed_tower_fan.yaml +++ b/custom_components/tuya_local/devices/arlec_12speed_tower_fan.yaml @@ -149,4 +149,3 @@ secondary_entities: - id: 9 type: boolean name: switch - diff --git a/custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml b/custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml index 2d1ce0feb7..403f0aed40 100644 --- a/custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml +++ b/custom_components/tuya_local/devices/asc_wifi_circuit_breaker.yaml @@ -6,7 +6,7 @@ primary_entity: dps: - id: 1 name: switch - type: boolean + type: boolean secondary_entities: - entity: number name: Countdown @@ -56,9 +56,3 @@ secondary_entities: optional: true mapping: - scale: 10 - - - - - - diff --git a/custom_components/tuya_local/devices/asip_0622_planter.yaml b/custom_components/tuya_local/devices/asip_0622_planter.yaml index 72327218a4..e1d46162f5 100644 --- a/custom_components/tuya_local/devices/asip_0622_planter.yaml +++ b/custom_components/tuya_local/devices/asip_0622_planter.yaml @@ -1,7 +1,7 @@ name: Planter products: - - id: - name: ASIP-0622 indoor planter +# - id: +# name: ASIP-0622 indoor planter primary_entity: entity: switch icon: "mdi:sprout" @@ -39,7 +39,6 @@ secondary_entities: name: limits # format: min,max - entity: sensor - name: class: humidity dps: - id: 7 @@ -111,7 +110,7 @@ secondary_entities: type: integer name: option mapping: - - dps_val: -1 + - dps_val: -1 value: Not planted - dps_val: 0 value: Holy maiden fruit @@ -336,7 +335,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: "0" + - dps_val: "0" value: Auto - dps_val: "1" value: Manual @@ -346,6 +345,3 @@ secondary_entities: - id: 123 type: boolean name: switch - - - diff --git a/custom_components/tuya_local/devices/atomi_ceiling_fan.yaml b/custom_components/tuya_local/devices/atomi_ceiling_fan.yaml index 1d386a08ee..6651aba57e 100644 --- a/custom_components/tuya_local/devices/atomi_ceiling_fan.yaml +++ b/custom_components/tuya_local/devices/atomi_ceiling_fan.yaml @@ -37,7 +37,8 @@ secondary_entities: name: switch - id: 21 # docs give the standard white, colour, scene, music values, but this - # device does not have color or scene dps, so just leave it for monitoring + # device does not have color or scene dps, so just leave it for + # monitoring name: work_mode type: string - id: 22 @@ -80,6 +81,3 @@ secondary_entities: - id: 34 type: boolean name: switch - - - diff --git a/custom_components/tuya_local/devices/atomi_ceramic_heater.yaml b/custom_components/tuya_local/devices/atomi_ceramic_heater.yaml index baa1f68c15..d93d17d62e 100644 --- a/custom_components/tuya_local/devices/atomi_ceramic_heater.yaml +++ b/custom_components/tuya_local/devices/atomi_ceramic_heater.yaml @@ -112,5 +112,3 @@ secondary_entities: - id: 103 type: boolean name: sensor - - diff --git a/custom_components/tuya_local/devices/atomi_string_lights.yaml b/custom_components/tuya_local/devices/atomi_string_lights.yaml index 901573ef69..a96f387b82 100644 --- a/custom_components/tuya_local/devices/atomi_string_lights.yaml +++ b/custom_components/tuya_local/devices/atomi_string_lights.yaml @@ -51,27 +51,27 @@ primary_entity: name: rgbhsv type: hex format: - - name: r - bytes: 1 - - name: g - bytes: 1 - - name: b - bytes: 1 - - name: h - bytes: 2 - range: - min: 0 - max: 360 - - name: s - bytes: 1 - range: - min: 0 - max: 255 - - name: v - bytes: 1 - range: - min: 0 - max: 255 + - name: r + bytes: 1 + - name: g + bytes: 1 + - name: b + bytes: 1 + - name: h + bytes: 2 + range: + min: 0 + max: 360 + - name: s + bytes: 1 + range: + min: 0 + max: 255 + - name: v + bytes: 1 + range: + min: 0 + max: 255 - id: 101 name: scene_data type: hex diff --git a/custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml b/custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml index a5d6a02f48..a267c4d1dd 100644 --- a/custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml +++ b/custom_components/tuya_local/devices/atorch_at2pl_breaker.yaml @@ -68,7 +68,7 @@ secondary_entities: dps: - id: 101 type: integer - name: value + name: value range: min: 0 max: 99999 diff --git a/custom_components/tuya_local/devices/avatto_curtain_light.yaml b/custom_components/tuya_local/devices/avatto_curtain_light.yaml index 563265382f..89df220f0b 100644 --- a/custom_components/tuya_local/devices/avatto_curtain_light.yaml +++ b/custom_components/tuya_local/devices/avatto_curtain_light.yaml @@ -77,4 +77,3 @@ secondary_entities: range: min: 10 max: 120 - diff --git a/custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml b/custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml index 0fc073a912..3c992aa228 100644 --- a/custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml +++ b/custom_components/tuya_local/devices/avatto_wt100_thermostat.yaml @@ -86,7 +86,7 @@ secondary_entities: icon: "mdi:hand-back-right-off" - dps_val: false icon: "mdi:hand-back-right" - - entity: switch + - entity: switch name: Sound category: config icon: "mdi:music-note" @@ -104,8 +104,8 @@ secondary_entities: name: sensor mapping: - dps_val: 0 - value: False - - value: True + value: false + - value: true - entity: number name: Temperature calibration category: config @@ -195,14 +195,14 @@ secondary_entities: mapping: - dps_val: "1" value: "Weekday+Weekend" - - dps_val: "2" + - dps_val: "2" value: "Mon-Sat+Sun" - dps_val: "3" value: "Daily" - entity: switch name: Output reverse category: config - icon: "mdi:swap-horizontal" + icon: "mdi:swap-horizontal" dps: - id: 101 type: boolean diff --git a/custom_components/tuya_local/devices/bcom_intercom_camera.yaml b/custom_components/tuya_local/devices/bcom_intercom_camera.yaml index f1d1e189fe..781a5cfbee 100644 --- a/custom_components/tuya_local/devices/bcom_intercom_camera.yaml +++ b/custom_components/tuya_local/devices/bcom_intercom_camera.yaml @@ -121,7 +121,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: "1" + - dps_val: "1" value: Event - dps_val: "2" value: Continuous @@ -139,6 +139,4 @@ secondary_entities: dps: - id: 231 type: string - name: sensor - - + name: sensor diff --git a/custom_components/tuya_local/devices/beca_bac002_thermostat_c.yaml b/custom_components/tuya_local/devices/beca_bac002_thermostat_c.yaml index fd8bee091a..9975fced1f 100644 --- a/custom_components/tuya_local/devices/beca_bac002_thermostat_c.yaml +++ b/custom_components/tuya_local/devices/beca_bac002_thermostat_c.yaml @@ -36,7 +36,7 @@ primary_entity: name: preset_mode mapping: - dps_val: true - value: eco + value: eco - dps_val: false value: comfort - id: 102 diff --git a/custom_components/tuya_local/devices/beca_bht002_thermostat_c.yaml b/custom_components/tuya_local/devices/beca_bht002_thermostat_c.yaml index bba6282080..e98ae978a0 100644 --- a/custom_components/tuya_local/devices/beca_bht002_thermostat_c.yaml +++ b/custom_components/tuya_local/devices/beca_bht002_thermostat_c.yaml @@ -37,7 +37,7 @@ primary_entity: name: preset_mode mapping: - dps_val: true - value: eco + value: eco - dps_val: false value: comfort - id: 102 diff --git a/custom_components/tuya_local/devices/beca_bht6000_thermostat_c.yaml b/custom_components/tuya_local/devices/beca_bht6000_thermostat_c.yaml index cad35a6ec2..1401af5695 100644 --- a/custom_components/tuya_local/devices/beca_bht6000_thermostat_c.yaml +++ b/custom_components/tuya_local/devices/beca_bht6000_thermostat_c.yaml @@ -40,7 +40,7 @@ primary_entity: name: preset_mode mapping: - dps_val: true - value: eco + value: eco - dps_val: false value: comfort - id: 102 diff --git a/custom_components/tuya_local/devices/becool_heatpump.yaml b/custom_components/tuya_local/devices/becool_heatpump.yaml index 2d3909c786..0dd6ed5b39 100644 --- a/custom_components/tuya_local/devices/becool_heatpump.yaml +++ b/custom_components/tuya_local/devices/becool_heatpump.yaml @@ -28,7 +28,7 @@ primary_entity: - id: 5 type: string name: mode -# unhide for debugging hidden: true + hidden: true - id: 6 type: integer name: temperature diff --git a/custom_components/tuya_local/devices/benexmart_blind_motor.yaml b/custom_components/tuya_local/devices/benexmart_blind_motor.yaml index 97abd499e2..50f14f5a40 100644 --- a/custom_components/tuya_local/devices/benexmart_blind_motor.yaml +++ b/custom_components/tuya_local/devices/benexmart_blind_motor.yaml @@ -30,11 +30,11 @@ primary_entity: mapping: - invert: true secondary_entities: - - entity: switch - category: config - name: Reversed - icon: "mdi:arrow-u-down-left" - dps: - - id: 5 - type: boolean - name: switch + - entity: switch + category: config + name: Reversed + icon: "mdi:arrow-u-down-left" + dps: + - id: 5 + type: boolean + name: switch diff --git a/custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml b/custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml index b6491c5451..c8b3d585c6 100644 --- a/custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml +++ b/custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml @@ -71,7 +71,7 @@ primary_entity: type: bitfield - id: 15 name: max_temperature - type: integer + type: integer secondary_entities: - entity: lock name: Child lock @@ -197,14 +197,14 @@ secondary_entities: mapping: - dps_val: "1" value: "Weekday+Weekend" - - dps_val: "2" + - dps_val: "2" value: "Mon-Sat+Sun" - dps_val: "3" - value: "Daily" + value: "Daily" - entity: switch name: Invert output category: config - icon: "mdi:swap-horizontal" + icon: "mdi:swap-horizontal" dps: - id: 108 type: boolean @@ -224,7 +224,7 @@ secondary_entities: value: External - dps_val: "3" value: Both - - entity: switch + - entity: switch name: Sound category: config icon: "mdi:music-note" diff --git a/custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml b/custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml index 668cd798ce..4dea98ab63 100644 --- a/custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml +++ b/custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml @@ -67,7 +67,6 @@ primary_entity: - id: 45 name: fault_code type: bitfield - secondary_entities: - entity: number name: Calibration offset @@ -131,8 +130,8 @@ secondary_entities: optional: true mapping: - dps_val: 0 - value: False - - value: True + value: false + - value: true - entity: number name: High temperature limit category: config diff --git a/custom_components/tuya_local/devices/beok_tol47_thermostat.yaml b/custom_components/tuya_local/devices/beok_tol47_thermostat.yaml index ccff6bcb48..f0b48f28d1 100644 --- a/custom_components/tuya_local/devices/beok_tol47_thermostat.yaml +++ b/custom_components/tuya_local/devices/beok_tol47_thermostat.yaml @@ -75,7 +75,7 @@ secondary_entities: icon: "mdi:hand-back-right-off" - dps_val: false icon: "mdi:hand-back-right" - - entity: switch + - entity: switch name: Sound category: config icon: "mdi:music-note" @@ -93,8 +93,8 @@ secondary_entities: name: sensor mapping: - dps_val: 0 - value: False - - value: True + value: false + - value: true - entity: number name: Calibration offset category: config @@ -176,14 +176,14 @@ secondary_entities: mapping: - dps_val: "1" value: "Weekday+Weekend" - - dps_val: "2" + - dps_val: "2" value: "Mon-Sat+Sun" - dps_val: "3" value: "Daily" - entity: switch name: Output main reverse category: config - icon: "mdi:swap-horizontal" + icon: "mdi:swap-horizontal" dps: - id: 101 type: boolean diff --git a/custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml b/custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml index 9e86014af7..d9f5e7b81c 100644 --- a/custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml +++ b/custom_components/tuya_local/devices/beok_tr8b_thermostat.yaml @@ -91,9 +91,9 @@ primary_entity: - dps_val: open constraint: preset_mode conditions: - - dps_val: [ cool, floor ] + - dps_val: [cool, floor] value: cooling - - dps_val: [ heat, floor_heat ] + - dps_val: [heat, floor_heat] value: heating - value: idle - dps_val: close @@ -141,7 +141,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: c + - dps_val: c value: Celsius - dps_val: f value: Fahrenheit diff --git a/custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml b/custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml index 13be892188..eb3e880bbb 100644 --- a/custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml +++ b/custom_components/tuya_local/devices/beok_tr9b_thermostat.yaml @@ -111,9 +111,9 @@ secondary_entities: name: sensor mapping: - dps_val: open - value: True + value: true - dps_val: close - value: False + value: false - entity: lock name: "Child lock" category: config @@ -136,8 +136,8 @@ secondary_entities: name: sensor mapping: - dps_val: 0 - value: False - - value: True + value: false + - value: true - entity: number name: High temperature limit category: config diff --git a/custom_components/tuya_local/devices/bht002_galw_thermostat.yaml b/custom_components/tuya_local/devices/bht002_galw_thermostat.yaml index 32e46786ba..775c5b9a54 100644 --- a/custom_components/tuya_local/devices/bht002_galw_thermostat.yaml +++ b/custom_components/tuya_local/devices/bht002_galw_thermostat.yaml @@ -136,9 +136,3 @@ secondary_entities: range: min: -9 max: 9 - - - - - - diff --git a/custom_components/tuya_local/devices/ble_hct611_watertimer.yaml b/custom_components/tuya_local/devices/ble_hct611_watertimer.yaml index 9cb37c4f00..90f2af6d39 100644 --- a/custom_components/tuya_local/devices/ble_hct611_watertimer.yaml +++ b/custom_components/tuya_local/devices/ble_hct611_watertimer.yaml @@ -130,4 +130,3 @@ secondary_entities: - id: 14 type: boolean name: switch - diff --git a/custom_components/tuya_local/devices/ble_hu06_lock.yaml b/custom_components/tuya_local/devices/ble_hu06_lock.yaml index 993b8a8e33..0611a76111 100644 --- a/custom_components/tuya_local/devices/ble_hu06_lock.yaml +++ b/custom_components/tuya_local/devices/ble_hu06_lock.yaml @@ -129,7 +129,7 @@ secondary_entities: class: safety category: diagnostic dps: - - id: 22 + - id: 22 type: boolean name: sensor optional: true @@ -243,4 +243,3 @@ secondary_entities: - id: 107 type: boolean name: sensor - diff --git a/custom_components/tuya_local/devices/ble_pt216_temp_humidity.yaml b/custom_components/tuya_local/devices/ble_pt216_temp_humidity.yaml index 4afc959f64..62726f2d88 100644 --- a/custom_components/tuya_local/devices/ble_pt216_temp_humidity.yaml +++ b/custom_components/tuya_local/devices/ble_pt216_temp_humidity.yaml @@ -69,8 +69,3 @@ secondary_entities: range: min: 3 max: 10 - - - - - diff --git a/custom_components/tuya_local/devices/ble_solar_light.yaml b/custom_components/tuya_local/devices/ble_solar_light.yaml index dda3aa68af..0d2c838f2c 100644 --- a/custom_components/tuya_local/devices/ble_solar_light.yaml +++ b/custom_components/tuya_local/devices/ble_solar_light.yaml @@ -241,4 +241,3 @@ secondary_entities: value: 50 - dps_val: high value: 80 - diff --git a/custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml b/custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml index dca32c1a79..c899d07838 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml @@ -115,7 +115,8 @@ secondary_entities: - dps_val: "023264000003e803e8" value: "Flash" # color+ R, speed 50, bright 100 - - dps_val: "033264000003e803e8007803e803e800f003e803e8003b03e803e8013603e803e8010e03e803e8" + - dps_val: "033264000003e803e8007803e803e800f003e80\ + 3e8003b03e803e8013603e803e8010e03e803e8" value: "Jump" # color+ R+G+B+Y+C+P, speed 50, bright 100 - dps_val: "043264000003e803e8007803e803e800f003e803e8" diff --git a/custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml b/custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml index 7e84ed93cc..dea81f1011 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml @@ -190,12 +190,3 @@ secondary_entities: - id: 34 type: boolean name: button - - - - - - - - - diff --git a/custom_components/tuya_local/devices/blitzwolf_bwsh2_humidifier.yaml b/custom_components/tuya_local/devices/blitzwolf_bwsh2_humidifier.yaml index 0aa36eb676..aaf4bcc541 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwsh2_humidifier.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwsh2_humidifier.yaml @@ -1,6 +1,6 @@ -# sample DPS {'1': False, '3': 'grade1', '6': 'close', 19: 'cancel'} +# sample DPS {'1': False, '3': 'grade1', '6': 'close', 19: 'cancel'} name: BlitzWolf BWSH2 humidifier -products: +products: - id: 20268362d8bfc0080ec9 primary_entity: entity: fan @@ -64,7 +64,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: cancel + - dps_val: cancel value: "Off" - dps_val: "2h" value: "2 hours" diff --git a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml index cac96024d8..0c49286bbd 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml @@ -1,5 +1,5 @@ name: Humidifier -products: +products: - id: lqzme7o0kzhumdxr name: BlitzWolf BWSH5 primary_entity: @@ -7,7 +7,7 @@ primary_entity: class: humidifier dps: - id: 1 - name: switch + name: switch type: boolean - id: 4 name: mode @@ -27,7 +27,7 @@ primary_entity: value: boost - dps_val: manual value: normal - - id: 13 + - id: 13 name: humidity type: integer optional: true @@ -52,7 +52,6 @@ secondary_entities: - id: 21 name: switch type: boolean - #optional: true - entity: switch name: Warm mist icon: "mdi:fire" @@ -91,8 +90,8 @@ secondary_entities: - id: 1 name: switch type: boolean - - id: 23 - name: speed + - id: 23 + name: speed type: string optional: true mapping: @@ -104,11 +103,11 @@ secondary_entities: value: 45 - dps_val: "level_4" value: 55 - - dps_val: "level_5" + - dps_val: "level_5" value: 70 - dps_val: "level_6" value: 85 - - dps_val: "level_7" + - dps_val: "level_7" value: 100 - entity: sensor class: temperature @@ -129,7 +128,7 @@ secondary_entities: category: config dps: - id: 19 - name: option + name: option type: string optional: true mapping: @@ -164,7 +163,6 @@ secondary_entities: type: integer optional: true - entity: select - # note: this is used only for device display. To adjust temperature sensor unit change it in entity settings name: Display temperature unit category: config dps: @@ -177,7 +175,7 @@ secondary_entities: value: Celsius icon: "mdi:temperature-celsius" - dps_val: f - value: Fahrenheit + value: Fahrenheit icon: "mdi:temperature-fahrenheit" - entity: binary_sensor name: Low water diff --git a/custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml b/custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml index 50ff163969..203250a745 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwshp6_smartplug.yaml @@ -131,9 +131,3 @@ secondary_entities: - id: 40 type: boolean name: lock - - - - - - diff --git a/custom_components/tuya_local/devices/brade_mc6_thermostat.yaml b/custom_components/tuya_local/devices/brade_mc6_thermostat.yaml index 5335fb39ee..49196c276d 100644 --- a/custom_components/tuya_local/devices/brade_mc6_thermostat.yaml +++ b/custom_components/tuya_local/devices/brade_mc6_thermostat.yaml @@ -138,7 +138,7 @@ secondary_entities: category: config icon: "mdi:thermometer-chevron-up" dps: - - id: 19 + - id: 19 type: integer name: value range: @@ -175,7 +175,7 @@ secondary_entities: category: config icon: "mdi:thermometer-chevron-down" dps: - - id: 26 + - id: 26 type: integer name: value range: @@ -216,7 +216,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: c + - dps_val: c value: Celsius - dps_val: f value: Fahrenheit @@ -262,7 +262,7 @@ secondary_entities: icon: "mdi:arrow-collapse-vertical" category: config dps: - - id: 103 + - id: 103 type: string name: option mapping: @@ -274,5 +274,3 @@ secondary_entities: value: "2" - dps_val: "3" value: "3" - - diff --git a/custom_components/tuya_local/devices/breville_easyair_purifier.yaml b/custom_components/tuya_local/devices/breville_easyair_purifier.yaml index fdee626c8a..82e772f0dd 100644 --- a/custom_components/tuya_local/devices/breville_easyair_purifier.yaml +++ b/custom_components/tuya_local/devices/breville_easyair_purifier.yaml @@ -60,9 +60,9 @@ secondary_entities: - dps_val: "2" value: "2 hour" - dps_val: "4" - value: "4 hours" + value: "4 hours" - dps_val: "8" - value: "8 hours" + value: "8 hours" - entity: sensor name: Time left category: diagnostic diff --git a/custom_components/tuya_local/devices/breville_smart_air_viral_protect_plus.yaml b/custom_components/tuya_local/devices/breville_smart_air_viral_protect_plus.yaml index b278789a9b..17819f8e75 100644 --- a/custom_components/tuya_local/devices/breville_smart_air_viral_protect_plus.yaml +++ b/custom_components/tuya_local/devices/breville_smart_air_viral_protect_plus.yaml @@ -29,7 +29,7 @@ primary_entity: value: 50 - dps_val: "high" value: 75 - - dps_val: "tubo" # there's a typo in the firmware + - dps_val: "tubo" # there's a typo in the firmware value: 100 secondary_entities: - entity: sensor diff --git a/custom_components/tuya_local/devices/brilliant_double_switch.yaml b/custom_components/tuya_local/devices/brilliant_double_switch.yaml index 670b1c7a1c..cf19ecf70b 100644 --- a/custom_components/tuya_local/devices/brilliant_double_switch.yaml +++ b/custom_components/tuya_local/devices/brilliant_double_switch.yaml @@ -89,7 +89,3 @@ secondary_entities: class: measurement mapping: - scale: 10 - - - - diff --git a/custom_components/tuya_local/devices/brilliant_quad_switch.yaml b/custom_components/tuya_local/devices/brilliant_quad_switch.yaml index b686f6b6df..415b96cd0c 100644 --- a/custom_components/tuya_local/devices/brilliant_quad_switch.yaml +++ b/custom_components/tuya_local/devices/brilliant_quad_switch.yaml @@ -1,7 +1,7 @@ name: Quad wall switch products: - id: kopqi7ax9pwi7nr2 - name: Briliiant Smart glass wall switch 4-gang + name: Brilliant Smart glass wall switch 4-gang primary_entity: entity: switch class: switch @@ -133,7 +133,3 @@ secondary_entities: class: measurement mapping: - scale: 10 - - - - diff --git a/custom_components/tuya_local/devices/brilliant_single_switch.yaml b/custom_components/tuya_local/devices/brilliant_single_switch.yaml index a135e842ea..d96a337db8 100644 --- a/custom_components/tuya_local/devices/brilliant_single_switch.yaml +++ b/custom_components/tuya_local/devices/brilliant_single_switch.yaml @@ -66,7 +66,3 @@ secondary_entities: class: measurement mapping: - scale: 10 - - - - diff --git a/custom_components/tuya_local/devices/brilliant_triple_switch.yaml b/custom_components/tuya_local/devices/brilliant_triple_switch.yaml index f473d3eb78..be2e29f79a 100644 --- a/custom_components/tuya_local/devices/brilliant_triple_switch.yaml +++ b/custom_components/tuya_local/devices/brilliant_triple_switch.yaml @@ -111,7 +111,3 @@ secondary_entities: class: measurement mapping: - scale: 10 - - - - diff --git a/custom_components/tuya_local/devices/bstuokey_access_keypad.yaml b/custom_components/tuya_local/devices/bstuokey_access_keypad.yaml index df69b1a9b9..b78ff581a2 100644 --- a/custom_components/tuya_local/devices/bstuokey_access_keypad.yaml +++ b/custom_components/tuya_local/devices/bstuokey_access_keypad.yaml @@ -153,4 +153,3 @@ secondary_entities: type: boolean optional: true name: sensor - diff --git a/custom_components/tuya_local/devices/cadence_aroma_diffuser.yaml b/custom_components/tuya_local/devices/cadence_aroma_diffuser.yaml index e479071445..5db6c66dc8 100644 --- a/custom_components/tuya_local/devices/cadence_aroma_diffuser.yaml +++ b/custom_components/tuya_local/devices/cadence_aroma_diffuser.yaml @@ -43,7 +43,8 @@ secondary_entities: max: 1000 mapping: - scale: 3.92 - # 10: rgbhsv, but not present in log and no color_mode to select it, so probably a doc error + # 10: rgbhsv, but not present in log and no color_mode to select it, + # so probably a doc error - id: 105 name: effect type: boolean @@ -61,11 +62,11 @@ secondary_entities: icon: "mdi:music" category: config dps: - - id: 101 + - id: 101 type: string name: option mapping: - - dps_val: "0" + - dps_val: "0" value: Track 1 - dps_val: "1" value: Track 2 @@ -112,7 +113,7 @@ secondary_entities: dps: - id: 107 type: boolean - name: button + name: button optional: true - entity: button name: Play music diff --git a/custom_components/tuya_local/devices/caldo_up_t_wifi.yaml b/custom_components/tuya_local/devices/caldo_up_t_wifi.yaml index 34cf2bad88..21217fb725 100644 --- a/custom_components/tuya_local/devices/caldo_up_t_wifi.yaml +++ b/custom_components/tuya_local/devices/caldo_up_t_wifi.yaml @@ -47,11 +47,11 @@ primary_entity: - dps_val: true value: "on" secondary_entities: - - entity: switch - name: Window detection - icon: "mdi:window-open-variant" - category: config - dps: - - id: 101 - type: boolean - name: switch + - entity: switch + name: Window detection + icon: "mdi:window-open-variant" + category: config + dps: + - id: 101 + type: boolean + name: switch diff --git a/custom_components/tuya_local/devices/carro_pn04f02d_fan_light.yaml b/custom_components/tuya_local/devices/carro_pn04f02d_fan_light.yaml index 3e864d63b1..3bd29f6cb4 100644 --- a/custom_components/tuya_local/devices/carro_pn04f02d_fan_light.yaml +++ b/custom_components/tuya_local/devices/carro_pn04f02d_fan_light.yaml @@ -10,8 +10,8 @@ primary_entity: name: switch - id: 21 type: string - # Shows in the instruction set with standard white/colour/scene/music properties - # but this is a dimming switch and doesn't have color/scene dps + # Shows in the instruction set with standard white/colour/scene/music + # properties but this is a dimming switch and doesn't have color/scene dps name: work_mode optional: true - id: 22 @@ -33,12 +33,12 @@ secondary_entities: type: boolean name: switch - id: 62 - type: integer + type: integer name: speed mapping: - dps_val: 1 - value: 33 + value: 33 - dps_val: 2 - value: 66 + value: 66 - dps_val: 3 - value: 100 + value: 100 diff --git a/custom_components/tuya_local/devices/carson_cb.yaml b/custom_components/tuya_local/devices/carson_cb.yaml index 7740219352..4ceac9cc24 100644 --- a/custom_components/tuya_local/devices/carson_cb.yaml +++ b/custom_components/tuya_local/devices/carson_cb.yaml @@ -3,7 +3,8 @@ products: # original product id unknown: Carson CB PA280 - id: 2tgd3qnobb1mcgd9 name: Shinco Yoau YWD1 - # also sold as Axelair Tempero CMM3000, Domair Callisto (product id may be same or different?) + # also sold as Axelair Tempero CMM3000, Domair Callisto + # (product id may be same or different?) primary_entity: entity: climate dps: @@ -28,7 +29,7 @@ primary_entity: value: dry - dps_val: HEAT icon: "mdi:fire" - value: heat + value: heat - id: 2 name: temperature type: integer diff --git a/custom_components/tuya_local/devices/casafan_ceiling_fan_light.yaml b/custom_components/tuya_local/devices/casafan_ceiling_fan_light.yaml index 38cc4537c9..2ff224a63f 100644 --- a/custom_components/tuya_local/devices/casafan_ceiling_fan_light.yaml +++ b/custom_components/tuya_local/devices/casafan_ceiling_fan_light.yaml @@ -45,7 +45,8 @@ secondary_entities: mapping: - scale: 0.392 - id: 17 - # 17 is listed as color_temp, and reported by the device, but light is fixed 3000K light + # 17 is listed as color_temp, and reported by the device, but light + # is fixed 3000K light name: reserved_color_temp type: integer range: @@ -74,4 +75,3 @@ secondary_entities: value: "5 hours" - dps_val: "6h" value: "6 hours" - diff --git a/custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml b/custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml index 22f9bf7b1a..be34b4da3c 100644 --- a/custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml +++ b/custom_components/tuya_local/devices/catit_pixi_6meal_feeder.yaml @@ -12,12 +12,14 @@ primary_entity: optional: true - id: 1 type: string - # Meal plan is the following binary blob (1 byte per line), encoded in base64: - # - Date (1 bit per day Monday -> Sunday, padded with 0 on the MSB). Ex: Monday, Wednesday, Sunday -> 0b01010001 - # - Hour - # - Minute - # - Feed # - # - Enable/Disabled + # Meal plan is the following binary blob (1 byte per line), encoded + # in base64: + # - Date (1 bit per day Monday -> Sunday, padded with 0 on the MSB). + # Ex: Monday, Wednesday, Sunday -> 0b01010001 + # - Hour + # - Minute + # - Feed number + # - Enable/Disabled name: meal_plan optional: true secondary_entities: diff --git a/custom_components/tuya_local/devices/catit_pixi_smart_feeder.yaml b/custom_components/tuya_local/devices/catit_pixi_smart_feeder.yaml index ec1389fb96..3a5c7df5c1 100644 --- a/custom_components/tuya_local/devices/catit_pixi_smart_feeder.yaml +++ b/custom_components/tuya_local/devices/catit_pixi_smart_feeder.yaml @@ -51,7 +51,7 @@ secondary_entities: class: problem category: diagnostic dps: - - id: 14 + - id: 14 type: bitfield name: sensor optional: true @@ -64,7 +64,7 @@ secondary_entities: class: problem category: diagnostic dps: - - id: 14 + - id: 14 type: bitfield name: sensor optional: true diff --git a/custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml b/custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml index 5c078f7452..61f5ae33d6 100644 --- a/custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml +++ b/custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml @@ -38,7 +38,7 @@ secondary_entities: min: 0 max: 43200 mapping: - - scale: 1440 # minutes => days + - scale: 1440 # minutes => days invert: true unit: d - entity: sensor diff --git a/custom_components/tuya_local/devices/ccb11_blind_controller.yaml b/custom_components/tuya_local/devices/ccb11_blind_controller.yaml index 8c49b36e71..9a1156f67b 100644 --- a/custom_components/tuya_local/devices/ccb11_blind_controller.yaml +++ b/custom_components/tuya_local/devices/ccb11_blind_controller.yaml @@ -71,8 +71,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: forward + - dps_val: forward value: Forward - dps_val: back value: Reverse - diff --git a/custom_components/tuya_local/devices/cct_lightbulb.yaml b/custom_components/tuya_local/devices/cct_lightbulb.yaml index 06c9a24b8d..607e9f35aa 100644 --- a/custom_components/tuya_local/devices/cct_lightbulb.yaml +++ b/custom_components/tuya_local/devices/cct_lightbulb.yaml @@ -58,4 +58,3 @@ secondary_entities: - scale: 60 step: 60 optional: true - diff --git a/custom_components/tuya_local/devices/cecotec_fan_light.yaml b/custom_components/tuya_local/devices/cecotec_fan_light.yaml index 7ea66bbaa8..6d4d4bd82a 100644 --- a/custom_components/tuya_local/devices/cecotec_fan_light.yaml +++ b/custom_components/tuya_local/devices/cecotec_fan_light.yaml @@ -51,38 +51,48 @@ secondary_entities: - id: 15 type: boolean name: switch -# I comment this features because that are reported by device but does nothing with it. -# -# {"abilityId":16,"accessMode":"rw","code":"bright_value","description":"","name":"灯光亮度","typeSpec":{"max":100,"min":1,"scale":0,"step":1,"type":"value","typeDefaultValue":1,"unit":""}}, -# {"abilityId":17,"accessMode":"rw","code":"temp_value","description":"","name":"灯光色温","typeSpec":{"max":100,"min":0,"scale":0,"step":1,"type":"value","typeDefaultValue":0,"unit":""}}, -# {"abilityId":19,"accessMode":"rw","code":"work_mode","description":"","name":"灯光模式","typeSpec":{"range":["white","warm","cold","night"],"type":"enum","typeDefaultValue":"white"}}, -# -# -# - id: 16 -# type: integer -# name: brightness -# range: -# min: 25 -# max: 255 -# - id: 17 -# type: integer -# name: color_temp -# range: -# min: 0 -# max: 255 -# - id: 19 -# type: string -# name: color_mode -# optional: true -# mapping: -# - dps_val: white -# value: white -# - dps_val: warm -# value: warm -# - dps_val: cold -# value: cold -# - dps_val: night -# value: night + # I comment this features because that are reported by device but + # does nothing with it. + # + # {"abilityId":16,"accessMode":"rw","code":"bright_value", + # "description":"","name":"灯光亮度", + # "typeSpec":{"max":100,"min":1,"scale":0,"step":1,"type":"value", + # "typeDefaultValue":1,"unit":""}}, + # {"abilityId":17,"accessMode":"rw","code":"temp_value", + # "description":"","name":"灯光色温", + # "typeSpec":{"max":100,"min":0,"scale":0,"step":1,"type":"value", + # "typeDefaultValue":0,"unit":""}}, + # {"abilityId":19,"accessMode":"rw","code":"work_mode", + # "description":"","name":"灯光模式", + # "typeSpec":{"range":["white","warm","cold","night"],"type":"enum", + # "typeDefaultValue":"white"}}, + # + # + # - id: 16 + # type: integer + # name: brightness + # range: + # min: 25 + # max: 255 + # - id: 17 + # type: integer + # name: color_temp + # range: + # min: 0 + # max: 255 + # - id: 19 + # type: string + # name: color_mode + # optional: true + # mapping: + # - dps_val: white + # value: white + # - dps_val: warm + # value: warm + # - dps_val: cold + # value: cold + # - dps_val: night + # value: night - entity: select name: timer icon: "mdi:timer" diff --git a/custom_components/tuya_local/devices/ceres_plus_petfeeder.yaml b/custom_components/tuya_local/devices/ceres_plus_petfeeder.yaml index 4da9d8a251..5ab2619d7f 100644 --- a/custom_components/tuya_local/devices/ceres_plus_petfeeder.yaml +++ b/custom_components/tuya_local/devices/ceres_plus_petfeeder.yaml @@ -178,15 +178,6 @@ secondary_entities: range: min: 0 max: 3 - mapping: - - dps_val: 0 - value: 0 - - dps_val: 1 - value: 1 - - dps_val: 2 - value: 2 - - dps_val: - value: 3 - id: 243 type: string name: report diff --git a/custom_components/tuya_local/devices/chanfok_fan_light.yaml b/custom_components/tuya_local/devices/chanfok_fan_light.yaml index d58fc3a5c7..e59f16fdc2 100644 --- a/custom_components/tuya_local/devices/chanfok_fan_light.yaml +++ b/custom_components/tuya_local/devices/chanfok_fan_light.yaml @@ -67,6 +67,3 @@ secondary_entities: - id: 66 type: boolean name: switch - - - diff --git a/custom_components/tuya_local/devices/cnc_ycb9zf_breaker.yaml b/custom_components/tuya_local/devices/cnc_ycb9zf_breaker.yaml index 151635a5e1..db3c11b941 100644 --- a/custom_components/tuya_local/devices/cnc_ycb9zf_breaker.yaml +++ b/custom_components/tuya_local/devices/cnc_ycb9zf_breaker.yaml @@ -136,5 +136,3 @@ secondary_entities: - id: 109 type: boolean name: switch - - diff --git a/custom_components/tuya_local/devices/compteur_energy_meter.yaml b/custom_components/tuya_local/devices/compteur_energy_meter.yaml index 3c9eda5117..14d31607c1 100644 --- a/custom_components/tuya_local/devices/compteur_energy_meter.yaml +++ b/custom_components/tuya_local/devices/compteur_energy_meter.yaml @@ -67,4 +67,3 @@ secondary_entities: force: true mapping: - scale: 10000 - diff --git a/custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml b/custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml index 37f2843ea7..448e18e438 100644 --- a/custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml +++ b/custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml @@ -51,7 +51,6 @@ primary_entity: type: integer mapping: - scale: 10 - #step: 5 - id: 4 name: mode type: string @@ -82,15 +81,15 @@ primary_entity: value: "off" - dps_val: "on" value: "on" - - dps_val: "angle1" #Topmost + - dps_val: "angle1" value: "topmost" - - dps_val: "angle2" #Top + - dps_val: "angle2" value: "top" - - dps_val: "angle3" #Middle + - dps_val: "angle3" value: "middle" - - dps_val: "angle4" #Down + - dps_val: "angle4" value: "down" - - dps_val: "angle5" #Downmost + - dps_val: "angle5" value: "downmost" - id: 19 name: temperature_unit diff --git a/custom_components/tuya_local/devices/daizuki_heatpump.yaml b/custom_components/tuya_local/devices/daizuki_heatpump.yaml index 204abe026d..badb95912d 100644 --- a/custom_components/tuya_local/devices/daizuki_heatpump.yaml +++ b/custom_components/tuya_local/devices/daizuki_heatpump.yaml @@ -253,7 +253,6 @@ secondary_entities: value: false - value: true - entity: sensor - name: class: pm25 category: diagnostic dps: diff --git a/custom_components/tuya_local/devices/dcenta_dual_meter.yaml b/custom_components/tuya_local/devices/dcenta_dual_meter.yaml index 505448ce8c..7563f9c92d 100644 --- a/custom_components/tuya_local/devices/dcenta_dual_meter.yaml +++ b/custom_components/tuya_local/devices/dcenta_dual_meter.yaml @@ -1,4 +1,4 @@ -name: Dual meter +name: Dual meter products: - id: bfa88129148596f2f0oeht name: Dcenta dual clamp meter diff --git a/custom_components/tuya_local/devices/ditua_dt1522yn_aromadiffuser.yaml b/custom_components/tuya_local/devices/ditua_dt1522yn_aromadiffuser.yaml index f1c11fbfe5..db8b38fdec 100644 --- a/custom_components/tuya_local/devices/ditua_dt1522yn_aromadiffuser.yaml +++ b/custom_components/tuya_local/devices/ditua_dt1522yn_aromadiffuser.yaml @@ -90,8 +90,8 @@ secondary_entities: name: option optional: true mapping: - - dps_val: "1" - value: "Cycle" + - dps_val: "1" + value: "Cycle" - dps_val: "2" value: "Fixed" - dps_val: "3" @@ -139,5 +139,3 @@ secondary_entities: name: sensor unit: min optional: true - - diff --git a/custom_components/tuya_local/devices/djive_arc_fan.yaml b/custom_components/tuya_local/devices/djive_arc_fan.yaml index a70f805760..724cbb2d1f 100644 --- a/custom_components/tuya_local/devices/djive_arc_fan.yaml +++ b/custom_components/tuya_local/devices/djive_arc_fan.yaml @@ -98,4 +98,4 @@ secondary_entities: type: integer name: sensor class: measurement - unit: "μg/m³" \ No newline at end of file + unit: "μg/m³" diff --git a/custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml b/custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml index c7921126f5..cd880af081 100644 --- a/custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml +++ b/custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml @@ -1,5 +1,6 @@ # Dongguan Pinjia Technology Co., Door Controller, PJ-WGDOOR01 -# Tuya Smart Life WiFi Motorized Swing Gate Sliding Gate Opener Dry Contact 110V 240V Voice Control with Alexa Google Home +# Tuya Smart Life WiFi Motorized Swing Gate Sliding Gate Opener Dry Contact +# 110V 240V Voice Control with Alexa Google Home # https://www.aliexpress.com/item/1005003913566298.html name: WiFi garage opener products: @@ -13,7 +14,7 @@ primary_entity: - id: 1 type: boolean name: control - optional: true #BUGBUG Sometimes after power off this DP doesn't report state but will be available later + optional: true # Sometimes this DP doesn't report state mapping: - dps_val: true value: open @@ -67,4 +68,4 @@ secondary_entities: - id: 12 type: string name: sensor - optional: true #BUGBUG Sometimes after power off this DP doesn't report state but will be available later + optional: true # Sometimes doesn't report state diff --git a/custom_components/tuya_local/devices/dooya_curtain.yaml b/custom_components/tuya_local/devices/dooya_curtain.yaml index 78c1dbf9fe..ca00b6a68b 100644 --- a/custom_components/tuya_local/devices/dooya_curtain.yaml +++ b/custom_components/tuya_local/devices/dooya_curtain.yaml @@ -35,4 +35,3 @@ secondary_entities: value: Forward - dps_val: true value: Reverse - diff --git a/custom_components/tuya_local/devices/dts238_7_energy_meter.yaml b/custom_components/tuya_local/devices/dts238_7_energy_meter.yaml index 5f4bf3d0ab..2fb0067523 100644 --- a/custom_components/tuya_local/devices/dts238_7_energy_meter.yaml +++ b/custom_components/tuya_local/devices/dts238_7_energy_meter.yaml @@ -30,7 +30,9 @@ primary_entity: type: bitfield name: fault_code optional: true - # ov_cr, unbalance_alarm, ov_vol, undervoltage_alarm, miss_phase_alarm, outage_alarm, magnetism_alarm, terminal_alarm, cover_alarm, credit_alarm, no_balance_alarm, battery_alarm, meter_hardware_alarm + # ov_cr, unbalance_alarm, ov_vol, undervoltage_alarm, miss_phase_alarm, + # outage_alarm, magnetism_alarm, terminal_alarm, cover_alarm, + # credit_alarm, no_balance_alarm, battery_alarm, meter_hardware_alarm - id: 17 name: alarm_set type: string @@ -116,6 +118,3 @@ secondary_entities: - id: 16 type: boolean name: switch - - - diff --git a/custom_components/tuya_local/devices/duux_whisper_fan.yaml b/custom_components/tuya_local/devices/duux_whisper_fan.yaml index f1a987c014..d6ea569625 100644 --- a/custom_components/tuya_local/devices/duux_whisper_fan.yaml +++ b/custom_components/tuya_local/devices/duux_whisper_fan.yaml @@ -105,7 +105,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: "0" + - dps_val: "0" value: "Off" - dps_val: "1" value: "1 hour" @@ -141,4 +141,3 @@ secondary_entities: name: sensor unit: h optional: true - diff --git a/custom_components/tuya_local/devices/earu_smart_wifi_circuit_breaker_with_energy_monitor.yaml b/custom_components/tuya_local/devices/earu_smart_wifi_circuit_breaker_with_energy_monitor.yaml index 797d5ed226..e1023b8f15 100644 --- a/custom_components/tuya_local/devices/earu_smart_wifi_circuit_breaker_with_energy_monitor.yaml +++ b/custom_components/tuya_local/devices/earu_smart_wifi_circuit_breaker_with_energy_monitor.yaml @@ -2,8 +2,6 @@ name: Circuit breaker products: - id: ine4hhapkgxonij1 name: EARU SW RCB - # https://www.aliexpress.com/item/1005004894566311.html - primary_entity: entity: switch icon: "mdi:fuse" @@ -11,7 +9,7 @@ primary_entity: dps: - id: 16 name: switch - type: boolean + type: boolean - id: 19 type: string name: breaker_id @@ -70,23 +68,4 @@ secondary_entities: name: sensor mapping: - mask: "0000000000FFFFFF" - scale: 1000 - -# name: 'Alarm set 1' -# category: diagnostic -# dps: -# - id: 17 -# type: base64 -# name: sensor -# optional: true -# force: true -# - entity: sensor -# name: 'Alarm set 2' -# category: diagnostic -# dps: -# - id: 18 -# type: base64 -# name: sensor -# optional: true -# force: true - + scale: 1000 diff --git a/custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml b/custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml index e0b20e9465..443055ccaf 100644 --- a/custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/ebac_dj4000_dehumidifier.yaml @@ -10,12 +10,12 @@ primary_entity: name: switch type: boolean mapping: - - dps_val: false - icon: "mdi:ait-humidifier-off" - icon_priority: 1 - - dps_val: true - icon: "mdi:air-humidifier" - icon_priority: 3 + - dps_val: false + icon: "mdi:ait-humidifier-off" + icon_priority: 1 + - dps_val: true + icon: "mdi:air-humidifier" + icon_priority: 3 - id: 2 name: humidity type: integer @@ -134,29 +134,6 @@ secondary_entities: - dps_val: Bucket_Full value: true icon: "mdi:pail-remove" -# Runtime Total does not update -# uncomment the next two sensor blocks if you want to use them -# - entity: sensor -# name: Runtime total -# category: diagnostic -# icon: "mdi:timelapse" -# class: duration -# dps: -# - id: 27 -# type: integer -# range: -# min: 0 -# max: 1000 -# name: sensor -# unit: min -# - entity: button -# name: Runtime total reset -# category: config -# icon: "mdi:timelapse" -# dps: -# - id: 28 -# type: boolean -# name: button - entity: switch name: Night mode category: config diff --git a/custom_components/tuya_local/devices/eberg_qubo_q40hd_heatpump.yaml b/custom_components/tuya_local/devices/eberg_qubo_q40hd_heatpump.yaml index bdfb51cfce..ae59a7955a 100644 --- a/custom_components/tuya_local/devices/eberg_qubo_q40hd_heatpump.yaml +++ b/custom_components/tuya_local/devices/eberg_qubo_q40hd_heatpump.yaml @@ -20,7 +20,7 @@ primary_entity: value: heat - dps_val: dehumidify icon: "mdi:water-percent" - value: dry + value: dry - id: 2 name: temperature type: integer @@ -110,9 +110,9 @@ primary_entity: - dps_val: "off" constraint: hvac_mode conditions: - - dps_val: False + - dps_val: false value: "off" - - dps_val: True + - dps_val: true value: idle secondary_entities: - entity: number diff --git a/custom_components/tuya_local/devices/ecostrad_iqceramic_radiator.yaml b/custom_components/tuya_local/devices/ecostrad_iqceramic_radiator.yaml index d42f3ec8e9..74666dbbb2 100644 --- a/custom_components/tuya_local/devices/ecostrad_iqceramic_radiator.yaml +++ b/custom_components/tuya_local/devices/ecostrad_iqceramic_radiator.yaml @@ -118,5 +118,3 @@ secondary_entities: range: min: -5 max: 5 - - diff --git a/custom_components/tuya_local/devices/eeese_carl_dehumidifier.yaml b/custom_components/tuya_local/devices/eeese_carl_dehumidifier.yaml index a353ddb498..1da81bdf3f 100644 --- a/custom_components/tuya_local/devices/eeese_carl_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/eeese_carl_dehumidifier.yaml @@ -68,7 +68,7 @@ secondary_entities: mapping: - dps_val: 0 value: false - - value: true + - value: true - entity: lock name: Child lock icon: "mdi:hand-back-right-off" diff --git a/custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml b/custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml index 04efdb7039..870c98e8e6 100644 --- a/custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml @@ -7,12 +7,12 @@ primary_entity: name: switch type: boolean mapping: - - dps_val: false - icon: "mdi:air-humidifier-off" - icon_priority: 1 - - dps_val: true - icon: "mdi:air-humidifier" - icon_priority: 4 + - dps_val: false + icon: "mdi:air-humidifier-off" + icon_priority: 1 + - dps_val: true + icon: "mdi:air-humidifier" + icon_priority: 4 - id: 2 name: humidity type: integer diff --git a/custom_components/tuya_local/devices/electriq_airflex15w_heatpump.yaml b/custom_components/tuya_local/devices/electriq_airflex15w_heatpump.yaml index 53c6bb4407..b14a31e72d 100644 --- a/custom_components/tuya_local/devices/electriq_airflex15w_heatpump.yaml +++ b/custom_components/tuya_local/devices/electriq_airflex15w_heatpump.yaml @@ -14,19 +14,19 @@ primary_entity: - dps_val: true constraint: preset_mode conditions: - - dps_val: "0" # auto + - dps_val: "0" # auto value: heat_cool icon: "mdi:hvac" - - dps_val: "1" # cold + - dps_val: "1" # cold value: cool icon: "mdi:snowflake" - - dps_val: "2" # hot + - dps_val: "2" # hot value: heat icon: "mdi:fire" - - dps_val: "3" # wet + - dps_val: "3" # wet value: dry icon: "mdi:water" - - dps_val: "5" # fan + - dps_val: "5" # fan value: fan_only icon: "mdi:fan" - id: 2 diff --git a/custom_components/tuya_local/devices/electriq_cd25pro_dehumidifier.yaml b/custom_components/tuya_local/devices/electriq_cd25pro_dehumidifier.yaml index 853e784f9f..198a24af29 100644 --- a/custom_components/tuya_local/devices/electriq_cd25pro_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/electriq_cd25pro_dehumidifier.yaml @@ -69,7 +69,7 @@ secondary_entities: - value: false - entity: light name: "UV sterilization" - icon: "mdi:solar-power" + icon: "mdi:solar-power" dps: - id: 10 name: switch diff --git a/custom_components/tuya_local/devices/electriq_pd45e_dehumidifier.yaml b/custom_components/tuya_local/devices/electriq_pd45e_dehumidifier.yaml index 80cfe9a4a4..2ec7f16c0e 100644 --- a/custom_components/tuya_local/devices/electriq_pd45e_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/electriq_pd45e_dehumidifier.yaml @@ -39,7 +39,7 @@ primary_entity: - id: 107 type: boolean name: unknown_107 - # Probably one of these booleans is defrost indicator, the other may be tank? + # Probably one boolean is defrost indicator, the other may be tank? - id: 108 type: boolean name: unknown_108 @@ -87,6 +87,3 @@ secondary_entities: name: sensor unit: "%" class: measurement - - - diff --git a/custom_components/tuya_local/devices/em3378_weather_station.yaml b/custom_components/tuya_local/devices/em3378_weather_station.yaml index 4e2778616d..6ba25ec77d 100644 --- a/custom_components/tuya_local/devices/em3378_weather_station.yaml +++ b/custom_components/tuya_local/devices/em3378_weather_station.yaml @@ -25,7 +25,7 @@ primary_entity: name: fault type: bitfield optional: true - # we need to know the full range of values to expose this as a light control + # we need the full range of values to expose this as a light control - id: 118 name: backlight_brightness type: string @@ -141,7 +141,7 @@ secondary_entities: class: atmospheric_pressure category: diagnostic dps: - - id: 110 + - id: 110 type: integer name: sensor class: measurement @@ -201,7 +201,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: true + - dps_val: true value: 24h - dps_val: false value: 12h diff --git a/custom_components/tuya_local/devices/es01_powerstrip.yaml b/custom_components/tuya_local/devices/es01_powerstrip.yaml index 9bf44b4b67..b66438cb3e 100644 --- a/custom_components/tuya_local/devices/es01_powerstrip.yaml +++ b/custom_components/tuya_local/devices/es01_powerstrip.yaml @@ -2,13 +2,13 @@ name: Smart plug with USB ES-01 products: - id: hsoiigeykxh9m4hx primary_entity: - entity: switch - class: outlet - name: Switch 1 - dps: - - id: 1 - type: boolean - name: switch + entity: switch + class: outlet + name: Switch 1 + dps: + - id: 1 + type: boolean + name: switch secondary_entities: - entity: switch name: Switch 2 diff --git a/custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml b/custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml index 622b0e5d3c..83fafdb4bf 100644 --- a/custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml +++ b/custom_components/tuya_local/devices/etersky_aroma_diffuser.yaml @@ -10,10 +10,8 @@ primary_entity: mapping: - dps_val: true icon: mdi:scent - value: ON - dps_val: false icon: mdi:scent-off - value: OFF - id: 3 name: speed type: string @@ -120,4 +118,3 @@ secondary_entities: - dps_val: 0 value: false - value: true - diff --git a/custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml b/custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml index c4bfab0329..9b23cafbdc 100644 --- a/custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml +++ b/custom_components/tuya_local/devices/etop_ch7100_thermostat.yaml @@ -160,7 +160,7 @@ secondary_entities: name: option mapping: - dps_val: c - value: Celsius + value: Celsius icon: "mdi:temperature-celsius" - dps_val: f value: Fahrenheit diff --git a/custom_components/tuya_local/devices/etop_fcu_thermostat.yaml b/custom_components/tuya_local/devices/etop_fcu_thermostat.yaml index 88fdfd75ce..266b7b8a4f 100644 --- a/custom_components/tuya_local/devices/etop_fcu_thermostat.yaml +++ b/custom_components/tuya_local/devices/etop_fcu_thermostat.yaml @@ -92,8 +92,8 @@ primary_entity: - id: 14 name: work_state type: string - # has values no_working and working defined in docs, and appears to be useful for hvac_action, - # but in practice does not seem to change. + # has values no_working and working defined in docs, and appears to be + # useful for hvac_action, but in practice does not seem to change. secondary_entities: ############################################################ # Temperature display unit @@ -130,7 +130,7 @@ secondary_entities: - dps_val: Enable value: Automatic ############################################################ - # The following DPs are available but don't seem to + # The following DPs are available but don't seem to # actually do anything ############################################################ - entity: switch diff --git a/custom_components/tuya_local/devices/eurom_601_heater.yaml b/custom_components/tuya_local/devices/eurom_601_heater.yaml index 5856b09076..5fe35fd6d9 100644 --- a/custom_components/tuya_local/devices/eurom_601_heater.yaml +++ b/custom_components/tuya_local/devices/eurom_601_heater.yaml @@ -45,5 +45,3 @@ secondary_entities: - dps_val: 0 value: false - value: true - - diff --git a/custom_components/tuya_local/devices/evotherm_eti_heatpump.yaml b/custom_components/tuya_local/devices/evotherm_eti_heatpump.yaml index 04b7b7e7ac..6371b81c4b 100644 --- a/custom_components/tuya_local/devices/evotherm_eti_heatpump.yaml +++ b/custom_components/tuya_local/devices/evotherm_eti_heatpump.yaml @@ -188,7 +188,7 @@ secondary_entities: - scale: 10 - entity: sensor name: Water discharge temperature - class: + class: temperature category: diagnostic dps: - id: 25 diff --git a/custom_components/tuya_local/devices/evsun_evcharger.yaml b/custom_components/tuya_local/devices/evsun_evcharger.yaml index ff895c5d49..55cc8e2be7 100644 --- a/custom_components/tuya_local/devices/evsun_evcharger.yaml +++ b/custom_components/tuya_local/devices/evsun_evcharger.yaml @@ -91,7 +91,7 @@ secondary_entities: name: sensor unit: V class: measurement - mapping: + mapping: - mask: "FFFF000000000000" scale: 10 - entity: sensor @@ -130,7 +130,7 @@ secondary_entities: - id: 9 type: integer name: sensor - unit: kW + unit: kW class: measurement mapping: - scale: 1000 @@ -276,4 +276,3 @@ secondary_entities: range: min: 0 max: 12 - diff --git a/custom_components/tuya_local/devices/feit_dimmer.yaml b/custom_components/tuya_local/devices/feit_dimmer.yaml index 775feae769..ebde919434 100644 --- a/custom_components/tuya_local/devices/feit_dimmer.yaml +++ b/custom_components/tuya_local/devices/feit_dimmer.yaml @@ -1,6 +1,5 @@ name: Dimmable light products: - # https://www.feit.com/collections/smart-controls/products/smart-wi-fi-dimmer-dim-wifi - id: tebc75erlgslgpn5 name: Feit Dimmer primary_entity: @@ -20,10 +19,10 @@ primary_entity: min: 10 max: 1000 mapping: - - scale: 3.92 # this is important for that device, else lights are too dim + - scale: 3.92 + - id: 3 # advisory only, the integration does not actually use this, setting it # does not seem to work, so probably determined by bulb type - - id: 3 type: integer name: minimum_brightness optional: true diff --git a/custom_components/tuya_local/devices/ferroli_titano_twin.yaml b/custom_components/tuya_local/devices/ferroli_titano_twin.yaml index c2a19575a5..3d3ca66a6a 100644 --- a/custom_components/tuya_local/devices/ferroli_titano_twin.yaml +++ b/custom_components/tuya_local/devices/ferroli_titano_twin.yaml @@ -44,7 +44,7 @@ primary_entity: - dps_val: 2 value: E3 NTC temperature sensor - dps_val: 4 - value: E4 Water overheating + value: E4 Water overheating - dps_val: 16 value: E6 clock RTC failure secondary_entities: diff --git a/custom_components/tuya_local/devices/feyree_ev_charger.yaml b/custom_components/tuya_local/devices/feyree_ev_charger.yaml index 8aceb1fa87..95c81d7b2a 100644 --- a/custom_components/tuya_local/devices/feyree_ev_charger.yaml +++ b/custom_components/tuya_local/devices/feyree_ev_charger.yaml @@ -130,11 +130,10 @@ secondary_entities: - id: 104 type: integer name: value - unit: + unit: h range: min: 0 max: 15 - unit: h - entity: sensor class: energy dps: diff --git a/custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml b/custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml index 0c0ff5486e..49037ee914 100644 --- a/custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml +++ b/custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml @@ -39,8 +39,8 @@ primary_entity: min: 160 max: 310 mapping: - - scale: 10 - step: 5 + - scale: 10 + step: 5 unit: C - id: 3 name: current_temperature @@ -78,7 +78,7 @@ primary_entity: - id: 110 name: functions_available type: bitfield - # Used to indicate whether this function is available. + # Used to indicate whether this function is available. # 0. Whether the temperature is adjustable in dehumidification mode # 1. Whether the temperature is adjustable in air supply mode # 2. Whether the temperature is adjustable in automatic mode @@ -92,10 +92,11 @@ primary_entity: # 10. Save money and see it # 11. Power statistics # 12. Generator mode - # 13. High temperature wind/cool wind + # 13. High temperature wind/cool wind # 14. Air quality detection function # 15. Set to empty (original: humidity function) - # 16. Set to empty (original: equipment operation saves money and visible temperature curve display) + # 16. Set to empty (original: equipment operation saves money and + # visible temperature curve display) # 17. 8℃ heating # 18. Filter dirty and clogged function # ??? - 19 is missing in Tuya json @@ -134,8 +135,8 @@ secondary_entities: name: option type: string mapping: - - dps_val: off - value: Off + - dps_val: "off" + value: "Off" default: true - dps_val: normal value: Normal @@ -170,7 +171,7 @@ secondary_entities: type: string mapping: - dps_val: 0 - value: None + value: "Off" default: true - dps_val: 1 value: Left and Right @@ -212,7 +213,7 @@ secondary_entities: name: option type: string mapping: - - dps_val: off + - dps_val: "off" value: None default: true - dps_val: L1 @@ -230,7 +231,7 @@ secondary_entities: type: string optional: true - entity: select - name: Set Vertical Direction # Tuya JSON phrasing: Freeze Vertical + name: Set Vertical Direction category: config dps: - id: 126 @@ -249,9 +250,9 @@ secondary_entities: - dps_val: 4 value: Slightly Down - dps_val: 5 - value: Down + value: Down - entity: select - name: Set Horizontal Direction # Tuya JSON phrasing: Freeze Horizontal + name: Set Horizontal Direction # Tuya JSON phrasing: Freeze Horizontal category: config dps: - id: 127 @@ -270,7 +271,7 @@ secondary_entities: - dps_val: 4 value: Slightly Right - dps_val: 5 - value: Right + value: Right - dps_val: 6 value: Wide Angle Left - dps_val: 7 @@ -364,4 +365,4 @@ secondary_entities: name: sensor type: integer unit: s - optional: true + optional: true diff --git a/custom_components/tuya_local/devices/fs_03w_curtain.yaml b/custom_components/tuya_local/devices/fs_03w_curtain.yaml index fd1efd5c98..ef14ca2ef0 100644 --- a/custom_components/tuya_local/devices/fs_03w_curtain.yaml +++ b/custom_components/tuya_local/devices/fs_03w_curtain.yaml @@ -66,10 +66,9 @@ secondary_entities: type: string name: option mapping: - - dps_val: relay + - dps_val: relay value: State - dps_val: pos value: Position - dps_val: none value: "Off" - diff --git a/custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml b/custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml index 5631522721..46faa87cf4 100644 --- a/custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml +++ b/custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml @@ -1,5 +1,7 @@ # Example DPS Status -# {'dps': {'1': False, '2': 1000, '3': 10, '4': 'led', '5': 1000, '6': 0, '14': 'memory', '21': 'relay', '103': 'scene', '106': 'dimmer', '107': '3way_switch'}} +# {'dps': {'1': False, '2': 1000, '3': 10, '4': 'led', '5': 1000, '6': 0, +# '14': 'memory', '21': 'relay', '103': 'scene', '106': 'dimmer', +# '107': '3way_switch'}} name: GE Jasco Ultra Pro Toggle Dimmer v2 products: - id: genhs8iixkqve7sx diff --git a/custom_components/tuya_local/devices/goldair_dehumidifier.yaml b/custom_components/tuya_local/devices/goldair_dehumidifier.yaml index 1f7c1596f3..a1c117ca9b 100644 --- a/custom_components/tuya_local/devices/goldair_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/goldair_dehumidifier.yaml @@ -91,7 +91,7 @@ secondary_entities: - dps_val: "2" invalid: true - dps_val: "3" - invalid: true + invalid: true - dps_val: "3" value: 100 constraint: dehumidifier_mode diff --git a/custom_components/tuya_local/devices/goldair_gpdh340_dehumidifier.yaml b/custom_components/tuya_local/devices/goldair_gpdh340_dehumidifier.yaml index b187b85746..89c20cff69 100644 --- a/custom_components/tuya_local/devices/goldair_gpdh340_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/goldair_gpdh340_dehumidifier.yaml @@ -156,7 +156,3 @@ secondary_entities: - id: 108 type: boolean name: sensor - - - - diff --git a/custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml b/custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml index f525fc41b9..1fb1a8bffa 100644 --- a/custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml +++ b/custom_components/tuya_local/devices/gosund_usb_triple_powerstrip.yaml @@ -40,7 +40,7 @@ secondary_entities: - id: 9 type: integer name: value - unit: min + unit: min range: min: 0 max: 86400 @@ -55,7 +55,7 @@ secondary_entities: - id: 10 type: integer name: value - unit: min + unit: min range: min: 0 max: 86400 @@ -70,7 +70,7 @@ secondary_entities: - id: 11 type: integer name: value - unit: min + unit: min range: min: 0 max: 86400 @@ -85,7 +85,7 @@ secondary_entities: - id: 15 type: integer name: value - unit: min + unit: min range: min: 0 max: 86400 @@ -142,4 +142,3 @@ secondary_entities: - id: 102 type: boolean name: sensor - diff --git a/custom_components/tuya_local/devices/gratkit_filament_dryer.yaml b/custom_components/tuya_local/devices/gratkit_filament_dryer.yaml index 4ea8183f04..d39592df25 100644 --- a/custom_components/tuya_local/devices/gratkit_filament_dryer.yaml +++ b/custom_components/tuya_local/devices/gratkit_filament_dryer.yaml @@ -94,22 +94,6 @@ secondary_entities: value: Rainbow blink - dps_val: 12 value: Rainbow smooth - # - dps_val: 13 - # value: "13" - # - dps_val: 14 - # value: "14" - # - dps_val: 15 - # value: "15" - # - dps_val: 16 - # value: "16" - # - dps_val: 17 - # value: "17" - # - dps_val: 18 - # value: "18" - # - dps_val: 19 - # value: "19" - # - dps_val: 20 - # value: "20" - entity: sensor class: temperature name: Heating plate temperature diff --git a/custom_components/tuya_local/devices/greenwind_dehumidifier.yaml b/custom_components/tuya_local/devices/greenwind_dehumidifier.yaml index 31d612ce49..e90f23c7d9 100644 --- a/custom_components/tuya_local/devices/greenwind_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/greenwind_dehumidifier.yaml @@ -42,4 +42,3 @@ secondary_entities: name: sensor unit: "%" class: measurement - diff --git a/custom_components/tuya_local/devices/haier_nayun_gasalarm.yaml b/custom_components/tuya_local/devices/haier_nayun_gasalarm.yaml index 1a7c6d0a42..b44b72b5fa 100644 --- a/custom_components/tuya_local/devices/haier_nayun_gasalarm.yaml +++ b/custom_components/tuya_local/devices/haier_nayun_gasalarm.yaml @@ -21,7 +21,7 @@ secondary_entities: - id: 2 type: integer name: sensor - unit: "% LEL" + unit: "% LEL" class: measurement mapping: - scale: 10 diff --git a/custom_components/tuya_local/devices/hdmi_sync_light.yaml b/custom_components/tuya_local/devices/hdmi_sync_light.yaml index f45d859202..43fddb4680 100644 --- a/custom_components/tuya_local/devices/hdmi_sync_light.yaml +++ b/custom_components/tuya_local/devices/hdmi_sync_light.yaml @@ -145,5 +145,3 @@ secondary_entities: value: Light post icon: "mdi:post-lamp" icon_priority: 1 - - diff --git a/custom_components/tuya_local/devices/heatstorm_hs6000gc_heater.yaml b/custom_components/tuya_local/devices/heatstorm_hs6000gc_heater.yaml index b74b551146..1b37199e0d 100644 --- a/custom_components/tuya_local/devices/heatstorm_hs6000gc_heater.yaml +++ b/custom_components/tuya_local/devices/heatstorm_hs6000gc_heater.yaml @@ -129,4 +129,3 @@ secondary_entities: value: Celsius - dps_val: f value: Fahrenheit - diff --git a/custom_components/tuya_local/devices/himox_h05_purifier.yaml b/custom_components/tuya_local/devices/himox_h05_purifier.yaml index 871be09c78..7b2a25a16c 100644 --- a/custom_components/tuya_local/devices/himox_h05_purifier.yaml +++ b/custom_components/tuya_local/devices/himox_h05_purifier.yaml @@ -82,4 +82,3 @@ secondary_entities: - id: 21 type: string name: sensor - diff --git a/custom_components/tuya_local/devices/holman_wx1_taptimer.yaml b/custom_components/tuya_local/devices/holman_wx1_taptimer.yaml index 8605e00844..1bb0d4df0a 100644 --- a/custom_components/tuya_local/devices/holman_wx1_taptimer.yaml +++ b/custom_components/tuya_local/devices/holman_wx1_taptimer.yaml @@ -3,7 +3,7 @@ products: - id: zrsgzc8jktsricjj model: WX1 manufacturer: Holman - # DP decoding thanks to funtastix https://github.com/funtastix/localtuya/blob/dbcc6dcd8340cd3e8b7ae91cda379ab68dfcac22/HOLMAN_TAP_TIMER.md + # DP decoding thanks to funtastix primary_entity: entity: switch name: Manual @@ -29,7 +29,7 @@ secondary_entities: unit: C - id: 115 name: sensor_present - type: boolean + type: boolean - entity: sensor name: Soil moisture class: humidity @@ -108,7 +108,9 @@ secondary_entities: name: value unit: min - entity: sensor - name: Start A encoded # this DP shows the start time, duration and days for start A. Not controllable - use automation instead. + name: Start A encoded + # this DP shows the start time, duration and days + # for start A. Not controllable - use automation instead. category: diagnostic dps: - id: 110 @@ -117,7 +119,7 @@ secondary_entities: type: base64 - id: 110 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -146,7 +148,7 @@ secondary_entities: mapping: - mask: "FF00000000000000" - entity: sensor - name: Start B encoded # this DP shows the start time, duration and days for start B. Not controllable - use automation instead. + name: Start B encoded # start time, duration and days for start B category: diagnostic dps: - id: 111 @@ -155,7 +157,7 @@ secondary_entities: type: string - id: 111 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -184,7 +186,7 @@ secondary_entities: mapping: - mask: "FF00000000000000" - entity: sensor - name: Start C encoded # this DP shows the start time, duration and days for start C. Not controllable - use automation instead. + name: Start C encoded # start time, duration and days for start C category: diagnostic dps: - id: 112 @@ -193,7 +195,7 @@ secondary_entities: type: string - id: 112 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -278,7 +280,7 @@ secondary_entities: name: sensor type: integer - entity: sensor - name: Flow count encoded # shows the past 10 days of flow count history. xx_days_256 values need to be multiplied by 256 and added to xx_days value to get the total for that day. + name: Flow count encoded # past 10 days of flow count history. category: diagnostic dps: - id: 121 @@ -433,7 +435,7 @@ secondary_entities: name: sensor_present type: boolean - entity: sensor - name: Next watering encoded # shows the next scheduled watering time based on starts A, B and C + name: Next watering encoded # based on starts A, B and C category: diagnostic dps: - id: 128 diff --git a/custom_components/tuya_local/devices/holman_wx2_taptimer.yaml b/custom_components/tuya_local/devices/holman_wx2_taptimer.yaml index 478558712d..2ea254b00f 100644 --- a/custom_components/tuya_local/devices/holman_wx2_taptimer.yaml +++ b/custom_components/tuya_local/devices/holman_wx2_taptimer.yaml @@ -116,7 +116,7 @@ secondary_entities: name: value unit: min - entity: sensor - name: Start A 1 encoded # this DP shows the start time, duration and days for start A. Not controllable - use automation instead. + name: Start A 1 encoded # start time, duration and days for start A category: diagnostic dps: - id: 110 @@ -125,7 +125,7 @@ secondary_entities: type: base64 - id: 110 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -154,7 +154,7 @@ secondary_entities: mapping: - mask: "FF00000000000000" - entity: sensor - name: Start B 1 encoded # this DP shows the start time, duration and days for start B. Not controllable - use automation instead. + name: Start B 1 encoded # start time, duration and days for start B category: diagnostic dps: - id: 111 @@ -163,7 +163,7 @@ secondary_entities: type: string - id: 111 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -192,7 +192,7 @@ secondary_entities: mapping: - mask: "FF00000000000000" - entity: sensor - name: Start C 1 encoded # this DP shows the start time, duration and days for start C. Not controllable - use automation instead. + name: Start C 1 encoded # start time, duration and days for start C category: diagnostic dps: - id: 112 @@ -201,7 +201,7 @@ secondary_entities: type: string - id: 112 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -264,7 +264,7 @@ secondary_entities: dps: - id: 115 name: sensor - type: boolean + type: boolean - entity: binary_sensor name: Rain sensor present 1 category: diagnostic @@ -301,7 +301,7 @@ secondary_entities: name: sensor type: integer - entity: sensor - name: Flow count 1 encoded # shows the past 10 days of flow count history. xx_days_256 values need to be multiplied by 256 and added to xx_days value to get the total for that day. + name: Flow count 1 encoded # past 10 days of flow count history category: diagnostic dps: - id: 121 @@ -450,16 +450,16 @@ secondary_entities: dps: - id: 125 name: sensor - type: boolean + type: boolean - entity: sensor name: MCU version category: diagnostic dps: - id: 127 name: sensor - type: string + type: string - entity: sensor - name: Next watering 1 encoded # shows the next scheduled watering time based on starts A, B and C + name: Next watering 1 encoded # based on starts A, B and C category: diagnostic dps: - id: 128 @@ -555,7 +555,7 @@ secondary_entities: min: 0 max: 60 - entity: number - name: Time left 2 # This doesn't seem to get populated with manual watering + name: Time left 2 # doesn't seem to get populated with manual watering icon: "mdi:timer" category: diagnostic dps: @@ -565,7 +565,7 @@ secondary_entities: name: value unit: min - entity: sensor - name: Start A 2 encoded # this DP shows the start time, duration and days for start A. Not controllable - use automation instead. + name: Start A 2 encoded # start time, duration and days for start A category: diagnostic dps: - id: 157 @@ -574,7 +574,7 @@ secondary_entities: type: base64 - id: 157 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -603,7 +603,7 @@ secondary_entities: mapping: - mask: "FF00000000000000" - entity: sensor - name: Start B 2 encoded # this DP shows the start time, duration and days for start B. Not controllable - use automation instead. + name: Start B 2 encoded # start time, duration and days for start B category: diagnostic dps: - id: 158 @@ -612,7 +612,7 @@ secondary_entities: type: string - id: 158 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -641,7 +641,7 @@ secondary_entities: mapping: - mask: "FF00000000000000" - entity: sensor - name: Start C 2 encoded # this DP shows the start time, duration and days for start C. Not controllable - use automation instead. + name: Start C 2 encoded # start time, duration and days for start C category: diagnostic dps: - id: 159 @@ -650,7 +650,7 @@ secondary_entities: type: string - id: 159 optional: true - name: days # bit string of flags for days of the week Sun-Sat, plus a bit for on/off + name: days # flags for days of the week Sun-Sat, plus a bit for on/off type: base64 mapping: - mask: "FF000000" @@ -709,7 +709,7 @@ secondary_entities: name: sensor type: boolean - entity: sensor - name: Flow count 2 encoded # shows the past 10 days of flow count history. xx_days_256 values need to be multiplied by 256 and added to xx_days value to get the total for that day. + name: Flow count 2 encoded # past 10 days of flow count history category: diagnostic dps: - id: 163 @@ -819,7 +819,7 @@ secondary_entities: mapping: - mask: "FF00000000000000000000000000000000" - id: 163 - optional: true + optional: true name: 2_days_256 type: base64 mapping: @@ -860,7 +860,7 @@ secondary_entities: name: sensor type: boolean - entity: sensor - name: Next watering 2 encoded # shows the next scheduled watering time based on starts A, B and C + name: Next watering 2 encoded # based on starts A, B and C category: diagnostic dps: - id: 167 diff --git a/custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml b/custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml index 046b3a9e35..a53bf28489 100644 --- a/custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml +++ b/custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml @@ -23,9 +23,10 @@ primary_entity: name: temperature mapping: - scale: 10 + step: 5 range: - max: 300 - min: 50 + max: 300 + min: 50 - id: 106 type: boolean name: preset_mode @@ -76,10 +77,10 @@ secondary_entities: name: value mapping: - scale: 10 - range: - min: -60 - max: 60 step: 5 + range: + min: -60 + max: 60 - entity: lock name: Child lock icon: "mdi:hand-back-right-off" diff --git a/custom_components/tuya_local/devices/hosome_purifier.yaml b/custom_components/tuya_local/devices/hosome_purifier.yaml index 1aa6fcf25c..56594e6ecd 100644 --- a/custom_components/tuya_local/devices/hosome_purifier.yaml +++ b/custom_components/tuya_local/devices/hosome_purifier.yaml @@ -7,7 +7,7 @@ primary_entity: dps: - id: 1 type: boolean - name: switch + name: switch - id: 3 name: preset_mode type: string @@ -57,4 +57,3 @@ secondary_entities: - id: 7 type: boolean name: lock - diff --git a/custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml b/custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml index 6c3c3c644d..8977de8e2c 100644 --- a/custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml +++ b/custom_components/tuya_local/devices/hysen_hy08we2_thermostat.yaml @@ -61,20 +61,16 @@ primary_entity: type: boolean name: hvac_action mapping: - - dps_val: true - constraint: hvac_mode - conditions: - - dps_val: false - value: off - - dps_val: true - value: heating - - dps_val: false - constraint: hvac_mode + - constraint: hvac_mode conditions: - dps_val: false value: "off" - dps_val: true - value: idle + mapping: + - dps_val: true + value: heating + - dps_val: false + value: idle - id: 106 type: boolean name: unknown_106 @@ -104,9 +100,9 @@ secondary_entities: type: boolean name: lock mapping: - - dps_val: True + - dps_val: true icon: "mdi:hand-back-right-off" - - dps_val: False + - dps_val: false icon: "mdi:hand-back-right" - entity: sensor name: External temperature diff --git a/custom_components/tuya_local/devices/ih001_led_controller.yaml b/custom_components/tuya_local/devices/ih001_led_controller.yaml index 476b824ddf..154c2930b1 100644 --- a/custom_components/tuya_local/devices/ih001_led_controller.yaml +++ b/custom_components/tuya_local/devices/ih001_led_controller.yaml @@ -76,13 +76,18 @@ secondary_entities: - dps_val: "04464602007803e803e800000000464602007803e8000a00000000" # color: G+DkG, Breath, Mid speed value: Soft - - dps_val: "05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000" + - dps_val: "05464601000003e803e800000000464601007803\ + e803e80000000046460100f003e803e800000000464601003d03e803e8\ + 0000000046460100ae03e803e800000000464601011303e803e800000000" # color* R+G+B+Y+C+V, Flash, Mid speed value: Colorful - - dps_val: "06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000" + - dps_val: "06464601000003e803e80000000046460100780\ + 3e803e80000000046460100f003e803e800000000" # color* R+G+B, Flash, Mid speed value: Dazzling - - dps_val: "07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000" + - dps_val: "07464602000003e803e800000000464602007803e803e80000\ + 000046460200f003e803e800000000464602003d03e803e80000000\ + 046460200ae03e803e800000000464602011303e803e800000000" # color* R+G+B+Y+C+V, Breath, Mid speed value: Gorgeous - entity: number diff --git a/custom_components/tuya_local/devices/illumanance_sensor.yaml b/custom_components/tuya_local/devices/illumanance_sensor.yaml index 5d7e374af4..27b3c121ad 100644 --- a/custom_components/tuya_local/devices/illumanance_sensor.yaml +++ b/custom_components/tuya_local/devices/illumanance_sensor.yaml @@ -27,4 +27,3 @@ secondary_entities: value: Medium - dps_val: high value: High - diff --git a/custom_components/tuya_local/devices/inkbird_bbq4t_thermometer.yaml b/custom_components/tuya_local/devices/inkbird_bbq4t_thermometer.yaml index 72a87e5993..ca717c9f8e 100644 --- a/custom_components/tuya_local/devices/inkbird_bbq4t_thermometer.yaml +++ b/custom_components/tuya_local/devices/inkbird_bbq4t_thermometer.yaml @@ -21,9 +21,6 @@ primary_entity: - id: 111 type: integer name: unknown_111 - # - id: 19 - # type: string - # name: unit secondary_entities: - entity: sensor name: Temperature probe 2 @@ -37,9 +34,6 @@ secondary_entities: mapping: - scale: 100 unit: F - # - id: 19 - # type: string - # name: unit - entity: sensor name: Temperature probe 3 class: temperature @@ -52,9 +46,6 @@ secondary_entities: mapping: - scale: 100 unit: F - # - id: 19 - # type: string - # name: unit - entity: sensor name: Temperature probe 4 class: temperature @@ -67,9 +58,6 @@ secondary_entities: mapping: - scale: 100 unit: F - # - id: 19 - # type: string - # name: unit - entity: binary_sensor class: power category: diagnostics diff --git a/custom_components/tuya_local/devices/inkbird_ibbq4bw_thermometer.yaml b/custom_components/tuya_local/devices/inkbird_ibbq4bw_thermometer.yaml index 077b355fd5..400b511e90 100644 --- a/custom_components/tuya_local/devices/inkbird_ibbq4bw_thermometer.yaml +++ b/custom_components/tuya_local/devices/inkbird_ibbq4bw_thermometer.yaml @@ -17,9 +17,6 @@ primary_entity: - id: 13 type: bitfield name: fault_code - # - id: 19 - # type: string - # name: unit secondary_entities: - entity: sensor name: Temperature probe 2 @@ -32,9 +29,6 @@ secondary_entities: mapping: - scale: 100 unit: F - # - id: 19 - # type: string - # name: unit - entity: sensor name: Temperature probe 3 class: temperature @@ -46,9 +40,6 @@ secondary_entities: mapping: - scale: 100 unit: F - # - id: 19 - # type: string - # name: unit - entity: sensor name: Temperature probe 4 class: temperature @@ -60,9 +51,6 @@ secondary_entities: mapping: - scale: 100 unit: F - # - id: 19 - # type: string - # name: unit - entity: switch dps: - id: 1 @@ -150,12 +138,6 @@ secondary_entities: max: 126 mapping: - scale: 10 - # constraint: temp_unit - # conditions: - # - dps_val: C - # range: - # min: -70 - # max: 70 - id: 19 type: string name: temp_unit @@ -172,12 +154,6 @@ secondary_entities: max: 126 mapping: - scale: 10 - # constraint: temp_unit - # conditions: - # - dps_val: C - # range: - # min: -70 - # max: 70 - id: 19 type: string name: temp_unit @@ -194,12 +170,6 @@ secondary_entities: max: 126 mapping: - scale: 10 - # constraint: temp_unit - # conditions: - # - dps_val: C - # range: - # min: -70 - # max: 70 - id: 19 type: string name: temp_unit @@ -216,12 +186,6 @@ secondary_entities: max: 126 mapping: - scale: 10 - # constraint: temp_unit - # conditions: - # - dps_val: C - # range: - # min: -70 - # max: 70 - id: 19 type: string name: temp_unit diff --git a/custom_components/tuya_local/devices/inkbird_ibs_m1s.yaml b/custom_components/tuya_local/devices/inkbird_ibs_m1s.yaml index 5d1f02c77d..9b5628a628 100644 --- a/custom_components/tuya_local/devices/inkbird_ibs_m1s.yaml +++ b/custom_components/tuya_local/devices/inkbird_ibs_m1s.yaml @@ -180,7 +180,8 @@ secondary_entities: persist: false mapping: - endianness: little - mask: "FF000000000000000000000000000000000000000000000000000000000000" + mask: >- + FF000000000000000000000000000000000000000000000000000000000000 - id: 114 optional: true type: base64 @@ -190,7 +191,8 @@ secondary_entities: mapping: - scale: 10 endianness: little - mask: "FFFF00000000000000000000000000000000000000000000000000000000000000" + mask: >- + FFFF00000000000000000000000000000000000000000000000000000000000000 constraint: type constraint_decode: true conditions: @@ -208,7 +210,8 @@ secondary_entities: persist: false mapping: - endianness: little - mask: "FF000000000000000000000000000000000000000000000000000000000000" + mask: >- + FF000000000000000000000000000000000000000000000000000000000000 - id: 114 optional: true type: base64 @@ -216,7 +219,8 @@ secondary_entities: unit: "%" mapping: - endianness: little - mask: "FF000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FF000000000000000000000000000000000000000\ + 000000000000000000000000000000000000000" constraint: type constraint_decode: true conditions: @@ -233,7 +237,8 @@ secondary_entities: persist: false mapping: - endianness: little - mask: "FF00000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FF00000000000000000000000000000000000000000000\ + 000000000000000000000000000000000000" - id: 114 optional: true type: base64 @@ -243,7 +248,8 @@ secondary_entities: mapping: - scale: 10 endianness: little - mask: "FFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FFFF00000000000000000000000000000000000000\ + 00000000000000000000000000000000000000000000" constraint: type constraint_decode: true conditions: @@ -261,7 +267,8 @@ secondary_entities: persist: false mapping: - endianness: little - mask: "FF00000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FF000000000000000000000000000000000000000000000\ + 00000000000000000000000000000000000" - id: 114 optional: true type: base64 @@ -269,7 +276,8 @@ secondary_entities: unit: "%" mapping: - endianness: little - mask: "FF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FF000000000000000000000000000000000000000000000\ + 00000000000000000000000000000000000000000000000000000" constraint: type constraint_decode: true conditions: @@ -286,7 +294,8 @@ secondary_entities: persist: false mapping: - endianness: little - mask: "FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FF000000000000000000000000000000000000000000\ + 0000000000000000000000000000000000000000000000000000000000" - id: 114 optional: true type: base64 @@ -296,7 +305,8 @@ secondary_entities: mapping: - scale: 10 endianness: little - mask: "FFFF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FFFF00000000000000000000000000000000000000000000000\ + 0000000000000000000000000000000000000000000000000000000" constraint: type constraint_decode: true conditions: @@ -314,7 +324,8 @@ secondary_entities: persist: false mapping: - endianness: little - mask: "FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FF00000000000000000000000000000000000000000000000\ + 00000000000000000000000000000000000000000000000000000" - id: 114 optional: true type: base64 @@ -322,7 +333,8 @@ secondary_entities: unit: "%" mapping: - endianness: little - mask: "FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + mask: "FF00000000000000000000000000000000000000000000000000000000\ + 00000000000000000000000000000000000000000000000000000000000000" constraint: type constraint_decode: true conditions: diff --git a/custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml b/custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml index ecb3872367..21296d2914 100644 --- a/custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml +++ b/custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml @@ -239,7 +239,7 @@ secondary_entities: - id: 101 name: unit type: string - hidden: true + hidden: true - entity: number category: config name: Cooling hysteresis diff --git a/custom_components/tuya_local/devices/inkbird_pth9cw_airquality.yaml b/custom_components/tuya_local/devices/inkbird_pth9cw_airquality.yaml index f0c6a9e53b..4786297671 100644 --- a/custom_components/tuya_local/devices/inkbird_pth9cw_airquality.yaml +++ b/custom_components/tuya_local/devices/inkbird_pth9cw_airquality.yaml @@ -25,5 +25,3 @@ secondary_entities: name: sensor unit: "%" class: measurement - - diff --git a/custom_components/tuya_local/devices/inow_heater_element.yaml b/custom_components/tuya_local/devices/inow_heater_element.yaml index 6911868496..cac52e0647 100644 --- a/custom_components/tuya_local/devices/inow_heater_element.yaml +++ b/custom_components/tuya_local/devices/inow_heater_element.yaml @@ -49,7 +49,3 @@ secondary_entities: - id: 7 type: boolean name: lock - - - - diff --git a/custom_components/tuya_local/devices/intelbras_IFR7000_lock.yaml b/custom_components/tuya_local/devices/intelbras_IFR7000_lock.yaml index 0f5c9615ee..6a0d4151cf 100644 --- a/custom_components/tuya_local/devices/intelbras_IFR7000_lock.yaml +++ b/custom_components/tuya_local/devices/intelbras_IFR7000_lock.yaml @@ -20,9 +20,9 @@ primary_entity: readonly: true mapping: - dps_val: true - value: False + value: false - dps_val: false - value: True + value: true - id: 9 type: string name: alarm diff --git a/custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml b/custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml index 6197a887d1..0f3f2aa09c 100644 --- a/custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/inventor_atmospherexl_dehumidifier.yaml @@ -70,9 +70,9 @@ primary_entity: - id: 19 type: bitfield name: error_code -# The following do not have descriptions in iot.tuya.com, the names -# though can be obtained from the debugger. But functionality needs -# to be confirmed before making them separate entities + # The following do not have descriptions in iot.tuya.com, the names + # though can be obtained from the debugger. But functionality needs + # to be confirmed before making them separate entities - id: 105 type: string name: air_purifier @@ -308,12 +308,12 @@ secondary_entities: type: string name: option mapping: - - dps_val: auto - value: Auto - - dps_val: manual - value: Manual - - dps_val: night - value: Sleep + - dps_val: auto + value: Auto + - dps_val: manual + value: Manual + - dps_val: night + value: Sleep - entity: select category: config name: Lighting diff --git a/custom_components/tuya_local/devices/inventor_evaionpro_dehumidifier.yaml b/custom_components/tuya_local/devices/inventor_evaionpro_dehumidifier.yaml index 6a67df43d5..92508ff12f 100644 --- a/custom_components/tuya_local/devices/inventor_evaionpro_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/inventor_evaionpro_dehumidifier.yaml @@ -126,4 +126,3 @@ secondary_entities: - id: 101 type: boolean name: sensor - diff --git a/custom_components/tuya_local/devices/ir_moes_heatpump.yaml b/custom_components/tuya_local/devices/ir_moes_heatpump.yaml index 0ae628a643..0e1e28ab97 100644 --- a/custom_components/tuya_local/devices/ir_moes_heatpump.yaml +++ b/custom_components/tuya_local/devices/ir_moes_heatpump.yaml @@ -72,4 +72,3 @@ primary_entity: - id: 18 type: integer name: unknown_18 - diff --git a/custom_components/tuya_local/devices/juskys_oh125bw2_radiator.yaml b/custom_components/tuya_local/devices/juskys_oh125bw2_radiator.yaml index 7874c5a926..6e8245b51f 100644 --- a/custom_components/tuya_local/devices/juskys_oh125bw2_radiator.yaml +++ b/custom_components/tuya_local/devices/juskys_oh125bw2_radiator.yaml @@ -121,5 +121,3 @@ secondary_entities: - dps_val: 0 value: false - value: true - - diff --git a/custom_components/tuya_local/devices/klarstein_dryfy_pro_connect_dehumidifier.yaml b/custom_components/tuya_local/devices/klarstein_dryfy_pro_connect_dehumidifier.yaml index 2a102fd8e1..dcd3d3992a 100644 --- a/custom_components/tuya_local/devices/klarstein_dryfy_pro_connect_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/klarstein_dryfy_pro_connect_dehumidifier.yaml @@ -1,5 +1,6 @@ name: Dehumidifier -# {'updated_at': 1674605185.2896934, '1': True, '2': 'auto', '3': 57, '4': 55, '10': True, '101': True, '102': '0_90', '103': 24} +# {'updated_at': 1674605185.2896934, '1': True, '2': 'auto', '3': 57, '4': 55, +# '10': True, '101': True, '102': '0_90', '103': 24} products: - id: 6cguug02fnygou5c name: Klarstein Dryfy Pro Connect @@ -35,7 +36,7 @@ primary_entity: min: 35 max: 80 mapping: - - step: 5 + - step: 5 secondary_entities: - entity: fan deprecated: humidifier mode @@ -78,7 +79,7 @@ secondary_entities: optional: true mapping: - dps_val: "0_90" - value: "45°-90°" + value: "45°-90°" - dps_val: "45" value: "45°" - dps_val: "90" @@ -114,7 +115,7 @@ secondary_entities: icon: "mdi:creation" dps: - id: 5 - name: switch + name: switch type: boolean optional: true - entity: switch @@ -124,5 +125,4 @@ secondary_entities: dps: - id: 101 name: switch - type: boolean - + type: boolean diff --git a/custom_components/tuya_local/devices/klarta_humea_humidifier.yaml b/custom_components/tuya_local/devices/klarta_humea_humidifier.yaml index 9a56e16901..b1dae0cc21 100644 --- a/custom_components/tuya_local/devices/klarta_humea_humidifier.yaml +++ b/custom_components/tuya_local/devices/klarta_humea_humidifier.yaml @@ -108,7 +108,7 @@ secondary_entities: icon: "mdi:filter" category: diagnostic dps: - - id: 107 + - id: 107 type: string name: sensor - entity: select @@ -121,7 +121,7 @@ secondary_entities: name: option mapping: - dps_val: "0" - value: Off + value: "Off" - dps_val: "1" value: "1 hour" - dps_val: "2" diff --git a/custom_components/tuya_local/devices/kogan_air_purifier.yaml b/custom_components/tuya_local/devices/kogan_air_purifier.yaml index fd1f981806..4ac21cbb24 100644 --- a/custom_components/tuya_local/devices/kogan_air_purifier.yaml +++ b/custom_components/tuya_local/devices/kogan_air_purifier.yaml @@ -41,7 +41,7 @@ secondary_entities: - dps_val: 1 value: 128 - dps_val: 2 - value: 255 + value: 255 - entity: button name: Filter reset category: config @@ -64,7 +64,7 @@ secondary_entities: - dps_val: 2 value: "4 hours" - dps_val: 3 - value: "8 hours" + value: "8 hours" - entity: sensor name: Timer remaining class: duration @@ -88,6 +88,6 @@ secondary_entities: - dps_val: 2 value: "Normal" - dps_val: 3 - value: "Poor" + value: "Poor" - dps_val: 4 value: "Severe" diff --git a/custom_components/tuya_local/devices/kogan_bidet.yaml b/custom_components/tuya_local/devices/kogan_bidet.yaml index 15d2572fda..2a8e1941a3 100644 --- a/custom_components/tuya_local/devices/kogan_bidet.yaml +++ b/custom_components/tuya_local/devices/kogan_bidet.yaml @@ -13,7 +13,7 @@ primary_entity: type: bitfield name: fault_code optional: true - # does not seem to show in logs, and name in iot.tuya.com is in Chinese so probably not implemented + # does not seem to show in logs - id: 103 type: integer name: ambient_temperature diff --git a/custom_components/tuya_local/devices/kogan_dehumidifier.yaml b/custom_components/tuya_local/devices/kogan_dehumidifier.yaml index c61fdc3572..d7fb7e7529 100644 --- a/custom_components/tuya_local/devices/kogan_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/kogan_dehumidifier.yaml @@ -97,4 +97,3 @@ secondary_entities: - dps_val: 0 value: false - value: true - diff --git a/custom_components/tuya_local/devices/kogan_kasthfp2kwa_towerheater.yaml b/custom_components/tuya_local/devices/kogan_kasthfp2kwa_towerheater.yaml index b475831a40..5a4886bbdd 100644 --- a/custom_components/tuya_local/devices/kogan_kasthfp2kwa_towerheater.yaml +++ b/custom_components/tuya_local/devices/kogan_kasthfp2kwa_towerheater.yaml @@ -25,10 +25,10 @@ primary_entity: type: integer name: current_temperature mapping: - - constraint: hvac_mode - conditions: - - dps_val: false - invalid: true + - constraint: hvac_mode + conditions: + - dps_val: false + invalid: true - id: 4 name: preset_mode type: string diff --git a/custom_components/tuya_local/devices/kogan_lx10_vacuum.yaml b/custom_components/tuya_local/devices/kogan_lx10_vacuum.yaml index 85fcf81c9c..0f33002460 100644 --- a/custom_components/tuya_local/devices/kogan_lx10_vacuum.yaml +++ b/custom_components/tuya_local/devices/kogan_lx10_vacuum.yaml @@ -6,14 +6,14 @@ primary_entity: entity: vacuum dps: - id: 101 - name: activate # clean_switch + name: activate # clean_switch type: boolean - id: 102 - name: pause # pause_switch + name: pause # pause_switch type: boolean hidden: true - id: 104 - name: command # clean_mode + name: command # clean_mode type: string mapping: - constraint: pause @@ -31,7 +31,7 @@ primary_entity: - dps_val: backcharge value: return_to_base - id: 105 - name: status # robot_state + name: status # robot_state type: string mapping: - dps_val: idle @@ -57,7 +57,7 @@ primary_entity: - dps_val: remotectl value: remotectl - id: 109 - name: fan_speed # fan_mode + name: fan_speed # fan_mode type: string mapping: - dps_val: quiet @@ -67,7 +67,7 @@ primary_entity: - dps_val: auto value: auto - id: 111 - name: direction_control # remote_ctrl + name: direction_control # remote_ctrl optional: true type: string mapping: @@ -82,11 +82,11 @@ primary_entity: - dps_val: stop value: stop - id: 112 - name: locate # seek_robot + name: locate # seek_robot optional: true type: boolean - id: 122 - name: error # robot_fault + name: error # robot_fault type: bitfield mapping: - dps_val: 2 diff --git a/custom_components/tuya_local/devices/konlen_wf96l_waterlevel_controller.yaml b/custom_components/tuya_local/devices/konlen_wf96l_waterlevel_controller.yaml index e7b78a6143..5428d02567 100644 --- a/custom_components/tuya_local/devices/konlen_wf96l_waterlevel_controller.yaml +++ b/custom_components/tuya_local/devices/konlen_wf96l_waterlevel_controller.yaml @@ -37,7 +37,7 @@ secondary_entities: unit: "%" range: min: 0 - max: 100 + max: 100 - entity: number name: Alarm high level category: config @@ -116,15 +116,3 @@ secondary_entities: range: min: 0 max: 1440 - - - - - - - - - - - - diff --git a/custom_components/tuya_local/devices/ledlux_thermostat.yaml b/custom_components/tuya_local/devices/ledlux_thermostat.yaml index 562ac34eca..0fcae7300c 100644 --- a/custom_components/tuya_local/devices/ledlux_thermostat.yaml +++ b/custom_components/tuya_local/devices/ledlux_thermostat.yaml @@ -52,7 +52,7 @@ primary_entity: constraint: hvac_mode conditions: - dps_val: false - value: off + value: "off" - dps_val: true value: heating - dps_val: false diff --git a/custom_components/tuya_local/devices/lenovo_e1_vacuum.yaml b/custom_components/tuya_local/devices/lenovo_e1_vacuum.yaml index 14f5024659..375163cc91 100644 --- a/custom_components/tuya_local/devices/lenovo_e1_vacuum.yaml +++ b/custom_components/tuya_local/devices/lenovo_e1_vacuum.yaml @@ -221,7 +221,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: water_small + - dps_val: water_small value: Low - dps_val: water_big value: High diff --git a/custom_components/tuya_local/devices/liectroux_xr500_t3_vacuum.yaml b/custom_components/tuya_local/devices/liectroux_xr500_t3_vacuum.yaml index 5d8eb6fee9..15db73a1f3 100644 --- a/custom_components/tuya_local/devices/liectroux_xr500_t3_vacuum.yaml +++ b/custom_components/tuya_local/devices/liectroux_xr500_t3_vacuum.yaml @@ -339,4 +339,3 @@ secondary_entities: type: boolean name: button optional: true - diff --git a/custom_components/tuya_local/devices/loonas_curtain.yaml b/custom_components/tuya_local/devices/loonas_curtain.yaml index 75d4eb00ca..3aa08ef24c 100644 --- a/custom_components/tuya_local/devices/loonas_curtain.yaml +++ b/custom_components/tuya_local/devices/loonas_curtain.yaml @@ -66,4 +66,3 @@ secondary_entities: - dps_val: null value: false - value: true - diff --git a/custom_components/tuya_local/devices/loratap_curtain_switch.yaml b/custom_components/tuya_local/devices/loratap_curtain_switch.yaml index cf0ce9a916..ac000b1650 100644 --- a/custom_components/tuya_local/devices/loratap_curtain_switch.yaml +++ b/custom_components/tuya_local/devices/loratap_curtain_switch.yaml @@ -13,7 +13,7 @@ primary_entity: type: string mapping: - conditions: - - dps_val: [ "1", "2", "3" ] + - dps_val: ["1", "2", "3"] mapping: - dps_val: "1" value: open @@ -21,7 +21,7 @@ primary_entity: value: close - dps_val: "3" value: stop - - dps_val: [ "open", "close", "stop", "continue"] + - dps_val: ["open", "close", "stop", "continue"] mapping: - dps_val: open value: open @@ -29,7 +29,7 @@ primary_entity: value: close - dps_val: stop value: stop - - dps_val: [ "ZZ", "FZ", "STOP" ] + - dps_val: ["ZZ", "FZ", "STOP"] mapping: - dps_val: ZZ value: open diff --git a/custom_components/tuya_local/devices/loratap_garage_door.yaml b/custom_components/tuya_local/devices/loratap_garage_door.yaml index 32d644624c..3be9accc49 100644 --- a/custom_components/tuya_local/devices/loratap_garage_door.yaml +++ b/custom_components/tuya_local/devices/loratap_garage_door.yaml @@ -62,6 +62,3 @@ secondary_entities: mapping: - scale: 60 step: 60 - - - diff --git a/custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml b/custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml index 1a7fd46b12..a50242170a 100644 --- a/custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml +++ b/custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml @@ -21,7 +21,7 @@ primary_entity: - dps_val: smart value: smart - dps_val: chargego - value: return_to_base + value: return_to_base - dps_val: zone value: zone - dps_val: pose diff --git a/custom_components/tuya_local/devices/lytmi_hdmisync_backlight.yaml b/custom_components/tuya_local/devices/lytmi_hdmisync_backlight.yaml index e40fda3578..9d4b2533ef 100644 --- a/custom_components/tuya_local/devices/lytmi_hdmisync_backlight.yaml +++ b/custom_components/tuya_local/devices/lytmi_hdmisync_backlight.yaml @@ -151,4 +151,4 @@ secondary_entities: - dps_val: "96000000000000000000000000000000" value: Scene (Color) - Breath - dps_val: "97000000000000000000000000000000" - value: Scene (Color) - Pure + value: Scene (Color) - Pure diff --git a/custom_components/tuya_local/devices/madimack_heatpump.yaml b/custom_components/tuya_local/devices/madimack_heatpump.yaml index f74e2ccb08..343684ed96 100644 --- a/custom_components/tuya_local/devices/madimack_heatpump.yaml +++ b/custom_components/tuya_local/devices/madimack_heatpump.yaml @@ -230,4 +230,3 @@ secondary_entities: - id: 129 name: sensor type: integer - diff --git a/custom_components/tuya_local/devices/marpou_ceiling_lamp_ledlight.yaml b/custom_components/tuya_local/devices/marpou_ceiling_lamp_ledlight.yaml index 263b7e2b27..42292bf182 100644 --- a/custom_components/tuya_local/devices/marpou_ceiling_lamp_ledlight.yaml +++ b/custom_components/tuya_local/devices/marpou_ceiling_lamp_ledlight.yaml @@ -121,22 +121,28 @@ secondary_entities: value: Casual - dps_val: "AAQAAAECA0ZGAgB4A+gD6EZGAgB4A+gACg==" value: Prairie - - dps_val: "AAUAAAEGA0ZGAQAAA+gD6EZGAQB4A+gD6EZGAQDwA+gD6EZGAQA9A+gD6EZGAQCuA+gD6EZGAQETA+gD6A==" + - dps_val: "AAUAAAEGA0ZGAQAAA+gD6EZGAQB4A+gD6EZGAQDwA+gD6EZGAQA9A\ + +gD6EZGAQCuA+gD6EZGAQETA+gD6A==" value: Fun - dps_val: "AAYAAAEDA0ZGAQAAA+gD6EZGAQB4A+gD6EZGAQDwA+gD6A==" value: Dazzle - - dps_val: "AAcAAAEGA0ZGAgAAA+gD6EZGAgB4A+gD6EZGAgDwA+gD6EZGAgA9A+gD6EZGAgCuA+gD6EZGAgETA+gD6A==" + - dps_val: "AAcAAAEGA0ZGAgAAA+gD6EZGAgB4A+gD6EZGAgDwA+gD6EZGAgA9A\ + +gD6EZGAgCuA+gD6EZGAgETA+gD6A==" value: Colorful - dps_val: "ABQAAAEDA0ZGAgCuA+gD6EZGAgC0ASwD6EZGAgC0ADID6A==" value: Blue sky - - dps_val: "AB0AAAEEA2RkAQAAA+gD6GRkAQDwA+gD6GRkAgB4A+gD6GRkAgA9A+gD6A==" + - dps_val: "AB0AAAEEA2RkAQAAA+gD6GRkAQDwA+gD6GRkAgB4A+gD6GRkAgA9A\ + +gD6A==" value: Mediterranean - - dps_val: "ACAAAAEGA2RkAQA9A+gD6GRkAQB4A+gD6FpaAQETA+gD6FpaAQCuA+gD6GRkAQAyAfQD6GRkAQAAA+gD6A==" + - dps_val: "ACAAAAEGA2RkAQA9A+gD6GRkAQB4A+gD6FpaAQETA+gD6FpaAQCuA\ + +gD6GRkAQAyAfQD6GRkAQAAA+gD6A==" value: Birthday - - dps_val: "ACIAAAEGA1paAQDwA+gD6FpaAQA9A+gD6EZGAQAAA+gD6FpaAQCuA+gD6FpaAQETA+gD6EZGAQB4A+gD6A==" + - dps_val: "ACIAAAEGA1paAQDwA+gD6FpaAQA9A+gD6EZGAQAAA+gD6FpaAQCuA\ + +gD6FpaAQETA+gD6EZGAQB4A+gD6A==" value: Christmas - - dps_val: "ADIBAQIODQAAyAAAAQYDRkYCAAAD6APoRkYCAHgD6APoRkYCAPAD6APoRkYCAD0D6APoRkYCAK4D6APoRkYCARMD6APo" + - dps_val: "ADIBAQIODQAAyAAAAQYDRkYCAAAD6APoRkYCAHgD6APoRkYCAPAD6A\ + PoRkYCAD0D6APoRkYCAK4D6APoRkYCARMD6APo" value: Streamer - - dps_val: "ADMBAQIODQAB9AH0AQYDRkYBAAAD6APoRkYBAHgD6APoRkYBAPAD6APoRkYBAD0D6APoRkYBAK4D6APoRkYBARMD6APo" + - dps_val: "ADMBAQIODQAB9AH0AQYDRkYBAAAD6APoRkYBAHgD6APoRkYBAPAD6AP\ + oRkYBAD0D6APoRkYBAK4D6APoRkYBARMD6APo" value: Entertainment - diff --git a/custom_components/tuya_local/devices/me80_thermostat.yaml b/custom_components/tuya_local/devices/me80_thermostat.yaml index f7be8ab3db..6cb91a6644 100644 --- a/custom_components/tuya_local/devices/me80_thermostat.yaml +++ b/custom_components/tuya_local/devices/me80_thermostat.yaml @@ -210,7 +210,7 @@ secondary_entities: icon: "mdi:format-vertical-align-center" dps: - id: 27 - type: integer + type: integer name: value range: min: -9 @@ -335,4 +335,3 @@ secondary_entities: type: string name: temperature_unit hidden: true - diff --git a/custom_components/tuya_local/devices/medion_s20_vacuum.yaml b/custom_components/tuya_local/devices/medion_s20_vacuum.yaml index 9e51cfd55b..b4deca7fbb 100644 --- a/custom_components/tuya_local/devices/medion_s20_vacuum.yaml +++ b/custom_components/tuya_local/devices/medion_s20_vacuum.yaml @@ -101,7 +101,7 @@ secondary_entities: - id: 6 type: integer name: sensor - unit: "%" + unit: "%" class: measurement optional: true - entity: sensor @@ -111,7 +111,7 @@ secondary_entities: - id: 7 type: integer name: sensor - unit: "%" + unit: "%" class: measurement - entity: sensor name: Filter @@ -183,4 +183,3 @@ secondary_entities: - id: 101 type: boolean name: button - diff --git a/custom_components/tuya_local/devices/mellerware_comfy_radiator.yaml b/custom_components/tuya_local/devices/mellerware_comfy_radiator.yaml index 6eee8733fc..1ce5465e59 100644 --- a/custom_components/tuya_local/devices/mellerware_comfy_radiator.yaml +++ b/custom_components/tuya_local/devices/mellerware_comfy_radiator.yaml @@ -16,7 +16,7 @@ primary_entity: conditions: - dps_val: P1 value: auto - - dps_val: [ "P2", "P3" ] + - dps_val: [P2, P3] value: auto hidden: true - dps_val: CF diff --git a/custom_components/tuya_local/devices/mirabella_genio_usb.yaml b/custom_components/tuya_local/devices/mirabella_genio_usb.yaml index d2e23d0d80..cfbea31346 100644 --- a/custom_components/tuya_local/devices/mirabella_genio_usb.yaml +++ b/custom_components/tuya_local/devices/mirabella_genio_usb.yaml @@ -1,6 +1,6 @@ name: Smartplug with timer products: - # Original product id unknown: Mirabella Genio USB smartplug + # Original product id unknown: Mirabella Genio USB smartplug - id: PGEkBctAbtzKOZng name: Maxcio W-DE004 primary_entity: diff --git a/custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml b/custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml index ab3cff5976..e19cdf0fd9 100644 --- a/custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml +++ b/custom_components/tuya_local/devices/modernflames_orion_fireplace.yaml @@ -177,7 +177,7 @@ secondary_entities: name: brightness type: string mapping: - - dps_val: OFF + - dps_val: "OFF" value: 0 - dps_val: DEFAULT value: 82 @@ -313,7 +313,7 @@ secondary_entities: dps: - id: 111 type: boolean - name: switch + name: switch - entity: switch name: Ember color cycle icon: "mdi:campfire" diff --git a/custom_components/tuya_local/devices/moebot_s_mower.yaml b/custom_components/tuya_local/devices/moebot_s_mower.yaml index c33674ab5a..b255b7136a 100644 --- a/custom_components/tuya_local/devices/moebot_s_mower.yaml +++ b/custom_components/tuya_local/devices/moebot_s_mower.yaml @@ -54,7 +54,8 @@ primary_entity: - id: 102 name: error type: bitfield - # out_of_bounds, lifted, tilted, overturned, trapped, signal lost, motor fault, overheated, battery damaged + # out_of_bounds, lifted, tilted, overturned, trapped, signal lost, + # motor fault, overheated, battery damaged - id: 106 type: integer name: password @@ -125,7 +126,7 @@ secondary_entities: - entity: button name: Start fixed mowing icon: "mdi:mower-on" - dps: + dps: - id: 115 type: boolean name: button @@ -136,7 +137,7 @@ secondary_entities: - entity: button name: Cancel mowing icon: "mdi:mower" - dps: + dps: - id: 115 type: boolean name: button diff --git a/custom_components/tuya_local/devices/moes_bht002_thermostat_c.yaml b/custom_components/tuya_local/devices/moes_bht002_thermostat_c.yaml index b35dbb909a..f048ff4f3e 100644 --- a/custom_components/tuya_local/devices/moes_bht002_thermostat_c.yaml +++ b/custom_components/tuya_local/devices/moes_bht002_thermostat_c.yaml @@ -37,7 +37,7 @@ primary_entity: name: preset_mode mapping: - dps_val: true - value: eco + value: eco - dps_val: false value: comfort - id: 104 diff --git a/custom_components/tuya_local/devices/moes_star_projector.yaml b/custom_components/tuya_local/devices/moes_star_projector.yaml index a18340e810..00a4b5475e 100644 --- a/custom_components/tuya_local/devices/moes_star_projector.yaml +++ b/custom_components/tuya_local/devices/moes_star_projector.yaml @@ -66,7 +66,6 @@ secondary_entities: - id: 101 type: integer name: value - unit: range: min: 10 max: 1000 diff --git a/custom_components/tuya_local/devices/moes_temp_humidity.yaml b/custom_components/tuya_local/devices/moes_temp_humidity.yaml index 78e9f2542a..10568913de 100644 --- a/custom_components/tuya_local/devices/moes_temp_humidity.yaml +++ b/custom_components/tuya_local/devices/moes_temp_humidity.yaml @@ -37,7 +37,7 @@ secondary_entities: - id: 2 type: boolean name: switch - # Auto rules are in an undocumented encoding, so just added as an attribute + # Auto rules are in an undocumented encoding, so added as an attribute - id: 101 type: hex name: auto_rules @@ -47,7 +47,7 @@ secondary_entities: - id: 3 type: boolean name: switch - # Auto rules are in an undocumented encoding, so just added as an attribute + # Auto rules are in an undocumented encoding, so added as an attribute - id: 102 type: hex name: auto_rules @@ -191,7 +191,7 @@ secondary_entities: - id: 9 type: integer name: value - unit: C + unit: C range: min: -500 max: 1100 @@ -229,7 +229,7 @@ secondary_entities: - id: 12 type: integer name: value - unit: C + unit: C range: min: -500 max: 1100 diff --git a/custom_components/tuya_local/devices/motion_sensor_light.yaml b/custom_components/tuya_local/devices/motion_sensor_light.yaml index 544bf18608..6b285b180e 100644 --- a/custom_components/tuya_local/devices/motion_sensor_light.yaml +++ b/custom_components/tuya_local/devices/motion_sensor_light.yaml @@ -33,7 +33,7 @@ secondary_entities: name: switch mapping: - dps_val: mode_auto - value: on + value: true - dps_val: mode_on constraint: relay conditions: @@ -61,7 +61,7 @@ secondary_entities: min: 0 max: 4 mapping: - - invert: true + - invert: true - entity: number name: Duration icon: "mdi:camera-timer" diff --git a/custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml b/custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml index a3ce43c195..37e2f36868 100644 --- a/custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml +++ b/custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml @@ -99,7 +99,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: time_date_temp + - dps_val: time_date_temp value: Time, date and temperature - dps_val: time_temp value: Time and temperature @@ -115,7 +115,7 @@ secondary_entities: name: option optional: true mapping: - - dps_val: "0" + - dps_val: "0" value: "0.1" - dps_val: "1" value: "0.5" @@ -287,7 +287,7 @@ secondary_entities: conditions: - dps_val: false mapping: - - dps_val: "0_5" + - dps_val: "0_5" value: "0.5" - dps_val: "1" value: "1.0" @@ -363,7 +363,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: wood + - dps_val: wood value: Wood - dps_val: other value: Other @@ -376,7 +376,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: "10k" + - dps_val: "10k" value: "10k" - dps_val: "12k" value: "12k" diff --git a/custom_components/tuya_local/devices/nashone_mts700wb_thermostat.yaml b/custom_components/tuya_local/devices/nashone_mts700wb_thermostat.yaml index 1ee6d2b5df..ae0bd211cd 100644 --- a/custom_components/tuya_local/devices/nashone_mts700wb_thermostat.yaml +++ b/custom_components/tuya_local/devices/nashone_mts700wb_thermostat.yaml @@ -6,7 +6,7 @@ primary_entity: type: boolean name: hvac_mode mapping: - - dps_val: False + - dps_val: false value: "off" - dps_val: true constraint: mode diff --git a/custom_components/tuya_local/devices/nedis_airquality.yaml b/custom_components/tuya_local/devices/nedis_airquality.yaml index 6821fc3d41..7cf88e113d 100644 --- a/custom_components/tuya_local/devices/nedis_airquality.yaml +++ b/custom_components/tuya_local/devices/nedis_airquality.yaml @@ -55,6 +55,3 @@ secondary_entities: name: sensor unit: ppm class: measurement - - - diff --git a/custom_components/tuya_local/devices/nedis_openclose_sensor.yaml b/custom_components/tuya_local/devices/nedis_openclose_sensor.yaml index 1e6112d9e1..0a6d8bf024 100644 --- a/custom_components/tuya_local/devices/nedis_openclose_sensor.yaml +++ b/custom_components/tuya_local/devices/nedis_openclose_sensor.yaml @@ -19,4 +19,3 @@ secondary_entities: name: sensor unit: "%" class: measurement - diff --git a/custom_components/tuya_local/devices/nedis_outdoor_camera.yaml b/custom_components/tuya_local/devices/nedis_outdoor_camera.yaml index 7b92d28ad8..7b998f80e9 100644 --- a/custom_components/tuya_local/devices/nedis_outdoor_camera.yaml +++ b/custom_components/tuya_local/devices/nedis_outdoor_camera.yaml @@ -181,7 +181,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: 0 + - dps_val: 0 value: Low - dps_val: 1 value: High @@ -198,7 +198,7 @@ secondary_entities: name: option optional: true mapping: - - dps_val: "1" + - dps_val: "1" value: Event - dps_val: "2" value: Continuous @@ -239,5 +239,3 @@ secondary_entities: - id: 253 type: string name: password_change - - diff --git a/custom_components/tuya_local/devices/nedis_pet_feeder.yaml b/custom_components/tuya_local/devices/nedis_pet_feeder.yaml index 8fe05dbe77..e1548c9c5f 100644 --- a/custom_components/tuya_local/devices/nedis_pet_feeder.yaml +++ b/custom_components/tuya_local/devices/nedis_pet_feeder.yaml @@ -116,5 +116,3 @@ secondary_entities: - id: 109 type: integer name: sensor - - diff --git a/custom_components/tuya_local/devices/novadigital_quad_switch.yaml b/custom_components/tuya_local/devices/novadigital_quad_switch.yaml index 07c6e9ca29..826fc58828 100644 --- a/custom_components/tuya_local/devices/novadigital_quad_switch.yaml +++ b/custom_components/tuya_local/devices/novadigital_quad_switch.yaml @@ -1,5 +1,6 @@ # Example DPS Status -# {'dps': {'1': True, '2': True, '3': True, '4': True, '7': 0, '8': 0, '9': 0, '10': 0, '14': '0', '16': True}} +# {'dps': {'1': True, '2': True, '3': True, '4': True, '7': 0, '8': 0, '9': 0, +# '10': 0, '14': '0', '16': True}} name: Novadigital Quad Switch products: - id: 6u3rzfddlfajqvn5 diff --git a/custom_components/tuya_local/devices/orion_ptc2000_heater.yaml b/custom_components/tuya_local/devices/orion_ptc2000_heater.yaml index 28b17e661c..4b94b98ee9 100644 --- a/custom_components/tuya_local/devices/orion_ptc2000_heater.yaml +++ b/custom_components/tuya_local/devices/orion_ptc2000_heater.yaml @@ -40,38 +40,38 @@ primary_entity: - dps_val: true value: "on" secondary_entities: - - entity: select - name: Timer - icon: "mdi:timer" - category: config - dps: - - id: 19 - type: string - name: option - mapping: - - dps_val: "cancel" - value: "none" - - dps_val: "1h" - value: "1 Hour" - - dps_val: "2h" - value: "2 Hours" - - dps_val: "3h" - value: "3 Hours" - - dps_val: "4h" - value: "4 Hours" - - dps_val: "5h" - value: "5 Hours" - - dps_val: "6h" - value: "6 Hours" - - dps_val: "7h" - value: "7 Hours" - - dps_val: "8h" - value: "8 Hours" - - entity: switch - name: Window detection - icon: "mdi:window-open-variant" - category: config - dps: - - id: 101 - type: boolean - name: switch + - entity: select + name: Timer + icon: "mdi:timer" + category: config + dps: + - id: 19 + type: string + name: option + mapping: + - dps_val: "cancel" + value: "none" + - dps_val: "1h" + value: "1 Hour" + - dps_val: "2h" + value: "2 Hours" + - dps_val: "3h" + value: "3 Hours" + - dps_val: "4h" + value: "4 Hours" + - dps_val: "5h" + value: "5 Hours" + - dps_val: "6h" + value: "6 Hours" + - dps_val: "7h" + value: "7 Hours" + - dps_val: "8h" + value: "8 Hours" + - entity: switch + name: Window detection + icon: "mdi:window-open-variant" + category: config + dps: + - id: 101 + type: boolean + name: switch diff --git a/custom_components/tuya_local/devices/ovlaim_ceiling_fan_light.yaml b/custom_components/tuya_local/devices/ovlaim_ceiling_fan_light.yaml index 323b3da79a..bc74e20a31 100644 --- a/custom_components/tuya_local/devices/ovlaim_ceiling_fan_light.yaml +++ b/custom_components/tuya_local/devices/ovlaim_ceiling_fan_light.yaml @@ -81,4 +81,3 @@ secondary_entities: value: "4 hours" - dps_val: "8h" value: "8 hours" - diff --git a/custom_components/tuya_local/devices/pc311ty_energy_meter.yaml b/custom_components/tuya_local/devices/pc311ty_energy_meter.yaml index 6f9429a90f..08af2b7e57 100644 --- a/custom_components/tuya_local/devices/pc311ty_energy_meter.yaml +++ b/custom_components/tuya_local/devices/pc311ty_energy_meter.yaml @@ -151,7 +151,7 @@ secondary_entities: unit: kWh class: total_increasing mapping: - - scale: 100 + - scale: 100 - entity: sensor category: diagnostic name: Generation B diff --git a/custom_components/tuya_local/devices/petlibro_PLAF103_feeder.yaml b/custom_components/tuya_local/devices/petlibro_PLAF103_feeder.yaml index ce00b63046..730efecb62 100644 --- a/custom_components/tuya_local/devices/petlibro_PLAF103_feeder.yaml +++ b/custom_components/tuya_local/devices/petlibro_PLAF103_feeder.yaml @@ -38,7 +38,7 @@ secondary_entities: dps: - id: 3 type: integer - name: value + name: value range: min: 1 max: 50 @@ -124,7 +124,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: player + - dps_val: player value: Play - dps_val: del value: Erase diff --git a/custom_components/tuya_local/devices/petlibro_camera_feeder.yaml b/custom_components/tuya_local/devices/petlibro_camera_feeder.yaml index 6322f1572d..4915c713ab 100644 --- a/custom_components/tuya_local/devices/petlibro_camera_feeder.yaml +++ b/custom_components/tuya_local/devices/petlibro_camera_feeder.yaml @@ -263,4 +263,3 @@ secondary_entities: - id: 244 type: boolean name: switch - diff --git a/custom_components/tuya_local/devices/phw218_waterquality_monitor.yaml b/custom_components/tuya_local/devices/phw218_waterquality_monitor.yaml index f299018814..1c02ef2935 100644 --- a/custom_components/tuya_local/devices/phw218_waterquality_monitor.yaml +++ b/custom_components/tuya_local/devices/phw218_waterquality_monitor.yaml @@ -1,4 +1,4 @@ -name: Water quality +name: Water quality products: - id: layxxij0sdbrfmrf name: pH-W218 @@ -208,7 +208,7 @@ secondary_entities: - id: 123 type: integer name: value - unit: + unit: ppm range: min: 0 max: 199999 diff --git a/custom_components/tuya_local/devices/pir_rgbcw_light.yaml b/custom_components/tuya_local/devices/pir_rgbcw_light.yaml index 6a72a43b67..a430469234 100644 --- a/custom_components/tuya_local/devices/pir_rgbcw_light.yaml +++ b/custom_components/tuya_local/devices/pir_rgbcw_light.yaml @@ -1,7 +1,7 @@ name: PIR RGBCW light products: - id: hbmq4wdi5vyx9qgu - name: Kojima motion sensor nightlight + name: Kojima motion sensor nightlight primary_entity: entity: light dps: @@ -88,10 +88,10 @@ secondary_entities: type: string name: switch mapping: - - dps_val: auto - value: false - - dps_val: manual - value: true + - dps_val: auto + value: false + - dps_val: manual + value: true - entity: switch name: PIR enabled category: config diff --git a/custom_components/tuya_local/devices/pir_sensor.yaml b/custom_components/tuya_local/devices/pir_sensor.yaml index 678667dd42..8e4ec80614 100644 --- a/custom_components/tuya_local/devices/pir_sensor.yaml +++ b/custom_components/tuya_local/devices/pir_sensor.yaml @@ -21,4 +21,3 @@ secondary_entities: type: integer name: sensor unit: "%" - diff --git a/custom_components/tuya_local/devices/pir_spotlight.yaml b/custom_components/tuya_local/devices/pir_spotlight.yaml index be205af2e1..46046e78f1 100644 --- a/custom_components/tuya_local/devices/pir_spotlight.yaml +++ b/custom_components/tuya_local/devices/pir_spotlight.yaml @@ -58,10 +58,10 @@ secondary_entities: type: string name: switch mapping: - - dps_val: auto - value: false - - dps_val: manual - value: true + - dps_val: auto + value: false + - dps_val: manual + value: true optional: true force: true - entity: switch diff --git a/custom_components/tuya_local/devices/poolex_q7_heatpump.yaml b/custom_components/tuya_local/devices/poolex_q7_heatpump.yaml index 5cdaa7ed57..5bd26cf985 100644 --- a/custom_components/tuya_local/devices/poolex_q7_heatpump.yaml +++ b/custom_components/tuya_local/devices/poolex_q7_heatpump.yaml @@ -17,7 +17,7 @@ primary_entity: - dps_val: true constraint: preset_mode conditions: - - dps_val: Boost_Heat + - dps_val: Boost_Heat value: heat - dps_val: Silent_Heat value: heat @@ -187,4 +187,3 @@ secondary_entities: - dps_val: heating value: true - value: false - diff --git a/custom_components/tuya_local/devices/position_blinds.yaml b/custom_components/tuya_local/devices/position_blinds.yaml index 1ed30100c0..84ec652258 100644 --- a/custom_components/tuya_local/devices/position_blinds.yaml +++ b/custom_components/tuya_local/devices/position_blinds.yaml @@ -33,7 +33,6 @@ primary_entity: name: control_back_mode type: boolean - id: 7 + # seems intended to match action, but doesn't change in observation name: work_state type: string - # seems intended to match action, but doesn't change in observation - diff --git a/custom_components/tuya_local/devices/princess_panel_heater.yaml b/custom_components/tuya_local/devices/princess_panel_heater.yaml index ada681e1dd..fc05920aab 100644 --- a/custom_components/tuya_local/devices/princess_panel_heater.yaml +++ b/custom_components/tuya_local/devices/princess_panel_heater.yaml @@ -65,4 +65,3 @@ secondary_entities: value: Celsius - dps_val: f value: Fahrenheit - diff --git a/custom_components/tuya_local/devices/proscenic_a9_airpurifier.yaml b/custom_components/tuya_local/devices/proscenic_a9_airpurifier.yaml index 121859a855..7df73acbbe 100644 --- a/custom_components/tuya_local/devices/proscenic_a9_airpurifier.yaml +++ b/custom_components/tuya_local/devices/proscenic_a9_airpurifier.yaml @@ -46,7 +46,7 @@ primary_entity: name: unknown_102 type: string secondary_entities: - - entity: sensor + - entity: sensor class: pm25 dps: - id: 2 @@ -54,7 +54,7 @@ secondary_entities: class: measurement type: integer unit: ugm3 - - entity: light # this is inverted to what actually happens (false = light on) + - entity: light # this is inverted (false = light on) category: config name: Display icon: "mdi:lightbulb-night" @@ -144,6 +144,6 @@ secondary_entities: - dps_val: 2 value: "2 hour" - dps_val: 4 - value: "4 hours" + value: "4 hours" - dps_val: 8 - value: "8 hours" + value: "8 hours" diff --git a/custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml b/custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml index d9b2b1a93b..1b036a5eeb 100644 --- a/custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml +++ b/custom_components/tuya_local/devices/proscenic_m9_vacuum.yaml @@ -1,8 +1,7 @@ -name: M9 Robot Vacuum +name: Robot Vacuum products: - id: ise3eub6pvacnzdw name: Proscenic M9 - # information about dpids https://developer.tuya.com/en/docs/iot/laser-sweep-robot-template?id=Kae3e76wphrun primary_entity: entity: vacuum dps: @@ -136,14 +135,13 @@ primary_entity: type: string optional: true - id: 25 - name: do_not_disturb # cannot be used, set an automation to mute sound instead + name: do_not_disturb # cannot be used, set an automation instead type: boolean - hidden: true - id: 28 - name: error # seems to only switch between 0 and 2 when fault, dp 198 and 199 is where the messages are + name: error # switchs between 0 and 2 when fault, see dp 198 and 199 type: integer - id: 32 - name: device_timer # cannot be used, set an automation for scheduled cleaning + name: device_timer # set an automation for scheduled cleaning type: string optional: true - id: 33 @@ -179,7 +177,7 @@ primary_entity: type: string optional: true - id: 137 - name: cloud_map # moved here since it's not useful without the app + name: cloud_map # not useful without the app type: boolean - id: 141 name: cleanspot @@ -460,7 +458,7 @@ secondary_entities: category: config dps: - id: 39 - name: switch # required so the mop and suction options work + name: switch # required so the mop and suction options work type: boolean - entity: binary_sensor name: Mop installed diff --git a/custom_components/tuya_local/devices/prosto_ptc2000_heater.yaml b/custom_components/tuya_local/devices/prosto_ptc2000_heater.yaml index de716b13ff..4397c26ab9 100644 --- a/custom_components/tuya_local/devices/prosto_ptc2000_heater.yaml +++ b/custom_components/tuya_local/devices/prosto_ptc2000_heater.yaml @@ -46,50 +46,50 @@ primary_entity: - dps_val: true value: "on" secondary_entities: - - entity: select - name: Level - icon: "mdi:signal" - dps: - - id: 4 - type: string - name: option - mapping: - - dps_val: "normal" - value: Full - - dps_val: "auto" - value: Auto - - entity: select - name: Timer - icon: "mdi:timer" - category: config - dps: - - id: 19 - type: string - name: option - mapping: - - dps_val: "cancel" - value: "none" - - dps_val: "1h" - value: "1 Hour" - - dps_val: "2h" - value: "2 Hours" - - dps_val: "3h" - value: "3 Hours" - - dps_val: "4h" - value: "4 Hours" - - dps_val: "5h" - value: "5 Hours" - - dps_val: "6h" - value: "6 Hours" - - dps_val: "7h" - value: "7 Hours" - - dps_val: "8h" - value: "8 Hours" - - entity: switch - name: Window detection - icon: "mdi:window-open-variant" - category: config - dps: - - id: 101 - type: boolean - name: switch + - entity: select + name: Level + icon: "mdi:signal" + dps: + - id: 4 + type: string + name: option + mapping: + - dps_val: "normal" + value: Full + - dps_val: "auto" + value: Auto + - entity: select + name: Timer + icon: "mdi:timer" + category: config + dps: + - id: 19 + type: string + name: option + mapping: + - dps_val: "cancel" + value: "none" + - dps_val: "1h" + value: "1 Hour" + - dps_val: "2h" + value: "2 Hours" + - dps_val: "3h" + value: "3 Hours" + - dps_val: "4h" + value: "4 Hours" + - dps_val: "5h" + value: "5 Hours" + - dps_val: "6h" + value: "6 Hours" + - dps_val: "7h" + value: "7 Hours" + - dps_val: "8h" + value: "8 Hours" + - entity: switch + name: Window detection + icon: "mdi:window-open-variant" + category: config + dps: + - id: 101 + type: boolean + name: switch diff --git a/custom_components/tuya_local/devices/qh_gd_elegant_heater.yaml b/custom_components/tuya_local/devices/qh_gd_elegant_heater.yaml index 4c78411ce7..866488c635 100644 --- a/custom_components/tuya_local/devices/qh_gd_elegant_heater.yaml +++ b/custom_components/tuya_local/devices/qh_gd_elegant_heater.yaml @@ -140,5 +140,3 @@ secondary_entities: - dps_val: 0 value: false - value: true - - diff --git a/custom_components/tuya_local/devices/qlima_d820a_dehumidifier.yaml b/custom_components/tuya_local/devices/qlima_d820a_dehumidifier.yaml index c9ca5b25bd..bd1bb7ff65 100644 --- a/custom_components/tuya_local/devices/qlima_d820a_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/qlima_d820a_dehumidifier.yaml @@ -145,7 +145,7 @@ secondary_entities: - id: 7 type: integer name: sensor - unit: C + unit: C class: measurement - entity: select name: Timer diff --git a/custom_components/tuya_local/devices/relay_switch_remote.yaml b/custom_components/tuya_local/devices/relay_switch_remote.yaml index c8a29796dd..eb687d9303 100644 --- a/custom_components/tuya_local/devices/relay_switch_remote.yaml +++ b/custom_components/tuya_local/devices/relay_switch_remote.yaml @@ -98,4 +98,3 @@ secondary_entities: max: 3600 mapping: - mask: 00FFFF - diff --git a/custom_components/tuya_local/devices/rgb_nightlight_outlet.yaml b/custom_components/tuya_local/devices/rgb_nightlight_outlet.yaml index d83df1d3e1..aba9849965 100644 --- a/custom_components/tuya_local/devices/rgb_nightlight_outlet.yaml +++ b/custom_components/tuya_local/devices/rgb_nightlight_outlet.yaml @@ -116,16 +116,17 @@ secondary_entities: - dps_val: "04464602007803e803e800000000464602007803e8000a00000000" # color: G+DkG, Breath, Mid speed value: Soft - - dps_val: "05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000" + - dps_val: "05464601000003e803e800000000464601007803e803e800000000\ + 46460100f003e803e800000000464601003d03e803e80000000046460100ae\ + 03e803e800000000464601011303e803e800000000" # color* R+G+B+Y+C+V, Flash, Mid speed value: Colorful - - dps_val: "06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000" + - dps_val: "06464601000003e803e800000000464601007803e803e800000000\ + 46460100f003e803e800000000" # color* R+G+B, Flash, Mid speed value: Dazzling - - dps_val: "07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000" + - dps_val: "07464602000003e803e800000000464602007803e803e800000000\ + 46460200f003e803e800000000464602003d03e803e80000000046460200ae\ + 03e803e800000000464602011303e803e800000000" # color* R+G+B+Y+C+V, Breath, Mid speed value: Gorgeous - - - - diff --git a/custom_components/tuya_local/devices/rgbcw_lightbulb.yaml b/custom_components/tuya_local/devices/rgbcw_lightbulb.yaml index 60202e6a3a..1cefa2c897 100644 --- a/custom_components/tuya_local/devices/rgbcw_lightbulb.yaml +++ b/custom_components/tuya_local/devices/rgbcw_lightbulb.yaml @@ -137,12 +137,17 @@ secondary_entities: - dps_val: "04464602007803e803e800000000464602007803e8000a00000000" # color: G+DkG, Breath, Mid speed value: Soft - - dps_val: "05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000" + - dps_val: "05464601000003e803e800000000464601007803e803e800000000\ + 46460100f003e803e800000000464601003d03e803e80000000046460100ae\ + 03e803e800000000464601011303e803e800000000" # color* R+G+B+Y+C+V, Flash, Mid speed value: Colorful - - dps_val: "06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000" + - dps_val: "06464601000003e803e800000000464601007803e803e800000000\ + 46460100f003e803e800000000" # color* R+G+B, Flash, Mid speed value: Dazzling - - dps_val: "07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000" + - dps_val: "07464602000003e803e800000000464602007803e803e800000000\ + 46460200f003e803e800000000464602003d03e803e80000000046460200ae\ + 03e803e800000000464602011303e803e800000000" # color* R+G+B+Y+C+V, Breath, Mid speed value: Gorgeous diff --git a/custom_components/tuya_local/devices/rgbw_lightbulbv2.yaml b/custom_components/tuya_local/devices/rgbw_lightbulbv2.yaml index 588ab53e4e..7c9277c052 100644 --- a/custom_components/tuya_local/devices/rgbw_lightbulbv2.yaml +++ b/custom_components/tuya_local/devices/rgbw_lightbulbv2.yaml @@ -74,5 +74,3 @@ secondary_entities: mapping: - scale: 60 step: 60 - - diff --git a/custom_components/tuya_local/devices/rojeco_pet_feeder.yaml b/custom_components/tuya_local/devices/rojeco_pet_feeder.yaml index d4493b8b9c..6ad9775074 100644 --- a/custom_components/tuya_local/devices/rojeco_pet_feeder.yaml +++ b/custom_components/tuya_local/devices/rojeco_pet_feeder.yaml @@ -1,7 +1,7 @@ name: Pet feeder products: - id: hbiwalfrzqfzv2cq - name: Rojeco PTM-001 + name: Rojeco PTM-001 primary_entity: entity: button icon: "mdi:food-drumstick" diff --git a/custom_components/tuya_local/devices/rotenso_ronir35wi_heatpump.yaml b/custom_components/tuya_local/devices/rotenso_ronir35wi_heatpump.yaml index 89d5419f88..c8176b1cce 100644 --- a/custom_components/tuya_local/devices/rotenso_ronir35wi_heatpump.yaml +++ b/custom_components/tuya_local/devices/rotenso_ronir35wi_heatpump.yaml @@ -36,7 +36,7 @@ primary_entity: max: 86 - id: 3 type: integer - name: current_temperature + name: current_temperature - id: 4 type: string name: mode diff --git a/custom_components/tuya_local/devices/royal_airconditioner.yaml b/custom_components/tuya_local/devices/royal_airconditioner.yaml index 7e1f0908ac..ab01ef3d76 100644 --- a/custom_components/tuya_local/devices/royal_airconditioner.yaml +++ b/custom_components/tuya_local/devices/royal_airconditioner.yaml @@ -115,7 +115,7 @@ secondary_entities: type: boolean name: option mapping: - - dps_val: true + - dps_val: true value: Fahrenheit - dps_val: false value: Celsius diff --git a/custom_components/tuya_local/devices/royalclima_rcb150_ventilation.yaml b/custom_components/tuya_local/devices/royalclima_rcb150_ventilation.yaml index 70c688db5e..ad2f655f83 100644 --- a/custom_components/tuya_local/devices/royalclima_rcb150_ventilation.yaml +++ b/custom_components/tuya_local/devices/royalclima_rcb150_ventilation.yaml @@ -48,7 +48,7 @@ secondary_entities: - id: 3 type: integer name: sensor - unit: ugm3 + unit: ugm3 class: measurement - entity: switch name: Ionizer diff --git a/custom_components/tuya_local/devices/rumba_bathroom_heater.yaml b/custom_components/tuya_local/devices/rumba_bathroom_heater.yaml index 890ce6b531..ba1448ddc0 100644 --- a/custom_components/tuya_local/devices/rumba_bathroom_heater.yaml +++ b/custom_components/tuya_local/devices/rumba_bathroom_heater.yaml @@ -62,4 +62,3 @@ secondary_entities: - id: 40 type: boolean name: lock - diff --git a/custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml b/custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml index 4424cb0124..bc214f83ba 100644 --- a/custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml +++ b/custom_components/tuya_local/devices/salcar_t9w_thermostat.yaml @@ -180,6 +180,3 @@ secondary_entities: - dps_val: 0 value: false - value: true - - - diff --git a/custom_components/tuya_local/devices/sherko_curtain.yaml b/custom_components/tuya_local/devices/sherko_curtain.yaml index 4482ccd636..7f2c5c0698 100644 --- a/custom_components/tuya_local/devices/sherko_curtain.yaml +++ b/custom_components/tuya_local/devices/sherko_curtain.yaml @@ -16,8 +16,8 @@ primary_entity: value: close - dps_val: stop value: stop - # - dps_val: continue - # value: continue + # - dps_val: continue + # value: continue - id: 2 type: integer name: position diff --git a/custom_components/tuya_local/devices/silvercrest_kettle.yaml b/custom_components/tuya_local/devices/silvercrest_kettle.yaml index 27e69e4ede..41ba935ca9 100644 --- a/custom_components/tuya_local/devices/silvercrest_kettle.yaml +++ b/custom_components/tuya_local/devices/silvercrest_kettle.yaml @@ -36,7 +36,8 @@ primary_entity: name: warm optional: true hidden: true - # One of these unknowns should be the "16 preset programs". Both are numeric strings (so probably enums) + # One of these unknowns should be the "16 preset programs". + # Both are numeric strings (so probably enums) - id: 15 type: string name: unknown_15 @@ -78,4 +79,3 @@ secondary_entities: name: sensor unit: min optional: true - diff --git a/custom_components/tuya_local/devices/simple_blinds.yaml b/custom_components/tuya_local/devices/simple_blinds.yaml index b452c38a49..9d23de76d5 100644 --- a/custom_components/tuya_local/devices/simple_blinds.yaml +++ b/custom_components/tuya_local/devices/simple_blinds.yaml @@ -25,7 +25,6 @@ primary_entity: name: control_back_mode type: boolean - id: 7 + # seems intended to match action, but doesn't change in observation name: work_state type: string - # seems intended to match action, but doesn't change in observation - diff --git a/custom_components/tuya_local/devices/simple_dual_switch_timer.yaml b/custom_components/tuya_local/devices/simple_dual_switch_timer.yaml index 76845d3774..c73c59a1ff 100644 --- a/custom_components/tuya_local/devices/simple_dual_switch_timer.yaml +++ b/custom_components/tuya_local/devices/simple_dual_switch_timer.yaml @@ -45,4 +45,3 @@ secondary_entities: - scale: 60 step: 60 unit: min - diff --git a/custom_components/tuya_local/devices/simple_dual_switch_timer_v2.yaml b/custom_components/tuya_local/devices/simple_dual_switch_timer_v2.yaml index 570a714904..072c323a5c 100644 --- a/custom_components/tuya_local/devices/simple_dual_switch_timer_v2.yaml +++ b/custom_components/tuya_local/devices/simple_dual_switch_timer_v2.yaml @@ -46,4 +46,3 @@ secondary_entities: - scale: 60 step: 60 unit: min - diff --git a/custom_components/tuya_local/devices/simple_quad_switch.yaml b/custom_components/tuya_local/devices/simple_quad_switch.yaml index 75e8bc903e..7357e6af01 100644 --- a/custom_components/tuya_local/devices/simple_quad_switch.yaml +++ b/custom_components/tuya_local/devices/simple_quad_switch.yaml @@ -25,4 +25,3 @@ secondary_entities: - id: 4 name: switch type: boolean - diff --git a/custom_components/tuya_local/devices/smardeer_lock33.yaml b/custom_components/tuya_local/devices/smardeer_lock33.yaml index bc99bb3d19..166c11917c 100644 --- a/custom_components/tuya_local/devices/smardeer_lock33.yaml +++ b/custom_components/tuya_local/devices/smardeer_lock33.yaml @@ -107,4 +107,3 @@ secondary_entities: type: boolean name: sensor optional: true - diff --git a/custom_components/tuya_local/devices/smart_led_strip.yaml b/custom_components/tuya_local/devices/smart_led_strip.yaml index f439a52173..9c8f9340d1 100644 --- a/custom_components/tuya_local/devices/smart_led_strip.yaml +++ b/custom_components/tuya_local/devices/smart_led_strip.yaml @@ -101,11 +101,16 @@ secondary_entities: value: "Leisure" - dps_val: "04464602007803e803e800000000464602007803e8000a00000000" value: "Grassland" - - dps_val: "05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000" + - dps_val: "05464601000003e803e800000000464601007803e803e800000000\ + 46460100f003e803e800000000464601003d03e803e80000000046460100ae\ + 03e803e800000000464601011303e803e800000000" value: "Colorful" - - dps_val: "06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000" + - dps_val: "06464601000003e803e800000000464601007803e803e800000000\ + 46460100f003e803e800000000" value: "Dazzling" - - dps_val: "07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000" + - dps_val: "07464602000003e803e800000000464602007803e803e800000000\ + 46460200f003e803e800000000464602003d03e803e80000000046460200ae\ + 03e803e800000000464602011303e803e800000000" value: "Gorgeous" - dps_val: "2946460200000000000003e800d246460200000000000000c800d2" value: "Soft" @@ -113,45 +118,67 @@ secondary_entities: value: "Dynamic" - dps_val: "08000000001e0320012c00000000" value: "Night Light" - - dps_val: "1446460200ae03e803e80000000046460200b4012c03e80000000046460200b4003203e800000000" + - dps_val: "1446460200ae03e803e80000000046460200b4012c03e800000000\ + 46460200b4003203e800000000" value: "Blue Sky" - - dps_val: "1532320200f003e800640000000032320200f003e803e800000000464602012703e802ee00000000555502000003e803e800000000464602001302ee03e8000000004646020032025803e800000000323202005a038403e800000000" + - dps_val: "1532320200f003e800640000000032320200f003e803e800000000\ + 464602012703e802ee00000000555502000003e803e8000000004646020013\ + 02ee03e8000000004646020032025803e800000000323202005a038403e800\ + 000000" value: "Sunrise" - - dps_val: "16323202005a0384006400000000323202005a038403e8000000004646020032025803e800000000505002001e02ee03e800000000323202000003e803e800000000" + - dps_val: "16323202005a0384006400000000323202005a038403e800000000\ + 4646020032025803e800000000505002001e02ee03e8000000003232020000\ + 03e803e800000000" value: "Sunset glow" - dps_val: "1746460200f003e803e80000000046460200dc02bc03e800000000" value: "Ocean" - - dps_val: "184646020028032003e800000000464602001e038403e8000000004646020014038403e800000000" + - dps_val: "184646020028032003e800000000464602001e038403e800000000\ + 4646020014038403e800000000" value: "Sunflower" - - dps_val: "19464601007803e803e800000000464602006e0320025800000000464602005a038403e800000000" + - dps_val: "19464601007803e803e800000000464602006e0320025800000000\ + 464602005a038403e800000000" value: "Forest" - dps_val: "1a464602000a038403e800000000464602000003e803e800000000" value: "Kung Fu" - dps_val: "1b464603001803e803e800000000" value: "Candlelight" - - dps_val: "1c4646020104032003e800000000464602011802bc03e800000000464602011303e803e800000000" + - dps_val: "1c4646020104032003e800000000464602011802bc03e800000000\ + 464602011303e803e800000000" value: "Dream" - - dps_val: "1d646401000003e803e80000000064640100f003e803e800000000646402007803e803e800000000646402003d03e803e800000000" + - dps_val: "1d646401000003e803e80000000064640100f003e803e800000000\ + 646402007803e803e800000000646402003d03e803e800000000" value: "Mediterranean" - - dps_val: "1e323201015e01f403e800000000323202003201f403e80000000032320200a001f403e800000000" + - dps_val: "1e323201015e01f403e800000000323202003201f403e800000000\ + 32320200a001f403e800000000" value: "French Street" - - dps_val: "1f46460100dc02bc03e800000000464602006e03200258000000004646020014038403e800000000464601012703e802ee0000000046460100000384028a00000000" + - dps_val: "1f46460100dc02bc03e800000000464602006e0320025800000000\ + 4646020014038403e800000000464601012703e802ee000000004646010000\ + 0384028a00000000" value: "American" - - dps_val: "20646401003d03e803e800000000646401007803e803e8000000005a5a01011303e803e8000000005a5a0100ae03e803e800000000646401003201f403e800000000646401000003e803e800000000" + - dps_val: "20646401003d03e803e800000000646401007803e803e800000000\ + 5a5a01011303e803e8000000005a5a0100ae03e803e8000000006464010032\ + 01f403e800000000646401000003e803e800000000" value: "Birthday" - dps_val: "21323202015e01f403e800000000323202011303e803e800000000" value: "Wedding day" - - dps_val: "225a5a0100f003e803e8000000005a5a01003d03e803e800000000464601000003e803e8000000005a5a0100ae03e803e8000000005a5a01011303e803e800000000464601007803e803e800000000" + - dps_val: "225a5a0100f003e803e8000000005a5a01003d03e803e800000000\ + 464601000003e803e8000000005a5a0100ae03e803e8000000005a5a010113\ + 03e803e800000000464601007803e803e800000000" value: "Christmas" - dps_val: "23505002000003e803e80000000046460200f003e803e800000000" value: "Independence day" - - dps_val: "24464602000003e803e800000000464602003d03e803e800000000464602011303e803e80000000046460200f003e803e800000000464602007803e803e800000000" + - dps_val: "24464602000003e803e800000000464602003d03e803e800000000\ + 464602011303e803e80000000046460200f003e803e8000000004646020078\ + 03e803e800000000" value: "Diwali" - - dps_val: "25464601011303e803e800000000464602000003e803e800000000464602003d03e803e8000000004646010154032003e8000000004646010140032003e800000000464601001e02ee03e800000000" + - dps_val: "25464601011303e803e800000000464602000003e803e800000000\ + 464602003d03e803e8000000004646010154032003e8000000004646010140\ + 032003e800000000464601001e02ee03e800000000" value: "Holi" - dps_val: "265a5a020014006403e800000000464602000003e803e800000000" value: "Victory Day" - - dps_val: "275a5a020014006403e800000000464602000003e803e800000000323202015e01f403e800000000464602011303e803e800000000" + - dps_val: "275a5a020014006403e800000000464602000003e803e800000000\ + 323202015e01f403e800000000464602011303e803e800000000" value: "Easter" - dps_val: "28464601011303e803e800000000464601001e03e803e800000000" value: "Halloween" diff --git a/custom_components/tuya_local/devices/smart_siren_alarm.yaml b/custom_components/tuya_local/devices/smart_siren_alarm.yaml index 1f40cb8646..1ea2da7016 100644 --- a/custom_components/tuya_local/devices/smart_siren_alarm.yaml +++ b/custom_components/tuya_local/devices/smart_siren_alarm.yaml @@ -90,7 +90,7 @@ secondary_entities: dps: - id: 117 type: string - name: sensor + name: sensor optional: true readonly: true mapping: diff --git a/custom_components/tuya_local/devices/smart_watering_device.yaml b/custom_components/tuya_local/devices/smart_watering_device.yaml index 166c39ad23..12ef2d4cb6 100644 --- a/custom_components/tuya_local/devices/smart_watering_device.yaml +++ b/custom_components/tuya_local/devices/smart_watering_device.yaml @@ -1,7 +1,7 @@ name: Smart watering device products: - id: abzzvtulukkwzynv - name: Becasmart BAF-908 + name: Becasmart BAF-908 primary_entity: entity: switch dps: diff --git a/custom_components/tuya_local/devices/smartmcb_smt006_energymeter.yaml b/custom_components/tuya_local/devices/smartmcb_smt006_energymeter.yaml index e635a4d75b..b68e19d77d 100644 --- a/custom_components/tuya_local/devices/smartmcb_smt006_energymeter.yaml +++ b/custom_components/tuya_local/devices/smartmcb_smt006_energymeter.yaml @@ -86,7 +86,7 @@ secondary_entities: mapping: - value: false - dps_val: 16 - value: True + value: true - entity: binary_sensor name: Fire class: smoke diff --git a/custom_components/tuya_local/devices/smartmcb_smt006_energymeterv2.yaml b/custom_components/tuya_local/devices/smartmcb_smt006_energymeterv2.yaml index 3f9e5c0015..d3894f48f2 100644 --- a/custom_components/tuya_local/devices/smartmcb_smt006_energymeterv2.yaml +++ b/custom_components/tuya_local/devices/smartmcb_smt006_energymeterv2.yaml @@ -87,7 +87,7 @@ secondary_entities: mapping: - value: false - dps_val: 16 - value: True + value: true - entity: binary_sensor name: Fire class: smoke diff --git a/custom_components/tuya_local/devices/smartplug_encoded.yaml b/custom_components/tuya_local/devices/smartplug_encoded.yaml index 383ace9948..72c334ae6a 100644 --- a/custom_components/tuya_local/devices/smartplug_encoded.yaml +++ b/custom_components/tuya_local/devices/smartplug_encoded.yaml @@ -34,4 +34,3 @@ secondary_entities: mapping: - scale: 60 step: 60 - diff --git a/custom_components/tuya_local/devices/smartplug_usb.yaml b/custom_components/tuya_local/devices/smartplug_usb.yaml index 546c744936..248823722b 100644 --- a/custom_components/tuya_local/devices/smartplug_usb.yaml +++ b/custom_components/tuya_local/devices/smartplug_usb.yaml @@ -131,8 +131,3 @@ secondary_entities: value: Position - dps_val: none value: "Off" - - - - - diff --git a/custom_components/tuya_local/devices/smartplug_with_childlock.yaml b/custom_components/tuya_local/devices/smartplug_with_childlock.yaml index 065e6fd5f7..55db289ecb 100644 --- a/custom_components/tuya_local/devices/smartplug_with_childlock.yaml +++ b/custom_components/tuya_local/devices/smartplug_with_childlock.yaml @@ -58,7 +58,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: relay + - dps_val: relay value: State - dps_val: pos value: Position diff --git a/custom_components/tuya_local/devices/smartplugv2_childlock.yaml b/custom_components/tuya_local/devices/smartplugv2_childlock.yaml index ceacf6bcc7..fbc14f7e95 100644 --- a/custom_components/tuya_local/devices/smartplugv2_childlock.yaml +++ b/custom_components/tuya_local/devices/smartplugv2_childlock.yaml @@ -110,7 +110,3 @@ secondary_entities: - id: 40 type: boolean name: lock - - - - diff --git a/custom_components/tuya_local/devices/smartplugv2_energyv2.yaml b/custom_components/tuya_local/devices/smartplugv2_energyv2.yaml index fce84a60d1..7b8f65a372 100644 --- a/custom_components/tuya_local/devices/smartplugv2_energyv2.yaml +++ b/custom_components/tuya_local/devices/smartplugv2_energyv2.yaml @@ -142,7 +142,7 @@ secondary_entities: name: option optional: true mapping: - - dps_val: relay + - dps_val: relay value: State - dps_val: pos value: Position diff --git a/custom_components/tuya_local/devices/soleusair_air_purifier.yaml b/custom_components/tuya_local/devices/soleusair_air_purifier.yaml index 59ae9c11b2..36e9bc7146 100644 --- a/custom_components/tuya_local/devices/soleusair_air_purifier.yaml +++ b/custom_components/tuya_local/devices/soleusair_air_purifier.yaml @@ -119,4 +119,4 @@ secondary_entities: name: sensor unit: ugm3 mapping: - - scale: 0.1 + - scale: 0.1 diff --git a/custom_components/tuya_local/devices/somgom_single_switch.yaml b/custom_components/tuya_local/devices/somgom_single_switch.yaml index 9c07cafed8..be56e933e5 100644 --- a/custom_components/tuya_local/devices/somgom_single_switch.yaml +++ b/custom_components/tuya_local/devices/somgom_single_switch.yaml @@ -52,7 +52,7 @@ secondary_entities: value: "On" - dps_val: memory value: Last state - # during startup there may be no value, but we need to know the options + # during startup there may be no value, but we need the options - dps_val: null mapping: - dps_val: "off" diff --git a/custom_components/tuya_local/devices/sonninkonig_eco_elegance_heater.yaml b/custom_components/tuya_local/devices/sonninkonig_eco_elegance_heater.yaml index bb9cb6793d..46c41ce612 100644 --- a/custom_components/tuya_local/devices/sonninkonig_eco_elegance_heater.yaml +++ b/custom_components/tuya_local/devices/sonninkonig_eco_elegance_heater.yaml @@ -128,6 +128,3 @@ secondary_entities: - id: 103 type: boolean name: switch - - - diff --git a/custom_components/tuya_local/devices/space_dog_music_lamp.yaml b/custom_components/tuya_local/devices/space_dog_music_lamp.yaml index 05555fdff1..5859ad032e 100644 --- a/custom_components/tuya_local/devices/space_dog_music_lamp.yaml +++ b/custom_components/tuya_local/devices/space_dog_music_lamp.yaml @@ -54,26 +54,28 @@ primary_entity: min: 0 max: 1000 - # Moire speed - # values: horotelic, fast - # - id: 104 - # type: string - # name: moire - # mapping: - # - dps_val: horotelic - # value: Horotelic - # - dps_val: fast - # value: Fast + # Moire speed + # values: horotelic, fast + # - id: 104 + # type: string + # name: moire + # mapping: + # - dps_val: horotelic + # value: Horotelic + # - dps_val: fast + # value: Fast - # Local music control - # values: 010001 (minimum volume), 016401 (maximum volume), 001e00 (previous song), 011e00 (next song), 023900, 023500, 033500, 033900, 033c00, 034000, 034300, 034700, 034b00, 034e00 - # looks like two values are combined there - volume and song id (?) - # - id: 107 - + # Local music control + # values: 010001 (minimum volume), 016401 (maximum volume), + # 001e00 (previous song), 011e00 (next song), 023900, + # 023500, 033500, 033900, 033c00, 034000, 034300, 034700, + # 034b00, 034e00 + # looks like two values are combined there - volume and song id (?) + # - id: 107 - # adjust - # values: (no records found) - # - id: 117 + # adjust + # values: (no records found) + # - id: 117 secondary_entities: - entity: select @@ -185,7 +187,7 @@ secondary_entities: mapping: - scale: 60 step: 60 - + - entity: switch name: Laser icon: "mdi:laser-pointer" @@ -196,7 +198,7 @@ secondary_entities: name: switch type: boolean optional: true - + - entity: switch name: Laser breather icon: "mdi:laser-pointer" @@ -206,7 +208,7 @@ secondary_entities: name: switch type: boolean optional: true - + - entity: number name: Laser intensity icon: "mdi:laser-pointer" @@ -219,7 +221,7 @@ secondary_entities: range: min: 0 max: 1000 - + - entity: switch name: Ocean Wave icon: "mdi:waves" @@ -228,8 +230,8 @@ secondary_entities: - id: 102 name: switch type: boolean - optional: true - + optional: true + - entity: switch name: Ocean Wave breathing icon: "mdi:waves" @@ -238,15 +240,15 @@ secondary_entities: - id: 103 name: switch type: boolean - optional: true - + optional: true + - entity: switch name: Microphone dps: - id: 110 name: switch type: boolean - optional: true + optional: true mapping: - dps_val: true icon: "mdi:microphone" @@ -263,8 +265,8 @@ secondary_entities: type: integer range: min: 0 - max: 100 - + max: 100 + - entity: switch name: White light icon: "mdi:lightbulb" @@ -273,8 +275,8 @@ secondary_entities: - id: 114 name: switch type: boolean - optional: true - + optional: true + - entity: switch name: Color light icon: "mdi:lightbulb" @@ -283,7 +285,7 @@ secondary_entities: - id: 115 name: switch type: boolean - optional: true + optional: true - entity: select name: Rhythm scene @@ -294,7 +296,7 @@ secondary_entities: - id: 108 type: string name: option - optional: true + optional: true mapping: - dps_val: "1" value: Rock diff --git a/custom_components/tuya_local/devices/stadlerform_karl_humidifier.yaml b/custom_components/tuya_local/devices/stadlerform_karl_humidifier.yaml index 6448fdceca..cdad718c13 100644 --- a/custom_components/tuya_local/devices/stadlerform_karl_humidifier.yaml +++ b/custom_components/tuya_local/devices/stadlerform_karl_humidifier.yaml @@ -53,7 +53,7 @@ secondary_entities: value: false - value: true - entity: lock - name: Child lock + name: Child lock category: config dps: - id: 29 @@ -69,7 +69,7 @@ secondary_entities: icon: "mdi:filter" category: diagnostic dps: - - id: 33 + - id: 33 type: integer name: sensor unit: "%" diff --git a/custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml b/custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml index e0440e5111..151b9b96e3 100644 --- a/custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml +++ b/custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml @@ -11,7 +11,8 @@ primary_entity: name: speed type: string mapping: - # According to original reporter these are all progressivly faster speeds, even though auto suggests something else. + # According to original reporter these are all progressivly faster + # speeds, even though auto suggests something else. - dps_val: "sleep" value: 20 - dps_val: "low" diff --git a/custom_components/tuya_local/devices/starlight_heatpump.yaml b/custom_components/tuya_local/devices/starlight_heatpump.yaml index 04b4d9183c..42cd5e3a1e 100644 --- a/custom_components/tuya_local/devices/starlight_heatpump.yaml +++ b/custom_components/tuya_local/devices/starlight_heatpump.yaml @@ -27,7 +27,7 @@ primary_entity: value: fan_only - dps_val: wet icon: "mdi:water" - value: dry + value: dry - id: 2 name: temperature type: integer diff --git a/custom_components/tuya_local/devices/sulion_ceiling_fan.yaml b/custom_components/tuya_local/devices/sulion_ceiling_fan.yaml index caeb4b686a..98e66a8bc0 100644 --- a/custom_components/tuya_local/devices/sulion_ceiling_fan.yaml +++ b/custom_components/tuya_local/devices/sulion_ceiling_fan.yaml @@ -73,8 +73,3 @@ secondary_entities: name: sensor unit: min optional: true - - - - - diff --git a/custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml b/custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml index de3eb6811b..086fd80cb7 100644 --- a/custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml +++ b/custom_components/tuya_local/devices/sunbeam_dual_bedwarmer.yaml @@ -198,7 +198,7 @@ secondary_entities: name: option optional: true mapping: - - dps_val: "30m" + - dps_val: "30m" value: "30 min" - dps_val: "1h" value: "1h" @@ -237,7 +237,7 @@ secondary_entities: - dps_val: "9h30m" value: "9.5h" - dps_val: "10h" - value: "10h" + value: "10h" - entity: select name: Auto-off B icon: "mdi:timer" @@ -248,7 +248,7 @@ secondary_entities: name: option optional: true mapping: - - dps_val: "30m" + - dps_val: "30m" value: "30 min" - dps_val: "1h" value: "1h" @@ -289,7 +289,7 @@ secondary_entities: - dps_val: "10h" value: "10h" - dps_val: "Stay_On" - value: + value: "Off" - entity: sensor name: Time remaining A class: duration diff --git a/custom_components/tuya_local/devices/suntec_coolfix_airconditioner.yaml b/custom_components/tuya_local/devices/suntec_coolfix_airconditioner.yaml index e907b324c8..fefe09e753 100644 --- a/custom_components/tuya_local/devices/suntec_coolfix_airconditioner.yaml +++ b/custom_components/tuya_local/devices/suntec_coolfix_airconditioner.yaml @@ -150,5 +150,3 @@ secondary_entities: value: Celsius - dps_val: f value: Fahrenheit - - diff --git a/custom_components/tuya_local/devices/sws01_weather_station.yaml b/custom_components/tuya_local/devices/sws01_weather_station.yaml index 9d39cbbb03..846d679ae3 100644 --- a/custom_components/tuya_local/devices/sws01_weather_station.yaml +++ b/custom_components/tuya_local/devices/sws01_weather_station.yaml @@ -24,7 +24,6 @@ secondary_entities: name: sensor unit: "%" class: measurement - - entity: sensor name: Temperature 1 class: temperature @@ -36,7 +35,6 @@ secondary_entities: mapping: - scale: 10 class: measurement - - entity: sensor name: Humidity 1 class: humidity @@ -46,7 +44,6 @@ secondary_entities: name: sensor unit: "%" class: measurement - - entity: sensor name: Temperature 2 class: temperature @@ -58,7 +55,6 @@ secondary_entities: mapping: - scale: 10 class: measurement - - entity: sensor name: Humidity 2 class: humidity @@ -68,7 +64,6 @@ secondary_entities: name: sensor unit: "%" class: measurement - - entity: sensor name: Temperature 3 class: temperature @@ -81,7 +76,6 @@ secondary_entities: - scale: 10 class: measurement - entity: sensor - name: Humidity 3 class: humidity dps: diff --git a/custom_components/tuya_local/devices/tampa_led_system.yaml b/custom_components/tuya_local/devices/tampa_led_system.yaml index 70f9acaf3b..1897623b83 100644 --- a/custom_components/tuya_local/devices/tampa_led_system.yaml +++ b/custom_components/tuya_local/devices/tampa_led_system.yaml @@ -58,6 +58,3 @@ secondary_entities: - id: 34 type: boolean name: switch - - - diff --git a/custom_components/tuya_local/devices/tesla_air_purifier_mini.yaml b/custom_components/tuya_local/devices/tesla_air_purifier_mini.yaml index 002104eede..cba6e8b3ab 100644 --- a/custom_components/tuya_local/devices/tesla_air_purifier_mini.yaml +++ b/custom_components/tuya_local/devices/tesla_air_purifier_mini.yaml @@ -7,7 +7,7 @@ primary_entity: dps: - id: 1 type: boolean - name: switch + name: switch - id: 4 name: preset_mode type: string @@ -19,7 +19,7 @@ primary_entity: - dps_val: mid value: fresh - dps_val: high - value: strong + value: strong secondary_entities: - entity: light category: config @@ -34,7 +34,7 @@ secondary_entities: dps: - id: 6 name: switch - type: boolean + type: boolean - entity: sensor name: Filter category: diagnostic @@ -60,4 +60,4 @@ secondary_entities: - dps_val: "2h" value: "2 hours" - dps_val: "4h" - value: "4 hours" + value: "4 hours" diff --git a/custom_components/tuya_local/devices/tesla_air_purifier_pro.yaml b/custom_components/tuya_local/devices/tesla_air_purifier_pro.yaml index fb46ddce1e..331ee77fb1 100644 --- a/custom_components/tuya_local/devices/tesla_air_purifier_pro.yaml +++ b/custom_components/tuya_local/devices/tesla_air_purifier_pro.yaml @@ -7,7 +7,7 @@ primary_entity: dps: - id: 1 type: boolean - name: switch + name: switch - id: 3 name: preset_mode type: string @@ -29,7 +29,7 @@ primary_entity: - dps_val: "mid" value: "mid" - dps_val: "high" - value: "high" + value: "high" secondary_entities: - entity: light category: config @@ -44,7 +44,7 @@ secondary_entities: dps: - id: 6 name: switch - type: boolean + type: boolean - entity: switch name: UV sterilization category: config @@ -105,4 +105,4 @@ secondary_entities: type: integer name: sensor class: measurement - unit: ugm3 + unit: ugm3 diff --git a/custom_components/tuya_local/devices/tesvor_s6_vacuum.yaml b/custom_components/tuya_local/devices/tesvor_s6_vacuum.yaml index acade0a373..83cd7ea96b 100644 --- a/custom_components/tuya_local/devices/tesvor_s6_vacuum.yaml +++ b/custom_components/tuya_local/devices/tesvor_s6_vacuum.yaml @@ -260,10 +260,10 @@ secondary_entities: optional: true - entity: sensor name: Filter life - class: + class: duration category: diagnostic dps: - - id: 21 + - id: 21 type: integer name: sensor unit: min diff --git a/custom_components/tuya_local/devices/thermex_if50v_waterheater.yaml b/custom_components/tuya_local/devices/thermex_if50v_waterheater.yaml index 40ed7992eb..70192f9b79 100644 --- a/custom_components/tuya_local/devices/thermex_if50v_waterheater.yaml +++ b/custom_components/tuya_local/devices/thermex_if50v_waterheater.yaml @@ -51,4 +51,4 @@ secondary_entities: mapping: - dps_val: 0 value: false - - value: true + - value: true diff --git a/custom_components/tuya_local/devices/thermex_lima80v_waterheater.yaml b/custom_components/tuya_local/devices/thermex_lima80v_waterheater.yaml index f3b68bc00c..c2423e8b57 100644 --- a/custom_components/tuya_local/devices/thermex_lima80v_waterheater.yaml +++ b/custom_components/tuya_local/devices/thermex_lima80v_waterheater.yaml @@ -18,10 +18,10 @@ primary_entity: max: 75 - id: 13 type: string - name: work_mode # to observe for potential expansion of operation_mode + name: work_mode # to observe for potential expansion of operation_mode - id: 20 type: integer - name: attr1 # maybe fault_code? + name: attr1 # maybe fault_code? - id: 101 name: away_mode type: boolean diff --git a/custom_components/tuya_local/devices/tongou_qcb2_circuitbreaker.yaml b/custom_components/tuya_local/devices/tongou_qcb2_circuitbreaker.yaml index fa659bd5bf..b0f4116c11 100644 --- a/custom_components/tuya_local/devices/tongou_qcb2_circuitbreaker.yaml +++ b/custom_components/tuya_local/devices/tongou_qcb2_circuitbreaker.yaml @@ -473,7 +473,3 @@ secondary_entities: class: measurement mapping: - scale: 1000 - - - - diff --git a/custom_components/tuya_local/devices/tontine_039-WIFI_blanket.yaml b/custom_components/tuya_local/devices/tontine_039-WIFI_blanket.yaml index e4b11d8805..25d3c191f7 100644 --- a/custom_components/tuya_local/devices/tontine_039-WIFI_blanket.yaml +++ b/custom_components/tuya_local/devices/tontine_039-WIFI_blanket.yaml @@ -1,6 +1,6 @@ -#ConforTech Platinum Electric Blanket -#Model No:TEB2045QB -#Controller Unit No: 039-WIFI +# ConforTech Platinum Electric Blanket +# Model No:TEB2045QB +# Controller Unit No: 039-WIFI name: Tontine Electric Blanket products: diff --git a/custom_components/tuya_local/devices/touchstone_sideline_fireplace.yaml b/custom_components/tuya_local/devices/touchstone_sideline_fireplace.yaml index 1bed805ede..4e51590db0 100644 --- a/custom_components/tuya_local/devices/touchstone_sideline_fireplace.yaml +++ b/custom_components/tuya_local/devices/touchstone_sideline_fireplace.yaml @@ -221,7 +221,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: "1" + - dps_val: "1" value: Slow - dps_val: "2" value: Medium @@ -235,4 +235,3 @@ secondary_entities: - id: 108 type: boolean name: lock - diff --git a/custom_components/tuya_local/devices/treatlife_ds03_fan_light.yaml b/custom_components/tuya_local/devices/treatlife_ds03_fan_light.yaml index 47eb81254b..dc0f239a5b 100644 --- a/custom_components/tuya_local/devices/treatlife_ds03_fan_light.yaml +++ b/custom_components/tuya_local/devices/treatlife_ds03_fan_light.yaml @@ -50,5 +50,3 @@ secondary_entities: max: 1000 mapping: - scale: 3.92 - - diff --git a/custom_components/tuya_local/devices/tuya_000004rime_weather_station.yaml b/custom_components/tuya_local/devices/tuya_000004rime_weather_station.yaml index 6aa5197aaa..83c7cabe4c 100644 --- a/custom_components/tuya_local/devices/tuya_000004rime_weather_station.yaml +++ b/custom_components/tuya_local/devices/tuya_000004rime_weather_station.yaml @@ -354,7 +354,7 @@ secondary_entities: name: end_minute mapping: - mask: "000000FF" -## diagnostic section, base64 dps + # diagnostic section, base64 dps - entity: binary_sensor category: diagnostic name: Display settings @@ -379,10 +379,10 @@ secondary_entities: mapping: - mask: FF00000000000000000000 - dps_val: 1 - value: On + value: true mask: FF00000000000000000000 - dps_val: 0 - value: Off + value: false mask: FF00000000000000000000 - id: 108 optional: true @@ -391,10 +391,10 @@ secondary_entities: mapping: - mask: 00FF000000000000000000 - dps_val: 1 - value: On + value: true mask: 00FF000000000000000000 - dps_val: 0 - value: Off + value: false mask: 00FF000000000000000000 - id: 108 optional: true @@ -403,10 +403,10 @@ secondary_entities: mapping: - mask: 0000FF0000000000000000 - dps_val: 1 - value: On + value: true mask: 0000FF0000000000000000 - dps_val: 0 - value: Off + value: false mask: 0000FF0000000000000000 - id: 108 optional: true @@ -415,10 +415,10 @@ secondary_entities: mapping: - mask: 000000FF00000000000000 - dps_val: 1 - value: On + value: true mask: 000000FF00000000000000 - dps_val: 0 - value: Off + value: false mask: 000000FF00000000000000 - id: 108 optional: true @@ -427,10 +427,10 @@ secondary_entities: mapping: - mask: 00000000FF000000000000 - dps_val: 1 - value: On + value: true mask: 00000000FF000000000000 - dps_val: 0 - value: Off + value: false mask: 00000000FF000000000000 - id: 108 optional: true @@ -439,10 +439,10 @@ secondary_entities: mapping: - mask: 0000000000FF0000000000 - dps_val: 1 - value: On + value: true mask: 0000000000FF0000000000 - dps_val: 0 - value: Off + value: false mask: 0000000000FF0000000000 - id: 108 optional: true @@ -451,10 +451,10 @@ secondary_entities: mapping: - mask: 000000000000FF00000000 - dps_val: 1 - value: On + value: true mask: 000000000000FF00000000 - dps_val: 0 - value: Off + value: false mask: 000000000000FF00000000 - id: 108 optional: true @@ -463,10 +463,10 @@ secondary_entities: mapping: - mask: 00000000000000FF000000 - dps_val: 1 - value: On + value: true mask: 00000000000000FF000000 - dps_val: 0 - value: Off + value: false mask: 00000000000000FF000000 - id: 108 optional: true @@ -475,10 +475,10 @@ secondary_entities: mapping: - mask: 0000000000000000FF0000 - dps_val: 1 - value: On + value: true mask: 0000000000000000FF0000 - dps_val: 0 - value: Off + value: false mask: 0000000000000000FF0000 - id: 108 optional: true @@ -487,10 +487,10 @@ secondary_entities: mapping: - mask: 000000000000000000FF00 - dps_val: 1 - value: On + value: true mask: 000000000000000000FF00 - dps_val: 0 - value: Off + value: false mask: 000000000000000000FF00 - id: 108 optional: true @@ -499,10 +499,10 @@ secondary_entities: mapping: - mask: 00000000000000000000FF - dps_val: 1 - value: On + value: true mask: 00000000000000000000FF - dps_val: 0 - value: Off + value: false mask: 00000000000000000000FF - entity: sensor category: diagnostic diff --git a/custom_components/tuya_local/devices/ultenic_t10_vacuum.yaml b/custom_components/tuya_local/devices/ultenic_t10_vacuum.yaml index 60fa3ea5d3..570c81be15 100644 --- a/custom_components/tuya_local/devices/ultenic_t10_vacuum.yaml +++ b/custom_components/tuya_local/devices/ultenic_t10_vacuum.yaml @@ -11,7 +11,7 @@ primary_entity: optional: true - id: 2 type: boolean - name: activate + name: activate optional: true - id: 13 type: boolean @@ -74,9 +74,10 @@ primary_entity: - id: 14 type: string name: fan_speed - #tuya constants are interpretted backwards by Ultenic - #Ultenic App has a 4th "Strong" suction speed but observing - #the DP always seems to call it gentle when selected - so dont know what custom logic they are doing + # tuya constants are interpretted backwards by Ultenic + # Ultenic App has a 4th "Strong" suction speed but observing + # the DP always seems to call it gentle when selected - so dont + # know what custom logic they are doing mapping: - dps_val: strong value: "Off" @@ -88,7 +89,8 @@ primary_entity: - id: 110 type: bitfield name: error - #have no idea what the fields are for this bit field. The Robot upside down reports as -2601 + # have no idea what the fields are for this bit field. + # The Robot upside down reports as -2601 optional: true - id: 111 @@ -106,15 +108,20 @@ secondary_entities: unit: "%" class: measurement - - - -#The following can be retrieved by using the Tuya Uncover app at https://github.com/blakadder/tuya-uncover but are never seen by tuya local +# The following can be retrieved by using the Tuya Uncover app at +# https://github.com/blakadder/tuya-uncover but are never seen by tuya local # DP 109 is BASE 64 encoded Device ID -# DP 108 is BASE 64 encoded UUID - reports the same value as is called UUID in the Ultenic App under Device Information -# DP 107 is BASE 64 encoded JSON that looks like cleaning statistics - {"data":{"counts":40,"mopArea":0,"sweepArea":504,"time":27208},"infoType":21009} +# DP 108 is BASE 64 encoded UUID - reports the same value as is called UUID +# in the Ultenic App under Device Information +# DP 107 is BASE 64 encoded JSON that looks like cleaning statistics +# - {"data":{"counts":40,"mopArea":0,"sweepArea":504,"time":27208}, +# "infoType":21009} # DP 106 is BASE 64 encoded identifier LXT10033006392B -# DP 102 is BASE 64 encode JSON that looks like an event stream, different data everytime you look - {"dInfo":{"ts":1694541823927,"userId":"XXXXXXXXXXXX"},"data":{"battery":27208,"filter":27208,"mainBrush":27208,"sensors":27208,"sideBrush":27208},"infoType":21015,"message":"ok"} +# DP 102 is BASE 64 encode JSON that looks like an event stream, +# different data everytime you look +# - {"dInfo":{"ts":1694541823927,"userId":"XXXXXXXXXXXX"}, +# "data":{"battery":27208,"filter":27208,"mainBrush":27208, +# "sensors":27208,"sideBrush":27208},"infoType":21015,"message":"ok"} # DP 101 always "" # DP 103 always 1 # DP 104 always 1 diff --git a/custom_components/tuya_local/devices/usb_4way_powerstrip.yaml b/custom_components/tuya_local/devices/usb_4way_powerstrip.yaml index 3f98fe162b..19d99da453 100644 --- a/custom_components/tuya_local/devices/usb_4way_powerstrip.yaml +++ b/custom_components/tuya_local/devices/usb_4way_powerstrip.yaml @@ -113,5 +113,3 @@ secondary_entities: mapping: - scale: 60 step: 60 - - diff --git a/custom_components/tuya_local/devices/ustellar_ut99911_rgb.yaml b/custom_components/tuya_local/devices/ustellar_ut99911_rgb.yaml index eb80c12feb..8f4e9c888a 100644 --- a/custom_components/tuya_local/devices/ustellar_ut99911_rgb.yaml +++ b/custom_components/tuya_local/devices/ustellar_ut99911_rgb.yaml @@ -126,7 +126,8 @@ secondary_entities: value: "Breath" - dps_val: "023264000003e803e8" value: "Flash" - - dps_val: "033264000003e803e8007803e803e800f003e803e8003b03e803e8013603e803e8010e03e803e8" + - dps_val: "033264000003e803e8007803e803e800f003e803e8003b03e803e8\ + 013603e803e8010e03e803e8" value: "Jump" - dps_val: "043264000003e803e8007803e803e800f003e803e8" value: "Gradient" diff --git a/custom_components/tuya_local/devices/vacplus_dehumidifier.yaml b/custom_components/tuya_local/devices/vacplus_dehumidifier.yaml index 4104290baa..7d67547d97 100644 --- a/custom_components/tuya_local/devices/vacplus_dehumidifier.yaml +++ b/custom_components/tuya_local/devices/vacplus_dehumidifier.yaml @@ -42,7 +42,7 @@ secondary_entities: optional: true - entity: sensor class: temperature - dps: + dps: - id: 7 name: sensor type: integer diff --git a/custom_components/tuya_local/devices/vivax_heatpump.yaml b/custom_components/tuya_local/devices/vivax_heatpump.yaml index 6d4351f3ec..cbb7bc1491 100644 --- a/custom_components/tuya_local/devices/vivax_heatpump.yaml +++ b/custom_components/tuya_local/devices/vivax_heatpump.yaml @@ -125,7 +125,8 @@ primary_entity: name: fault_code # next two look obviously swing (logged values ud_00 and lr_00), # but full mappings not available to map to swing mode - # from #1183, seems to be ud_00, ud_01, ud_02, ud_03, ud_04, ud_0c (last one is swing, others are pos) + # from #1183, seems to be ud_00, ud_01, ud_02, ud_03, ud_04, ud_0c + # (last one is swing, others are pos) - id: 117 type: string name: swing_mode @@ -216,7 +217,7 @@ secondary_entities: - id: 108 type: boolean name: switch -# Boolean dps 16 = Beep and 109 = Sleep documented but missing from log + # Boolean dps 16 = Beep and 109 = Sleep documented but missing from log - entity: switch name: Sleep category: config diff --git a/custom_components/tuya_local/devices/vivion_airconditioner.yaml b/custom_components/tuya_local/devices/vivion_airconditioner.yaml index 26cf8716a3..4ff650752d 100644 --- a/custom_components/tuya_local/devices/vivion_airconditioner.yaml +++ b/custom_components/tuya_local/devices/vivion_airconditioner.yaml @@ -155,13 +155,13 @@ secondary_entities: - dps_val: same value: Swing - dps_val: vane_1 - value: Position 1 + value: Position 1 - dps_val: vane_2 - value: Position 2 + value: Position 2 - dps_val: vane_3 - value: Position 3 + value: Position 3 - dps_val: vane_4 - value: Position 4 + value: Position 4 - dps_val: vane_5 value: Position 5 - entity: light diff --git a/custom_components/tuya_local/devices/vork_vk6067aw_purifier.yaml b/custom_components/tuya_local/devices/vork_vk6067aw_purifier.yaml index 011730d4fe..b1201d780c 100644 --- a/custom_components/tuya_local/devices/vork_vk6067aw_purifier.yaml +++ b/custom_components/tuya_local/devices/vork_vk6067aw_purifier.yaml @@ -43,10 +43,10 @@ secondary_entities: type: boolean name: switch mapping: - - dps_val: true - icon: "mdi:led-on" - - dps_val: false - icon: "mdi:led-off" + - dps_val: true + icon: "mdi:led-on" + - dps_val: false + icon: "mdi:led-off" - entity: button name: Filter reset category: config @@ -69,7 +69,7 @@ secondary_entities: - dps_val: "1h" value: "1 hour" - dps_val: "2h" - value: "2 hours" + value: "2 hours" - entity: sensor name: Timer class: duration @@ -95,9 +95,9 @@ secondary_entities: - dps_val: "good" value: "Good" - dps_val: "medium" - value: "Medium" + value: "Medium" - dps_val: "severe" - value: "Severe" + value: "Severe" - entity: binary_sensor name: Error category: diagnostic diff --git a/custom_components/tuya_local/devices/weeket_kettle.yaml b/custom_components/tuya_local/devices/weeket_kettle.yaml index fa6935878a..9fa1e36dfe 100644 --- a/custom_components/tuya_local/devices/weeket_kettle.yaml +++ b/custom_components/tuya_local/devices/weeket_kettle.yaml @@ -120,7 +120,7 @@ secondary_entities: value: Reserved 3 - entity: binary_sensor name: Fault - class: problem + class: problem category: diagnostic dps: - id: 19 @@ -141,5 +141,3 @@ secondary_entities: - id: 101 type: boolean name: switch - - diff --git a/custom_components/tuya_local/devices/wetair_wawh1210lw_humidifier.yaml b/custom_components/tuya_local/devices/wetair_wawh1210lw_humidifier.yaml index 1c7f324a10..a22f1ce23b 100644 --- a/custom_components/tuya_local/devices/wetair_wawh1210lw_humidifier.yaml +++ b/custom_components/tuya_local/devices/wetair_wawh1210lw_humidifier.yaml @@ -44,11 +44,11 @@ secondary_entities: type: boolean name: switch mapping: - - dps_val: true - icon: "mdi:led-on" - - dps_val: false - icon: "mdi:led-off" - + - dps_val: true + icon: "mdi:led-on" + - dps_val: false + icon: "mdi:led-off" + - entity: switch name: Sound category: config @@ -57,10 +57,10 @@ secondary_entities: name: "switch" type: boolean mapping: - - dps_val: true - icon: "mdi:volume-high" - - dps_val: false - icon: "mdi:volume-off" + - dps_val: true + icon: "mdi:volume-high" + - dps_val: false + icon: "mdi:volume-off" - entity: sensor name: Current humidity @@ -70,7 +70,7 @@ secondary_entities: dps: - id: 14 name: sensor - type: integer + type: integer class: measurement unit: "%" diff --git a/custom_components/tuya_local/devices/wetair_wch750_heater.yaml b/custom_components/tuya_local/devices/wetair_wch750_heater.yaml index c9b130a22e..3b346b0091 100644 --- a/custom_components/tuya_local/devices/wetair_wch750_heater.yaml +++ b/custom_components/tuya_local/devices/wetair_wch750_heater.yaml @@ -135,7 +135,7 @@ secondary_entities: - dps_val: "23h" value: "23 hours" - dps_val: "24h" - value: "24 hours" + value: "24 hours" - entity: sensor category: diagnostic class: duration diff --git a/custom_components/tuya_local/devices/wilfa_haze_hu400bc_humidifier.yaml b/custom_components/tuya_local/devices/wilfa_haze_hu400bc_humidifier.yaml index ad7116b014..312fae45d0 100644 --- a/custom_components/tuya_local/devices/wilfa_haze_hu400bc_humidifier.yaml +++ b/custom_components/tuya_local/devices/wilfa_haze_hu400bc_humidifier.yaml @@ -75,10 +75,10 @@ secondary_entities: type: boolean name: switch mapping: - - dps_val: true - icon: "mdi:led-on" - - dps_val: false - icon: "mdi:led-off" + - dps_val: true + icon: "mdi:led-on" + - dps_val: false + icon: "mdi:led-off" - entity: switch name: Sound category: config @@ -87,16 +87,16 @@ secondary_entities: name: switch type: boolean mapping: - - dps_val: true - icon: "mdi:volume-high" - - dps_val: false - icon: "mdi:volume-off" + - dps_val: true + icon: "mdi:volume-high" + - dps_val: false + icon: "mdi:volume-off" - entity: sensor class: temperature dps: - id: 10 name: sensor - type: integer + type: integer class: measurement - id: 18 name: unit @@ -114,7 +114,7 @@ secondary_entities: dps: - id: 14 name: sensor - type: integer + type: integer class: measurement unit: "%" - entity: light @@ -125,12 +125,12 @@ secondary_entities: type: boolean name: switch mapping: - - dps_val: true - value: false - icon: "mdi:led-off" - - dps_val: false - value: true - icon: "mdi:led-on" + - dps_val: true + value: false + icon: "mdi:led-off" + - dps_val: false + value: true + icon: "mdi:led-on" - entity: select category: config name: Temperature unit diff --git a/custom_components/tuya_local/devices/windcalm_fan_with_light.yaml b/custom_components/tuya_local/devices/windcalm_fan_with_light.yaml index 6944bb8bc0..c01595faf2 100644 --- a/custom_components/tuya_local/devices/windcalm_fan_with_light.yaml +++ b/custom_components/tuya_local/devices/windcalm_fan_with_light.yaml @@ -52,4 +52,3 @@ secondary_entities: range: min: 0 max: 540 - diff --git a/custom_components/tuya_local/devices/woods_cortina_airconditioner.yaml b/custom_components/tuya_local/devices/woods_cortina_airconditioner.yaml index 37cfc5c98d..5ddc318d51 100644 --- a/custom_components/tuya_local/devices/woods_cortina_airconditioner.yaml +++ b/custom_components/tuya_local/devices/woods_cortina_airconditioner.yaml @@ -25,7 +25,7 @@ primary_entity: dps_val: "3" icon: "mdi:fan" - value: heat_cool - dps_val: "4" # This is Woods ECO mode + dps_val: "4" # This is Woods ECO mode icon: "mdi:thermostat-auto" - id: 2 type: integer @@ -92,4 +92,4 @@ secondary_entities: dps: - id: 105 type: boolean - name: switch \ No newline at end of file + name: switch diff --git a/custom_components/tuya_local/devices/xiumii_smart_human_presence_sensor.yaml b/custom_components/tuya_local/devices/xiumii_smart_human_presence_sensor.yaml index ac07c66171..37f0efea7a 100644 --- a/custom_components/tuya_local/devices/xiumii_smart_human_presence_sensor.yaml +++ b/custom_components/tuya_local/devices/xiumii_smart_human_presence_sensor.yaml @@ -30,7 +30,7 @@ secondary_entities: max: 600 mapping: - step: 75 - + - entity: sensor class: distance dps: @@ -48,7 +48,7 @@ secondary_entities: name: sensor unit: lx class: measurement - + - entity: sensor name: PIR delay class: duration @@ -66,7 +66,7 @@ secondary_entities: - id: 103 type: boolean name: switch - + - entity: light name: Indicator icon: "mdi:led-on" diff --git a/custom_components/tuya_local/devices/yagusmart_3pn_energymeter.yaml b/custom_components/tuya_local/devices/yagusmart_3pn_energymeter.yaml index 05a9ee1ab9..cabf88880e 100644 --- a/custom_components/tuya_local/devices/yagusmart_3pn_energymeter.yaml +++ b/custom_components/tuya_local/devices/yagusmart_3pn_energymeter.yaml @@ -33,7 +33,7 @@ secondary_entities: - id: 2 type: integer name: sensor - unit: kWh + unit: kWh class: measurement mapping: - scale: 100 diff --git a/custom_components/tuya_local/devices/yinmik_waterquality_tester.yaml b/custom_components/tuya_local/devices/yinmik_waterquality_tester.yaml index 8ef7bf3af0..fd496779c0 100644 --- a/custom_components/tuya_local/devices/yinmik_waterquality_tester.yaml +++ b/custom_components/tuya_local/devices/yinmik_waterquality_tester.yaml @@ -238,4 +238,3 @@ secondary_entities: range: min: 0 max: 100 - diff --git a/custom_components/tuya_local/devices/yp_petfeeeder.yaml b/custom_components/tuya_local/devices/yp_petfeeeder.yaml index 5329b32a77..aca34f2c2c 100644 --- a/custom_components/tuya_local/devices/yp_petfeeeder.yaml +++ b/custom_components/tuya_local/devices/yp_petfeeeder.yaml @@ -42,4 +42,3 @@ secondary_entities: - id: 14 type: boolean name: sensor - diff --git a/custom_components/tuya_local/devices/yx316wifi_aroma_diffuser.yaml b/custom_components/tuya_local/devices/yx316wifi_aroma_diffuser.yaml index befb8a3b35..100edaceff 100644 --- a/custom_components/tuya_local/devices/yx316wifi_aroma_diffuser.yaml +++ b/custom_components/tuya_local/devices/yx316wifi_aroma_diffuser.yaml @@ -1,4 +1,5 @@ -# DPS sample: { "1": true, "2": true, "3": "MID", "7": true, "8": 1000, "9": "colourful1", "10": "", "11": 0 } +# DPS sample: { "1": true, "2": true, "3": "MID", "7": true, "8": 1000, +# "9": "colourful1", "10": "", "11": 0 } name: Aroma Diffuser With Lamp products: - id: arkdxfhlkpdyof9x @@ -62,7 +63,7 @@ secondary_entities: min: 10 max: 1000 mapping: - - scale: 3.92 + - scale: 3.92 - id: 10 name: rgbhsv type: hex @@ -99,4 +100,4 @@ secondary_entities: - dps_val: true icon: "mdi:speaker" - dps_val: false - icon: "mdi:speaker-off" + icon: "mdi:speaker-off" diff --git a/custom_components/tuya_local/devices/yym_805SW_aroma_nightlight.yaml b/custom_components/tuya_local/devices/yym_805SW_aroma_nightlight.yaml index 8e3c998978..8c095cd939 100644 --- a/custom_components/tuya_local/devices/yym_805SW_aroma_nightlight.yaml +++ b/custom_components/tuya_local/devices/yym_805SW_aroma_nightlight.yaml @@ -1,4 +1,5 @@ -# DPS sample: {'updated_at': 1674433099.9169242, '1': True, '2': 'large', '3': '1', '5': True, '6': 'colourful1', '8': '001fff00e8ffff'} +# DPS sample: {'updated_at': 1674433099.9169242, '1': True, '2': 'large', +# '3': '1', '5': True, '6': 'colourful1', '8': '001fff00e8ffff'} name: Aroma diffuser products: - id: c0nh3LmEk0NDebrq diff --git a/custom_components/tuya_local/devices/zemismart_curtain.yaml b/custom_components/tuya_local/devices/zemismart_curtain.yaml index 81533f15ce..e3e069a97c 100644 --- a/custom_components/tuya_local/devices/zemismart_curtain.yaml +++ b/custom_components/tuya_local/devices/zemismart_curtain.yaml @@ -63,4 +63,3 @@ secondary_entities: - dps_val: null value: false - value: true - diff --git a/custom_components/tuya_local/devices/zemismart_roller_shade.yaml b/custom_components/tuya_local/devices/zemismart_roller_shade.yaml index cbac94b0a9..3c467e2f6a 100644 --- a/custom_components/tuya_local/devices/zemismart_roller_shade.yaml +++ b/custom_components/tuya_local/devices/zemismart_roller_shade.yaml @@ -147,4 +147,3 @@ secondary_entities: type: boolean name: button optional: true - diff --git a/custom_components/tuya_local/devices/zg205w_mmWave_presence_sensor.yaml b/custom_components/tuya_local/devices/zg205w_mmWave_presence_sensor.yaml index 3271214790..0f478266a9 100644 --- a/custom_components/tuya_local/devices/zg205w_mmWave_presence_sensor.yaml +++ b/custom_components/tuya_local/devices/zg205w_mmWave_presence_sensor.yaml @@ -17,8 +17,8 @@ primary_entity: value: true - dps_val: none value: false - # - id: 111 - # name: breathingselftest + # - id: 111 + # name: breathingselftest secondary_entities: - entity: number name: Motion sensitivity diff --git a/custom_components/tuya_local/devices/zigbee_climate_alarm.yaml b/custom_components/tuya_local/devices/zigbee_climate_alarm.yaml index 18d3ba5b49..18b3842337 100644 --- a/custom_components/tuya_local/devices/zigbee_climate_alarm.yaml +++ b/custom_components/tuya_local/devices/zigbee_climate_alarm.yaml @@ -49,7 +49,7 @@ secondary_entities: type: string name: option mapping: - - dps_val: c + - dps_val: c value: Celsius - dps_val: f value: Fahrenheit @@ -147,5 +147,3 @@ secondary_entities: - id: 21 type: boolean name: switch - - diff --git a/custom_components/tuya_local/devices/zigbee_mir_te100ty_climate_sensor.yaml b/custom_components/tuya_local/devices/zigbee_mir_te100ty_climate_sensor.yaml index 64c40fb550..4a1d54d105 100644 --- a/custom_components/tuya_local/devices/zigbee_mir_te100ty_climate_sensor.yaml +++ b/custom_components/tuya_local/devices/zigbee_mir_te100ty_climate_sensor.yaml @@ -35,6 +35,3 @@ secondary_entities: class: measurement mapping: - scale: 5 - - - diff --git a/custom_components/tuya_local/devices/zigbee_smart_bulb.yaml b/custom_components/tuya_local/devices/zigbee_smart_bulb.yaml index 0491061f3b..1a0df681a6 100644 --- a/custom_components/tuya_local/devices/zigbee_smart_bulb.yaml +++ b/custom_components/tuya_local/devices/zigbee_smart_bulb.yaml @@ -81,9 +81,14 @@ secondary_entities: value: Leisure - dps_val: 04464602007803e803e800000000464602007803e8000a00000000 value: Soft - - dps_val: 05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000 + - dps_val: "05464601000003e803e800000000464601007803e803e800000000\ + 46460100f003e803e800000000464601003d03e803e80000000046460100ae\ + 03e803e800000000464601011303e803e800000000" value: Colorful - - dps_val: 06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000 + - dps_val: "06464601000003e803e800000000464601007803e803e800000000\ + 46460100f003e803e800000000" value: Dazzling - - dps_val: 07464602000003e803e800000000464602007803e803e80000000046460200f003e803e800000000464602003d03e803e80000000046460200ae03e803e800000000464602011303e803e800000000 + - dps_val: "07464602000003e803e800000000464602007803e803e800000000\ + 46460200f003e803e800000000464602003d03e803e80000000046460200ae\ + 03e803e800000000464602011303e803e800000000" value: Gorgeous diff --git a/custom_components/tuya_local/devices/zm_wifi_smartmeter.yaml b/custom_components/tuya_local/devices/zm_wifi_smartmeter.yaml index 4be2c57f61..2fbbaebb4e 100644 --- a/custom_components/tuya_local/devices/zm_wifi_smartmeter.yaml +++ b/custom_components/tuya_local/devices/zm_wifi_smartmeter.yaml @@ -79,4 +79,3 @@ secondary_entities: - id: 16 type: boolean name: switch - diff --git a/custom_components/tuya_local/devices/zx_db11_doorbell_alarm.yaml b/custom_components/tuya_local/devices/zx_db11_doorbell_alarm.yaml index 2d1b939697..c6094822ff 100644 --- a/custom_components/tuya_local/devices/zx_db11_doorbell_alarm.yaml +++ b/custom_components/tuya_local/devices/zx_db11_doorbell_alarm.yaml @@ -338,4 +338,3 @@ secondary_entities: - id: 34 type: boolean name: button - diff --git a/custom_components/tuya_local/devices/zx_db11b_doorbell_alarm.yaml b/custom_components/tuya_local/devices/zx_db11b_doorbell_alarm.yaml index 851fd65bc4..00e2d43a6d 100644 --- a/custom_components/tuya_local/devices/zx_db11b_doorbell_alarm.yaml +++ b/custom_components/tuya_local/devices/zx_db11b_doorbell_alarm.yaml @@ -332,4 +332,3 @@ secondary_entities: - id: 34 type: boolean name: button - diff --git a/custom_components/tuya_local/devices/zx_gs21_gasmonitor.yaml b/custom_components/tuya_local/devices/zx_gs21_gasmonitor.yaml index 3444b21bf7..9e00add99e 100644 --- a/custom_components/tuya_local/devices/zx_gs21_gasmonitor.yaml +++ b/custom_components/tuya_local/devices/zx_gs21_gasmonitor.yaml @@ -10,7 +10,7 @@ primary_entity: - id: 2 type: integer name: sensor - unit: "%LEL" + unit: "%LEL" class: measurement - id: 1 type: string @@ -84,6 +84,3 @@ secondary_entities: - id: 18 type: string name: alarm_state - - - diff --git a/custom_components/tuya_local/devices/zym100_presence_sensor.yaml b/custom_components/tuya_local/devices/zym100_presence_sensor.yaml index bb9d2d0ba4..7a0eb2c217 100644 --- a/custom_components/tuya_local/devices/zym100_presence_sensor.yaml +++ b/custom_components/tuya_local/devices/zym100_presence_sensor.yaml @@ -1 +1,133 @@ -name: mmWave presence sensor products: - id: k2h8vkj98fhvnpiv name: ZY-M100-WIFI - id: yroelksjtb4ehda8 name: WZ-M100-W primary_entity: entity: binary_sensor class: occupancy dps: - id: 1 type: string name: sensor mapping: - dps_val: presence value: true - dps_val: none value: false secondary_entities: - entity: number name: Sensitivity category: config icon: "mdi:motion-sensor" dps: - id: 2 type: integer name: value range: min: 0 max: 9 - entity: number name: Minimum distance category: config icon: "mdi:arrow-collapse-left" dps: - id: 3 type: integer name: value unit: m range: min: 0 max: 1000 mapping: - scale: 100 step: 10 - entity: number name: Maximum distance category: config icon: "mdi:arrow-collapse-right" dps: - id: 4 type: integer name: value unit: m range: min: 0 max: 1000 mapping: - scale: 100 step: 10 - entity: sensor name: Status class: enum icon: "mdi:list-status" category: diagnostic dps: - id: 6 type: string name: sensor optional: true mapping: - dps_val: check_failure value: Fault - dps_val: check_success value: OK - dps_val: checking value: Checking - dps_val: comm_fault value: Communication fault - dps_val: others value: Timeout - dps_val: radar_fault value: Radar fault - entity: sensor name: Target distance class: distance icon: "mdi:tape-measure" dps: - id: 9 type: integer name: sensor unit: m class: measurement mapping: - scale: 100 - entity: number name: Detection delay category: config # mode: box icon: "mdi:timer-sand" dps: - id: 101 type: integer name: value unit: s range: min: 0 max: 100 mapping: - scale: 10 - entity: number name: Fading time category: config icon: "mdi:timer-sand-complete" dps: - id: 102 type: integer name: value unit: s range: min: 0 max: 15000 mapping: - scale: 10 step: 50 - entity: sensor class: illuminance dps: - id: 104 type: integer name: sensor unit: lx class: measurement \ No newline at end of file +name: mmWave presence sensor +products: + - id: k2h8vkj98fhvnpiv + name: ZY-M100-WIFI + - id: yroelksjtb4ehda8 + name: WZ-M100-W +primary_entity: + entity: binary_sensor + class: occupancy + dps: + - id: 1 + type: string + name: sensor + mapping: + - dps_val: presence + value: true + - dps_val: none + value: false +secondary_entities: + - entity: number + name: Sensitivity + category: config + icon: "mdi:motion-sensor" + dps: + - id: 2 + type: integer + name: value + range: + min: 0 + max: 9 + - entity: number + name: Minimum distance + category: config + icon: "mdi:arrow-collapse-left" + dps: + - id: 3 + type: integer + name: value + unit: m + range: + min: 0 + max: 1000 + mapping: + - scale: 100 + step: 10 + - entity: number + name: Maximum distance + category: config + icon: "mdi:arrow-collapse-right" + dps: + - id: 4 + type: integer + name: value + unit: m + range: + min: 0 + max: 1000 + mapping: + - scale: 100 + step: 10 + - entity: sensor + name: Status + class: enum + icon: "mdi:list-status" + category: diagnostic + dps: + - id: 6 + type: string + name: sensor + optional: true + mapping: + - dps_val: check_failure + value: Fault + - dps_val: check_success + value: OK + - dps_val: checking + value: Checking + - dps_val: comm_fault + value: Communication fault + - dps_val: others + value: Timeout + - dps_val: radar_fault + value: Radar fault + - entity: sensor + name: Target distance + class: distance + icon: "mdi:tape-measure" + dps: + - id: 9 + type: integer + name: sensor + unit: m + class: measurement + mapping: + - scale: 100 + - entity: number + name: Detection delay + category: config + # mode: box + icon: "mdi:timer-sand" + dps: + - id: 101 + type: integer + name: value + unit: s + range: + min: 0 + max: 100 + mapping: + - scale: 10 + - entity: number + name: Fading time + category: config + icon: "mdi:timer-sand-complete" + dps: + - id: 102 + type: integer + name: value + unit: s + range: + min: 0 + max: 15000 + mapping: + - scale: 10 + step: 50 + - entity: sensor + class: illuminance + dps: + - id: 104 + type: integer + name: sensor + unit: lx + class: measurement diff --git a/custom_components/tuya_local/devices/zym201_presence_sensor.yaml b/custom_components/tuya_local/devices/zym201_presence_sensor.yaml index a99988d222..76528cee71 100644 --- a/custom_components/tuya_local/devices/zym201_presence_sensor.yaml +++ b/custom_components/tuya_local/devices/zym201_presence_sensor.yaml @@ -59,7 +59,6 @@ secondary_entities: max: 550 mapping: - scale: 100 -# step: 100 - entity: sensor name: Target distance class: distance diff --git a/requirements-dev.txt b/requirements-dev.txt index 71f123ef70..fbdea7822b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,3 +6,4 @@ pytest-asyncio pytest-cov ruff tinytuya~=1.13.1 +yamllint