dext0r / yandex_smart_home

Adds support for Yandex Smart Home (Alice voice assistant) and Marusia voice assistant into Home Assistant
https://docs.yaha-cloud.ru
MIT License
800 stars 114 forks source link

Удалённые устройства продолжают добавляться (опять) #374

Closed ClusterM closed 2 years ago

ClusterM commented 2 years ago

Я тут уже рассказывал об этой проблеме, она снова проявляется. Использую режим "include", и у меня там сейчас всего одно устройство:

image

Конфиг:

            {
                "entry_id": "ae08dd2668948437bb17ee0813a3fab5",
                "version": 1,
                "domain": "yandex_smart_home",
                "title": "Yandex Smart Home",
                "data": {
                    "devices_discovered": true,
                    "connection_type": "direct",
                    "pressure_unit": "mmHg",
                    "beta": false,
                    "notifier": [],
                    "yaml_config_hash": "154531e4438c166e5875246a7b26a663"
                },
                "options": {
                    "filter": {
                        "include_domains": [
                            "climate",
                            "cover",
                            "fan",
                            "humidifier",
                            "lock",
                            "media_player",
                            "sensor",
                            "switch",
                            "vacuum",
                            "water_heater"
                        ],
                        "include_entities": [
                            "light.arch"
                        ],
                        "exclude_entities": []
                    }
                },
                "pref_disable_new_entities": false,
                "pref_disable_polling": false,
                "source": "user",
                "unique_id": null,
                "disabled_by": null
            }

Удалил все устройства в Яндекс диалогах и даже отвязал Home Assistant:

image

Снова привязываю диалог к Home Assistant:

image

Добавлено 45 устройств!

image

Все эти устройства действительно есть в ответе сервера (отформатировано):

Лог ```JSON { "request_id":"87db905f-a135-4051-9a9d-fd76a4272d2c", "payload":{ "user_id":"7abdb8bd878e48f1a8dec4b93267bece", "devices":[ { "id":"media_player.philips_tv", "name":"Philips TV", "type":"devices.types.media_device.tv", "capabilities":[ { "type":"devices.capabilities.range", "retrievable":false, "reportable":false, "parameters":{ "instance":"volume", "random_access":false } }, { "type":"devices.capabilities.toggle", "retrievable":false, "reportable":false, "parameters":{ "instance":"mute" } }, { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"media_player.philips_tv" }, "room":"\u0413\u043e\u0441\u0442\u0438\u043d\u0430\u044f" }, { "id":"switch.skykettle_rk_g211", "name":"\u0427\u0430\u0439\u043d\u0438\u043a", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"RK-G211 | switch.skykettle_rk_g211", "manufacturer":"Redmond", "sw_version":"3.9" }, "room":"\u041a\u0443\u0445\u043d\u044f" }, { "id":"switch.skykettle_rk_g211_enable_sound", "name":"\u0427\u0430\u0439\u043d\u0438\u043a enable sound", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"RK-G211 | switch.skykettle_rk_g211_enable_sound", "manufacturer":"Redmond", "sw_version":"3.9" }, "room":"\u041a\u0443\u0445\u043d\u044f" }, { "id":"switch.skykettle_rk_g211_enable_sync_light", "name":"\u0427\u0430\u0439\u043d\u0438\u043a enable sync light", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"RK-G211 | switch.skykettle_rk_g211_enable_sync_light", "manufacturer":"Redmond", "sw_version":"3.9" }, "room":"\u041a\u0443\u0445\u043d\u044f" }, { "id":"switch.skykettle_rk_g211_enable_boil_light", "name":"\u0427\u0430\u0439\u043d\u0438\u043a enable boil light", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"RK-G211 | switch.skykettle_rk_g211_enable_boil_light", "manufacturer":"Redmond", "sw_version":"3.9" }, "room":"\u041a\u0443\u0445\u043d\u044f" }, { "id":"switch.pc", "name":"PC", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"switch.pc" } }, { "id":"switch.pass_all_traffic_thru_vpn", "name":"\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a -> VPN", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"switch.pass_all_traffic_thru_vpn" } }, { "id":"switch.pass_galaxy_note10_thru_vpn", "name":"\u0412\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a Galaxy Note10 -> VPN", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"switch.pass_galaxy_note10_thru_vpn" } }, { "id":"switch.pass_cluster_pc_thru_vpn", "name":"\u0412\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a Cluster's PC -> VPN", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"switch.pass_cluster_pc_thru_vpn" } }, { "id":"switch.pass_vpn_clients_thru_vpn", "name":"\u0412\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a VPN \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 -> VPN", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"switch.pass_vpn_clients_thru_vpn" } }, { "id":"switch.antifilter_network_bgp", "name":"antifilter.network BGP", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"switch.antifilter_network_bgp" } }, { "id":"water_heater.skykettle_rk_g211", "name":"\u0427\u0430\u0439\u043d\u0438\u043a", "type":"devices.types.cooking.kettle", "capabilities":[ { "type":"devices.capabilities.range", "retrievable":true, "reportable":false, "parameters":{ "instance":"temperature", "random_access":true, "range":{ "min":25, "max":100, "precision":0.5 }, "unit":"unit.temperature.celsius" } }, { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"temperature", "unit":"unit.temperature.celsius" } } ], "device_info":{ "model":"RK-G211 | water_heater.skykettle_rk_g211", "manufacturer":"Redmond", "sw_version":"3.9" }, "room":"\u041a\u0443\u0445\u043d\u044f" }, { "id":"light.arch", "name":"\u0410\u0440\u043a\u0430", "type":"devices.types.light", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"key5nck4tavy43jp | light.arch", "manufacturer":"Unknown", "sw_version":"3.3" }, "room":"\u041a\u0443\u0445\u043d\u044f" }, { "id":"switch.bathroom_fan", "name":"\u0412\u0435\u043d\u0442\u0438\u043b\u044f\u0446\u0438\u044f", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"keya4gvchmtapm8n | switch.bathroom_fan", "manufacturer":"Unknown", "sw_version":"3.3" }, "room":"\u0412\u0430\u043d\u043d\u0430\u044f" }, { "id":"switch.table_outlet_1", "name":"\u041f\u0430\u044f\u043b\u044c\u043d\u044b\u0439 \u0444\u0435\u043d", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"voltage", "unit":"unit.volt" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"power", "unit":"unit.watt" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"amperage", "unit":"unit.ampere" } } ], "device_info":{ "model":"7hBwPPNdDP1xHrWv | switch.table_outlet_1", "manufacturer":"Unknown", "sw_version":"3.3" }, "room":"\u0413\u043e\u0441\u0442\u0438\u043d\u0430\u044f" }, { "id":"switch.table_outlet_2", "name":"\u0423\u043b\u044c\u0442\u0440\u0430\u0437\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0432\u0430\u043d\u043d\u0430", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"voltage", "unit":"unit.volt" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"power", "unit":"unit.watt" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"amperage", "unit":"unit.ampere" } } ], "device_info":{ "model":"7hBwPPNdDP1xHrWv | switch.table_outlet_2", "manufacturer":"Unknown", "sw_version":"3.3" }, "room":"\u0413\u043e\u0441\u0442\u0438\u043d\u0430\u044f" }, { "id":"switch.table_outlet_3", "name":"\u0420\u043e\u0437\u0435\u0442\u043a\u0430 3", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"voltage", "unit":"unit.volt" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"power", "unit":"unit.watt" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"amperage", "unit":"unit.ampere" } } ], "device_info":{ "model":"7hBwPPNdDP1xHrWv | switch.table_outlet_3", "manufacturer":"Unknown", "sw_version":"3.3" }, "room":"\u0413\u043e\u0441\u0442\u0438\u043d\u0430\u044f" }, { "id":"switch.table_outlet_4", "name":"\u0420\u043e\u0437\u0435\u0442\u043a\u0430 4", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"voltage", "unit":"unit.volt" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"power", "unit":"unit.watt" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"amperage", "unit":"unit.ampere" } } ], "device_info":{ "model":"7hBwPPNdDP1xHrWv | switch.table_outlet_4", "manufacturer":"Unknown", "sw_version":"3.3" }, "room":"\u0413\u043e\u0441\u0442\u0438\u043d\u0430\u044f" }, { "id":"switch.pc_old", "name":"PC old", "type":"devices.types.switch", "capabilities":[ { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"switch.pc_old" } }, { "id":"sensor.galaxy_note10_battery_level", "name":"\u0417\u0430\u0440\u044f\u0434 \u0431\u0430\u0442\u0430\u0440\u0435\u0438", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"SM-N970F | sensor.galaxy_note10_battery_level", "manufacturer":"samsung", "sw_version":"31" } }, { "id":"sensor.galaxy_note10_battery_temperature", "name":"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"temperature", "unit":"unit.temperature.celsius" } } ], "device_info":{ "model":"SM-N970F | sensor.galaxy_note10_battery_temperature", "manufacturer":"samsung", "sw_version":"31" } }, { "id":"sensor.galaxy_watch4_battery_level", "name":"\u0417\u0430\u0440\u044f\u0434 \u0431\u0430\u0442\u0430\u0440\u0435\u0438", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"SM-R870 | sensor.galaxy_watch4_battery_level", "manufacturer":"samsung", "sw_version":"30" } }, { "id":"sensor.galaxy_watch4_battery_temperature", "name":"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"temperature", "unit":"unit.temperature.celsius" } } ], "device_info":{ "model":"SM-R870 | sensor.galaxy_watch4_battery_temperature", "manufacturer":"samsung", "sw_version":"30" } }, { "id":"sensor.galaxy_tab_s5e_battery_level", "name":"\u0417\u0430\u0440\u044f\u0434 \u0431\u0430\u0442\u0430\u0440\u0435\u0438", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"SM-T720 | sensor.galaxy_tab_s5e_battery_level", "manufacturer":"samsung", "sw_version":"30" } }, { "id":"sensor.galaxy_tab_s5e_battery_temperature", "name":"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"temperature", "unit":"unit.temperature.celsius" } } ], "device_info":{ "model":"SM-T720 | sensor.galaxy_tab_s5e_battery_temperature", "manufacturer":"samsung", "sw_version":"30" } }, { "id":"sensor.bedroom_buttons_1_battery", "name":"\u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u0432 \u0432\u0430\u043d\u043d\u043e\u0439 \u043d\u0430 \u0434\u0432\u0435\u0440\u0438 battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Wireless switch with 3 buttons (TS0043) | sensor.bedroom_buttons_1_battery", "manufacturer":"TuYa" }, "room":"\u0412\u0430\u043d\u043d\u0430\u044f" }, { "id":"sensor.buttons_bedroom_2_battery", "name":"\u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u0432 \u0441\u043f\u0430\u043b\u044c\u043d\u0435 \u0443 \u043a\u0440\u043e\u0432\u0430\u0442\u0438 battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Wireless switch with 3 buttons (TS0043) | sensor.buttons_bedroom_2_battery", "manufacturer":"TuYa" }, "room":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f" }, { "id":"sensor.portable_buttons_1_battery", "name":"\u041f\u0443\u043b\u044c\u0442 battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Wireless switch with 4 buttons (TS0044) | sensor.portable_buttons_1_battery", "manufacturer":"TuYa" }, "room":"\u041f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0435" }, { "id":"sensor.air_quality_bedroom_temperature", "name":"\u0412\u043e\u0437\u0434\u0443\u0445 \u0432 \u0441\u043f\u0430\u043b\u044c\u043d\u0435 - \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"co2_level", "unit":"unit.ppm" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"humidity", "unit":"unit.percent" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"tvoc", "unit":"unit.density.mcg_m3" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"temperature", "unit":"unit.temperature.celsius" } } ], "device_info":{ "model":"Air quality sensor (TS0601_air_quality_sensor) | sensor.air_quality_bedroom_temperature", "manufacturer":"TuYa" }, "room":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f" }, { "id":"sensor.air_quality_bedroom_humidity", "name":"\u0412\u043e\u0437\u0434\u0443\u0445 \u0432 \u0441\u043f\u0430\u043b\u044c\u043d\u0435 - \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"humidity", "unit":"unit.percent" } } ], "device_info":{ "model":"Air quality sensor (TS0601_air_quality_sensor) | sensor.air_quality_bedroom_humidity", "manufacturer":"TuYa" }, "room":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f" }, { "id":"sensor.air_quality_bedroom_co2", "name":"\u0412\u043e\u0437\u0434\u0443\u0445 \u0432 \u0441\u043f\u0430\u043b\u044c\u043d\u0435 - CO\u2082", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"co2_level", "unit":"unit.ppm" } } ], "device_info":{ "model":"Air quality sensor (TS0601_air_quality_sensor) | sensor.air_quality_bedroom_co2", "manufacturer":"TuYa" }, "room":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f" }, { "id":"sensor.air_quality_bathroom_temperature", "name":"\u0412\u043e\u0437\u0434\u0443\u0445 \u0432 \u0432\u0430\u043d\u043d\u043e\u0439 - \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"co2_level", "unit":"unit.ppm" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"humidity", "unit":"unit.percent" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"tvoc", "unit":"unit.density.mcg_m3" } }, { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"temperature", "unit":"unit.temperature.celsius" } } ], "device_info":{ "model":"Air quality sensor (TS0601_air_quality_sensor) | sensor.air_quality_bathroom_temperature", "manufacturer":"TuYa" }, "room":"\u0412\u0430\u043d\u043d\u0430\u044f" }, { "id":"sensor.air_quality_bathroom_humidity", "name":"\u0412\u043e\u0437\u0434\u0443\u0445 \u0432 \u0432\u0430\u043d\u043d\u043e\u0439 - \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u044c", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"humidity", "unit":"unit.percent" } } ], "device_info":{ "model":"Air quality sensor (TS0601_air_quality_sensor) | sensor.air_quality_bathroom_humidity", "manufacturer":"TuYa" }, "room":"\u0412\u0430\u043d\u043d\u0430\u044f" }, { "id":"sensor.air_quality_bathroom_co2", "name":"\u0412\u043e\u0437\u0434\u0443\u0445 \u0432 \u0432\u0430\u043d\u043d\u043e\u0439 - CO\u2082", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"co2_level", "unit":"unit.ppm" } } ], "device_info":{ "model":"Air quality sensor (TS0601_air_quality_sensor) | sensor.air_quality_bathroom_co2", "manufacturer":"TuYa" }, "room":"\u0412\u0430\u043d\u043d\u0430\u044f" }, { "id":"sensor.water_toilet_battery", "name":"\u0412\u043e\u0434\u0430 \u0432 \u0431\u0430\u0447\u043a\u0435 \u0443\u043d\u0438\u0442\u0430\u0437\u0430 battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Water leak detector (TS0207_water_leak_detector) | sensor.water_toilet_battery", "manufacturer":"TuYa" }, "room":"\u0412\u0430\u043d\u043d\u0430\u044f" }, { "id":"sensor.door_bathroom_battery", "name":"\u0414\u0432\u0435\u0440\u044c \u0432\u0430\u043d\u043d\u043e\u0439 battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Door sensor (MCLH-04) | sensor.door_bathroom_battery", "manufacturer":"LifeControl", "sw_version":"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000" }, "room":"\u0412\u0430\u043d\u043d\u0430\u044f" }, { "id":"sensor.buttons_bathroom_battery", "name":"\u041a\u043d\u043e\u043f\u043a\u0438 \u0432 \u0432\u0430\u043d\u043d\u043e\u0439 battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Aqara D1 double key wireless wall switch (WXKG07LM) | sensor.buttons_bathroom_battery", "manufacturer":"Xiaomi", "sw_version":"3000-0001" } }, { "id":"sensor.buttons_bathroom_voltage", "name":"\u041a\u043d\u043e\u043f\u043a\u0438 \u0432 \u0432\u0430\u043d\u043d\u043e\u0439 voltage", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"voltage", "unit":"unit.volt" } } ], "device_info":{ "model":"Aqara D1 double key wireless wall switch (WXKG07LM) | sensor.buttons_bathroom_voltage", "manufacturer":"Xiaomi", "sw_version":"3000-0001" } }, { "id":"sensor.doorbell_button_battery", "name":"\u0414\u0432\u0435\u0440\u043d\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a - \u043a\u043d\u043e\u043f\u043a\u0430 battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Button (TS0218) | sensor.doorbell_button_battery", "manufacturer":"CR Smart Home" } }, { "id":"sensor.buttons_six_battery", "name":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f - \u0448\u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043e\u043a battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Aqara Opple switch 3 bands (WXCJKG13LM) | sensor.buttons_six_battery", "manufacturer":"Xiaomi", "sw_version":"2019\u0000www." }, "room":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f" }, { "id":"sensor.buttons_six_2_battery", "name":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f - \u0448\u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043e\u043a 2_battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Aqara Opple switch 3 bands (WXCJKG13LM) | sensor.buttons_six_2_battery", "manufacturer":"Xiaomi", "sw_version":"2019\u0000www." }, "room":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f" }, { "id":"sensor.water_bathroom_floor_battery", "name":"water_bathroom_floor_battery", "type":"devices.types.sensor", "capabilities":[ ], "properties":[ { "type":"devices.properties.float", "retrievable":true, "reportable":false, "parameters":{ "instance":"battery_level", "unit":"unit.percent" } } ], "device_info":{ "model":"Water leak detector (TS0207_water_leak_detector) | sensor.water_bathroom_floor_battery", "manufacturer":"TuYa" } }, { "id":"media_player.yandex_clock", "name":"\u0421\u0442\u0430\u043d\u0446\u0438\u044f \u0432 \u0432\u0430\u043d\u043d\u043e\u0439", "type":"devices.types.media_device.tv", "capabilities":[ { "type":"devices.capabilities.mode", "retrievable":true, "reportable":false, "parameters":{ "instance":"input_source", "modes":[ { "value":"one" } ] } }, { "type":"devices.capabilities.range", "retrievable":true, "reportable":false, "parameters":{ "instance":"volume", "random_access":true, "range":{ "min":0, "max":100, "precision":1 } } }, { "type":"devices.capabilities.range", "retrievable":true, "reportable":false, "parameters":{ "instance":"channel", "random_access":true, "range":{ "min":0, "max":999, "precision":1 } } }, { "type":"devices.capabilities.toggle", "retrievable":true, "reportable":false, "parameters":{ "instance":"mute" } }, { "type":"devices.capabilities.toggle", "retrievable":true, "reportable":false, "parameters":{ "instance":"pause" } }, { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"\u0421\u0442\u0430\u043d\u0446\u0438\u044f \u041c\u0438\u043d\u0438 2 | media_player.yandex_clock", "manufacturer":"\u042f\u043d\u0434\u0435\u043a\u0441", "sw_version":"0.99.1.2.1195680191.20220126.47" }, "room":"\u0412\u0430\u043d\u043d\u0430\u044f" }, { "id":"media_player.yandex_mini", "name":"\u0421\u0442\u0430\u043d\u0446\u0438\u044f \u0432 \u0433\u043e\u0441\u0442\u0438\u043d\u043e\u0439", "type":"devices.types.media_device.tv", "capabilities":[ { "type":"devices.capabilities.mode", "retrievable":true, "reportable":false, "parameters":{ "instance":"input_source", "modes":[ { "value":"one" } ] } }, { "type":"devices.capabilities.range", "retrievable":true, "reportable":false, "parameters":{ "instance":"volume", "random_access":true, "range":{ "min":0, "max":100, "precision":1 } } }, { "type":"devices.capabilities.range", "retrievable":true, "reportable":false, "parameters":{ "instance":"channel", "random_access":true, "range":{ "min":0, "max":999, "precision":1 } } }, { "type":"devices.capabilities.toggle", "retrievable":true, "reportable":false, "parameters":{ "instance":"mute" } }, { "type":"devices.capabilities.toggle", "retrievable":true, "reportable":false, "parameters":{ "instance":"pause" } }, { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"\u0421\u0442\u0430\u043d\u0446\u0438\u044f \u041c\u0438\u043d\u0438 | media_player.yandex_mini", "manufacturer":"\u042f\u043d\u0434\u0435\u043a\u0441", "sw_version":"1.110.4.2.1241113275.20220311" }, "room":"\u0413\u043e\u0441\u0442\u0438\u043d\u0430\u044f" }, { "id":"media_player.yandex_lite", "name":"\u0421\u0442\u0430\u043d\u0446\u0438\u044f \u0432 \u0441\u043f\u0430\u043b\u044c\u043d\u0435", "type":"devices.types.media_device.tv", "capabilities":[ { "type":"devices.capabilities.mode", "retrievable":true, "reportable":false, "parameters":{ "instance":"input_source", "modes":[ { "value":"one" } ] } }, { "type":"devices.capabilities.range", "retrievable":true, "reportable":false, "parameters":{ "instance":"volume", "random_access":true, "range":{ "min":0, "max":100, "precision":1 } } }, { "type":"devices.capabilities.range", "retrievable":true, "reportable":false, "parameters":{ "instance":"channel", "random_access":true, "range":{ "min":0, "max":999, "precision":1 } } }, { "type":"devices.capabilities.toggle", "retrievable":true, "reportable":false, "parameters":{ "instance":"mute" } }, { "type":"devices.capabilities.toggle", "retrievable":true, "reportable":false, "parameters":{ "instance":"pause" } }, { "type":"devices.capabilities.on_off", "retrievable":true, "reportable":false } ], "properties":[ ], "device_info":{ "model":"\u0421\u0442\u0430\u043d\u0446\u0438\u044f \u041b\u0430\u0439\u0442 | media_player.yandex_lite", "manufacturer":"\u042f\u043d\u0434\u0435\u043a\u0441", "sw_version":"0.111.1.2.1248898317.20220318.57" }, "room":"\u0421\u043f\u0430\u043b\u044c\u043d\u044f" } ] } } ```

upd: Если из доменов выбрать только light: image

            {
                "entry_id": "c3a2c6e62221e58f8c7a22a25bb8c38a",
                "version": 1,
                "domain": "yandex_smart_home",
                "title": "Yandex Smart Home",
                "data": {
                    "devices_discovered": true,
                    "connection_type": "direct",
                    "pressure_unit": "mmHg",
                    "beta": false,
                    "notifier": [],
                    "yaml_config_hash": "9f5d517e4d35af8d4b06c8fac5e8748b"
                },
                "options": {
                    "filter": {
                        "include_domains": [],
                        "include_entities": [
                            "light.arch"
                        ],
                        "exclude_entities": []
                    }
                },
                "pref_disable_new_entities": false,
                "pref_disable_polling": false,
                "source": "user",
                "unique_id": null,
                "disabled_by": null
            }

То лишних устройств нет:

{
   "request_id":"5e331ded-4370-4cd9-bc0f-aa3fdffa4f5d",
   "payload":{
      "user_id":"7abdb8bd878e48f1a8dec4b93267bece",
      "devices":[
         {
            "id":"light.arch",
            "name":"\u0410\u0440\u043a\u0430",
            "type":"devices.types.light",
            "capabilities":[
               {
                  "type":"devices.capabilities.on_off",
                  "retrievable":true,
                  "reportable":false
               }
            ],
            "properties":[

            ],
            "device_info":{
               "model":"key5nck4tavy43jp | light.arch",
               "manufacturer":"Unknown",
               "sw_version":"3.3"
            },
            "room":"\u041a\u0443\u0445\u043d\u044f"
         }
      ]
   }
}

Похоже, что в режиме "include" если не указано ни одно устройство из домена, то добавляются все устройства из домена. Разве это корректно?

dext0r commented 2 years ago

Похоже, что в режиме "include" если не указано ни одно устройство из домена, то добавляются все устройства из домена. Разве это корректно?

Да, и об этом написано в описании: Screenshot 2022-03-31 at 16 28 06

Эта логика взята из компонента Home Kit: Screenshot 2022-03-31 at 16 30 10