Closed Blcktape closed 3 weeks ago
@make-all Is there a reason why the integration is being rejected?
As clearly stated in the template, the log message is not optional
@make-all Sorry I forgot the log! I completed the issue. Can it be re opened?
@make-all When adding the device i cannot get it to match DPS
2024-08-01 13:00:28.354 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ion_wifi_dimmer.yaml
2024-08-01 13:00:28.354 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Not match for Dimmer switch, missing required DPs: [{'13': 'str'}, {'4': 'str'}]
I set DPS 4 and 13 as optional and got the option to select the yaml file. Adding went fine but when trying to set DPS 4 for example it fails. Seems that when the device pulls its configuration status from the device it does not contain DPS 4 and 13.
2024-08-01 17:12:39.802 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] option values: ['LED', 'Incandescent', 'Halogen']
2024-08-01 17:12:39.802 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] ION Dimmer switch: Mapped dps 4 to led from LED
2024-08-01 17:12:39.802 DEBUG (MainThread) [custom_components.tuya_local.device] ION Dimmer switch new pending updates: {"4": {"value": "led", "updated_at": 1722525159.8027353, "sent": false}}
2024-08-01 17:12:39.804 DEBUG (MainThread) [custom_components.tuya_local.device] ION Dimmer switch sending dps update: {"4": "led"}
2024-08-01 17:12:40.073 DEBUG (MainThread) [custom_components.tuya_local.device] ION Dimmer switch received {"1": false, "2": 552, "3": 92, "5": 115, "6": 0, "full_poll": true}
Device Details
{
"result": {
"active_time": 1712167505,
"bind_space_id": "158688766",
"category": "tgq",
"create_time": 1687034904,
"custom_name": "Sleepingroom",
"icon": "smart/icon/ay1547540731802V31Xp/13640871deeccfd8d14120b70b8a3255.png",
"id": "<REDACTED>",
"ip": "<REDACTED>",
"is_online": true,
"lat": "<REDACTED>",
"local_key": "<REDACTED>",
"lon": "<REDACTED>",
"model": "WIFI 调光器",
"name": "ION WIFI DIMMER",
"product_id": "ceikasvm5p5ymcax",
"product_name": "LW_WI_DI_00",
"sub": false,
"time_zone": "+02:00",
"update_time": 1718491226,
"uuid": "85a104af002c77b5"
},
"success": true,
"t": 1722605728385,
"tid": "14c2e1dc50d411efb4aad63cb6505ef8"
}
Working Device config without DPS 4 and 13 as they cannot be controlled by tuya-local for some unknown reason.
name: ION WIFI DIMMER
products:
- id: ceikasvm5p5ymcax
name: ION WIFI DIMMER
primary_entity:
entity: light
dps:
- id: 1
name: switch
type: boolean
- id: 2
name: brightness
type: integer
range:
min: 10
max: 1000
secondary_entities:
- entity: number
name: Minimum brightness
category: config
icon: "mdi:brightness-percent"
dps:
- id: 3
type: integer
name: value
range:
min: 10
max: 1000
mapping:
- step: 1
- entity: number
name: Maximum brightness
category: config
icon: "mdi:brightness-percent"
dps:
- id: 5
type: integer
name: value
range:
min: 10
max: 1000
mapping:
- step: 1
- entity: number
translation_key: timer
name: Timer
category: config
dps:
- id: 6
type: integer
name: value
unit: "s"
range:
min: 0
max: 86400
mapping:
- scale: 0
- step: 1
Log Message
Information about DPS mappings
DPS ID's
Product ID
I have 4 ION Dimmers with all four different product id's. Product name: LW_WI_DI_00
Information about how the device functions
https://www.ionindustries.com/winkel/led-dimmer-wifi/
Possible configuration
When i added the following configuration manually in the tuya-local device folder i cannot get it to match.