Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Feit garage light #2949

Closed

Conversation

rclarkmorrow
Copy link
Contributor

This adds a Feit model light. Oddly, it does not have a white temperature setting and has some entities that (I think) are not currently controllable by the integration. I spent a bit of time trying to make them work with text/select entities -- and they do work, but the integration doesn't recognize the translations so the UI experience would be terrible. I'm willing to put in the work there, but might value a tl;dr on the right ways to approach it as I am still learning the context of tuya-local as a whole. Might be able to do some fun stuff with the entities that store state as base64 binary encodings.

Anyhow, here's the product for reference:
https://www.amazon.com/dp/B0CPTJ3614?ref=ppx_yo2ov_dt_b_fed_asin_title&th=1

And the device control query response:

{
    "model": {
        "modelId": "dzovhw",
        "services": [
            {
                "actions": [],
                "code": "",
                "description": "",
                "events": [],
                "name": "默认服务",
                "properties": [
                    {
                        "abilityId": 20,
                        "accessMode": "rw",
                        "code": "switch_led",
                        "description": "",
                        "extensions": {
                            "iconName": "icon-dp_power",
                            "attribute": "519"
                        },
                        "name": "开关",
                        "typeSpec": {
                            "type": "bool"
                        }
                    },
                    {
                        "abilityId": 21,
                        "accessMode": "rw",
                        "code": "work_mode",
                        "description": "",
                        "extensions": {
                            "iconName": "icon-dp_mode",
                            "attribute": "512"
                        },
                        "name": "模式",
                        "typeSpec": {
                            "type": "enum",
                            "range": [
                                "white",
                                "colour",
                                "scene",
                                "music"
                            ]
                        }
                    },
                    {
                        "abilityId": 22,
                        "accessMode": "rw",
                        "code": "bright_value",
                        "description": "",
                        "extensions": {
                            "iconName": "icon-liangdu1",
                            "attribute": "518"
                        },
                        "name": "亮度值",
                        "typeSpec": {
                            "type": "value",
                            "max": 1000,
                            "min": 10,
                            "scale": 0,
                            "step": 1
                        }
                    },
                    {
                        "abilityId": 24,
                        "accessMode": "rw",
                        "code": "colour_data",
                        "description": "彩光颜色、饱和度、亮度调节",
                        "extensions": {
                            "iconName": "icon-yanse",
                            "attribute": "512"
                        },
                        "name": "彩光",
                        "typeSpec": {
                            "type": "string",
                            "maxlen": 255
                        }
                    },
                    {
                        "abilityId": 25,
                        "accessMode": "rw",
                        "code": "scene_data",
                        "description": "切换灯光情景效果",
                        "extensions": {
                            "iconName": "icon-shoucang",
                            "attribute": "512"
                        },
                        "name": "场景",
                        "typeSpec": {
                            "type": "string",
                            "maxlen": 255
                        }
                    },
                    {
                        "abilityId": 26,
                        "accessMode": "rw",
                        "code": "countdown",
                        "description": "",
                        "extensions": {
                            "iconName": "icon-a_nav_timer",
                            "attribute": "512"
                        },
                        "name": "倒计时剩余时间",
                        "typeSpec": {
                            "type": "value",
                            "max": 86400,
                            "min": 0,
                            "scale": 0,
                            "step": 1,
                            "unit": "s"
                        }
                    },
                    {
                        "abilityId": 27,
                        "accessMode": "wr",
                        "code": "music_data",
                        "description": "灯光随音乐节奏律动",
                        "extensions": {
                            "iconName": "icon-dp_mic",
                            "attribute": "128"
                        },
                        "name": "音乐灯",
                        "typeSpec": {
                            "type": "string",
                            "maxlen": 255
                        }
                    },
                    {
                        "abilityId": 28,
                        "accessMode": "wr",
                        "code": "control_data",
                        "description": "实时调节灯光",
                        "extensions": {
                            "iconName": "icon-dp_box2",
                            "attribute": "512"
                        },
                        "name": "调节",
                        "typeSpec": {
                            "type": "string",
                            "maxlen": 255
                        }
                    },
                    {
                        "abilityId": 30,
                        "accessMode": "rw",
                        "code": "rhythm_mode",
                        "description": "不同时间段的色温、亮度根据人体节律自动调整",
                        "extensions": {
                            "iconName": "icon-dp_time3",
                            "attribute": "512"
                        },
                        "name": "生物节律",
                        "typeSpec": {
                            "type": "raw",
                            "maxlen": 255
                        }
                    },
                    {
                        "abilityId": 31,
                        "accessMode": "rw",
                        "code": "sleep_mode",
                        "description": "温馨的灯光渐灭陪您进入甜美的梦乡",
                        "extensions": {
                            "iconName": "icon-dp_sleep",
                            "attribute": "512"
                        },
                        "name": "入睡",
                        "typeSpec": {
                            "type": "raw",
                            "maxlen": 255
                        }
                    },
                    {
                        "abilityId": 32,
                        "accessMode": "rw",
                        "code": "wakeup_mode",
                        "description": "柔和的灯光渐亮伴您迎接新的一天",
                        "extensions": {
                            "iconName": "icon-dp_sun",
                            "attribute": "512"
                        },
                        "name": "唤醒",
                        "typeSpec": {
                            "type": "raw",
                            "maxlen": 255
                        }
                    },
                    {
                        "abilityId": 33,
                        "accessMode": "rw",
                        "code": "power_memory",
                        "description": "用于设置断电再上电灯亮起的状态(不记忆APP关灯动作)",
                        "extensions": {
                            "iconName": "icon-dp_lightning",
                            "attribute": "640"
                        },
                        "name": "断电记忆",
                        "typeSpec": {
                            "type": "raw",
                            "maxlen": 255
                        }
                    },
                    {
                        "abilityId": 210,
                        "accessMode": "rw",
                        "code": "random_timing",
                        "description": "灯光随机亮灭模拟有人在家的场景",
                        "extensions": {
                            "iconName": "icon-dp_time3",
                            "attribute": "128"
                        },
                        "name": "随机定时",
                        "typeSpec": {
                            "type": "raw",
                            "maxlen": 255
                        }
                    }
                ]
            }
        ]
    }
}

@rclarkmorrow rclarkmorrow force-pushed the add-feit-smart-led-garage-light branch from 2b809ac to 7c2c36b Compare February 13, 2025 08:50
add Feit garage light

add Feit garage light
@rclarkmorrow rclarkmorrow force-pushed the add-feit-smart-led-garage-light branch from 7c2c36b to 3ab9ff1 Compare February 13, 2025 08:54
@rclarkmorrow
Copy link
Contributor Author

If I need to correct the YAML tests error, let me know but it doesn't appear related to this file.

@make-all
Copy link
Owner

Merged with rgbw_lightbulbv2.yaml, which also has brightness and color without color temperature.

@make-all make-all closed this Feb 15, 2025
make-all added a commit that referenced this pull request Feb 15, 2025
Add Feit garage light product.
Split out scene into a select entity with some basic choices,
and text entity for full control.

PR #2949
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants