Conversation
95c4a81 to
ad7bbed
Compare
62217f7 to
92b05e9
Compare
58f9de1 to
92b05e9
Compare
|
Sorry for all the GitHub actions. I'm not familiar with it. I tried to mark it as a draft to avoid it and run it on the fork, but this does not seem to help. |
make-all
left a comment
There was a problem hiding this comment.
If this device is a fan, then it should be mentioned in the filename so users can recognise the device when it appears as a possible match.
| @@ -0,0 +1,50 @@ | |||
| name: Klarstein Alinea Smart | |||
There was a problem hiding this comment.
Top level name should be generic in case other products match the same config
| products: | ||
| - id: zggqz0s1atd9qce4 | ||
| manufacturer: Klarstein | ||
| model: FJ6 |
There was a problem hiding this comment.
Alinea should be included in the model
| min: 1 | ||
| max: 3 | ||
| - entity: fan | ||
| name: fan_speed_enum |
There was a problem hiding this comment.
This is not a suitable name for an entity, but since there is just one fan entity, it does not need a name
| dps: | ||
| - id: 10 | ||
| type: string | ||
| name: preset_mode |
There was a problem hiding this comment.
preset mode requires a mapping, otherwise there is no way for HA to know which preset modes are supported
| type: string | ||
| name: preset_mode | ||
| - entity: number | ||
| name: Countdown |
There was a problem hiding this comment.
Use translation_key: timer instead of this name.
Usually a timer should also be marked category: config, as they are not particularly interesting, as more advanced automation is available through HA.
Normally a timer should also be marked as class: duration and the unit specified (h, min, s)
| manufacturer: Klarstein | ||
| model: FJ6 | ||
| entities: | ||
| - entity: switch |
There was a problem hiding this comment.
This should probably be attached to the fan
| - id: 102 | ||
| type: integer | ||
| name: effect | ||
| range: |
There was a problem hiding this comment.
effect requires discrete values, and they should probably be named. But if this is selecting a color temperature, or color, then either color_temp or named_color should be used instead.
I based it on the following config items i obtaind via the Tuya dev portal.
I have tried to figure out what the RGB property does (dp_id: 101), but was not able to trigger anything.
It also does not show in the app.
In the app I get:
These items I have added.
This config might work for more devices, as the device is listed as an alinea, but the unit I have in my kitchen is an Eva.
Here is the info I pulled from the dev system to figure out:
Thought it might help review.
Let me know if anything is still missing or incorrect.
{
"result": [
{
"active_time": 1769885705,
"bind_space_id": "XXXXXXXXXXXXXXXXXXXX",
"category": "yyj",
"create_time": 1761595851,
"custom_name": "",
"icon": "smart/icon/ay1557826918513Qbvsz/f71cab2ccb9da24499679262ac581d2a.png",
"id": "XXXXXXXXXXXXXXXXXXXX",
"ip": "XXXXXXXXXXXXXXXXXXXX",
"is_online": true,
"lat": "0",
"local_key": "XXXXXXXXXXXXXXXXXXXX",
"lon": "0",
"model": "FJ6",
"name": "Alinea Smart",
"product_id": "zggqz0s1atd9qce4",
"product_name": "Klarstein Alinea Smart",
"sub": false,
"time_zone": "+01:00",
"update_time": 1769885707,
"uuid": "9299314c3a86927a"
}
],
"success": true,
"t": XXXXXXXXXXXXXXXXXXXX,
"tid": "XXXXXXXXXXXXXXXXXXXX"
}
{
"result": {
"properties": [
{
"code": "switch",
"custom_name": "",
"dp_id": 1,
"time": 1769885784974,
"type": "bool",
"value": false
},
{
"code": "light",
"custom_name": "",
"dp_id": 4,
"time": 1769885784995,
"type": "bool",
"value": false
},
{
"code": "fan_speed_enum",
"custom_name": "",
"dp_id": 10,
"time": 1769885784978,
"type": "enum",
"value": "off"
},
{
"code": "total_runtime",
"custom_name": "",
"dp_id": 12,
"time": 1769885706552,
"type": "value",
"value": 19
},
{
"code": "countdown",
"custom_name": "",
"dp_id": 13,
"time": 1769885785070,
"type": "value",
"value": 0
},
{
"code": "RGB",
"custom_name": "",
"dp_id": 101,
"time": 1769885708855,
"type": "value",
"value": 0
},
{
"code": "colour",
"custom_name": "",
"dp_id": 102,
"time": 1769885785076,
"type": "value",
"value": 0
},
{
"code": "luminance",
"custom_name": "",
"dp_id": 103,
"time": 1769885706540,
"type": "value",
"value": 3
}
]
},
"success": true,
"t": XXXXXXXXXXXXXXXXXXXX,
"tid": "XXXXXXXXXXXXXXXXXXXX"
}
{
"result": {
"category": "yyj",
"functions": [
{
"code": "switch",
"desc": "{}",
"name": "开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "light",
"desc": "{}",
"name": "灯光",
"type": "Boolean",
"values": "{}"
},
{
"code": "fan_speed_enum",
"desc": "{"range":["off","low","middle","high","strong"]}",
"name": "风速",
"type": "Enum",
"values": "{"range":["off","low","middle","high","strong"]}"
},
{
"code": "countdown",
"desc": "{"unit":"min","min":0,"max":100,"scale":0,"step":1}",
"name": "倒计时",
"type": "Integer",
"values": "{"unit":"min","min":0,"max":100,"scale":0,"step":1}"
}
],
"status": [
{
"code": "switch",
"name": "开关",
"type": "Boolean",
"values": "{}"
},
{
"code": "light",
"name": "灯光",
"type": "Boolean",
"values": "{}"
},
{
"code": "fan_speed_enum",
"name": "风速",
"type": "Enum",
"values": "{"range":["off","low","middle","high","strong"]}"
},
{
"code": "total_runtime",
"name": "累计工作时间",
"type": "Integer",
"values": "{"unit":"hour","min":0,"max":48,"scale":0,"step":1}"
},
{
"code": "countdown",
"name": "倒计时",
"type": "Integer",
"values": "{"unit":"min","min":0,"max":100,"scale":0,"step":1}"
}
]
},
"success": true,
"t": XXXXXXXXXXXXXXXXXXXX,
"tid": "XXXXXXXXXXXXXXXXXXXX"
}
{
"result": {
"category": "yyj",
"functions": [
{
"code": "switch",
"desc": "switch",
"name": "switch",
"type": "Boolean",
"values": "{}"
},
{
"code": "light",
"desc": "light",
"name": "light",
"type": "Boolean",
"values": "{}"
},
{
"code": "fan_speed_enum",
"desc": "fan speed enum",
"name": "fan speed enum",
"type": "Enum",
"values": "{"range":["off","low","middle","high","strong"]}"
},
{
"code": "countdown",
"desc": "countdown",
"name": "countdown",
"type": "Integer",
"values": "{"unit":"min","min":0,"max":100,"scale":0,"step":1}"
}
]
},
"success": true,
"t": XXXXXXXXXXXXXXXXXXXX,
"tid": "XXXXXXXXXXXXXXXXXXXX"
}