This creates a new device that wasn't recognised and i tested fully creating a local .yaml file on the divices folder via Studio Code Server. I took inspiration from the nedis_ptc_fan_heater.yaml, but that device has much more functions and dps not marked as optionals, so it wouldn't recognise my device. That Fan heater has a great feature that use constraints the hvac_mode with preset_mode, so the fan only option that is reported as preset, now works as a hvac_mode. I also improved the code by adding a "null" dps_val on the hvac_mode conditions, using the documentation of the integration, which previously reported momentarily an error when selecting this "custom" hvac_mode. I also found an error on the nedis_ptc .yaml timer values, that i intend to correct in another pull request.
This is the QueryThingsDataModel API result for your inspection:
This creates a new device that wasn't recognised and i tested fully creating a local .yaml file on the divices folder via Studio Code Server. I took inspiration from the nedis_ptc_fan_heater.yaml, but that device has much more functions and dps not marked as optionals, so it wouldn't recognise my device. That Fan heater has a great feature that use constraints the hvac_mode with preset_mode, so the fan only option that is reported as preset, now works as a hvac_mode. I also improved the code by adding a "null" dps_val on the hvac_mode conditions, using the documentation of the integration, which previously reported momentarily an error when selecting this "custom" hvac_mode. I also found an error on the nedis_ptc .yaml timer values, that i intend to correct in another pull request.
This is the QueryThingsDataModel API result for your inspection:
"model": "{\"modelId\":\"e6kcdc\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"switch\",\"description\":\"\",\"name\":\"开关\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":5,\"accessMode\":\"rw\",\"code\":\"level\",\"description\":\"\",\"name\":\"档位\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"level_1\",\"level_2\",\"level_3\"]}},{\"abilityId\":7,\"accessMode\":\"rw\",\"code\":\"child_lock\",\"description\":\"\",\"name\":\"童锁\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":8,\"accessMode\":\"rw\",\"code\":\"shake\",\"description\":\"\",\"name\":\"摇头\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":19,\"accessMode\":\"rw\",\"code\":\"countdown_set\",\"description\":\"\",\"name\":\"倒计时\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"cancel\",\"1h\",\"2h\",\"4h\",\"8H\"]}},{\"abilityId\":20,\"accessMode\":\"ro\",\"code\":\"countdown_left\",\"description\":\"\",\"name\":\"倒计时剩余时间\",\"typeSpec\":{\"type\":\"value\",\"max\":480,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"min\"}}]}]}" },
Thanks