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

Не работает режим "Закат" в сценариях #542

Open
ololonly opened this issue Aug 6, 2024 · 5 comments
Open
Labels
wait for yandex wontfix This will not be worked on

Comments

@ololonly
Copy link

ololonly commented Aug 6, 2024

Использую устройства Yeelight, конкретно - лампочки yeelight colora 1se и ленту yeelight strip 1s

Создаю вот такой сценарий:

photo_2024-08-06_14-26-45
photo_2024-08-06_14-26-48

Поведение:

Происходит только 1 тик снижения яркости.

@dext0r
Copy link
Owner

dext0r commented Nov 8, 2024

Воспроизвести не удается. У меня при таком сценарии УДЯ периодически присылает команды на изменение яркости:
Screenshot 2024-11-08 at 08 45 58

  1. Перезапустите HA
  2. Включить отладку интеграции на странице Настройки - Устройства и службы - Интеграции - Yandex Smart Home
  3. Запустите сценарий
  4. Подождите 5 минут
  5. Остановится отладку и приложите итоговый лог сюда

@dext0r dext0r added the question Further information is requested label Nov 8, 2024
@ololonly
Copy link
Author

Ну кстати стало чуть лучше, если до этого только 1 команда изменения яркости проходила, то сейчас аж до 29% добралось.
Но непонятно, почему до конца не дошло.

2024-11-11 12:59:03.833 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.color_setting', 'state': {'instance': 'rgb', 'value': 16729907}}, {'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 80}}]}]}})
2024-11-11 12:59:03.846 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "c640ba9c-945b-4003-87c5-cb054a29ad55", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "action_result": {"status": "DONE"}}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 12:59:03.852 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 12:59:03.857 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 12:59:04.854 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319144.85394, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 80}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}, {"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 78}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 12:59:05.896 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.on_off', 'state': {'instance': 'on', 'value': True}}]}]}})
2024-11-11 12:59:05.900 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "e0b9f89e-13b6-4475-8473-ecbdd38aecc4", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.on_off", "state": {"instance": "on", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 12:59:16.391 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 78}}]}]}})
2024-11-11 12:59:16.401 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "dda0981c-d415-4370-a735-f4e8be700609", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 12:59:16.407 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 12:59:17.409 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319157.40877, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 78}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 12:59:26.956 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 75}}]}]}})
2024-11-11 12:59:26.963 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "a35ac8af-c20c-45ca-849c-26e9fd5480a1", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 12:59:26.973 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 12:59:27.974 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319167.9740508, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 74}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 12:59:37.516 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 72}}]}]}})
2024-11-11 12:59:37.522 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "7e4da0bd-05e2-49b1-9d8b-851541c541df", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 12:59:37.531 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 12:59:38.532 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319178.5321643, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 72}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 12:59:48.193 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 70}}]}]}})
2024-11-11 12:59:48.201 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "43164fb5-3ac5-4186-8b22-d3b584249c34", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 12:59:48.209 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 12:59:49.210 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319189.2099295, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 69}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 12:59:58.728 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 67}}]}]}})
2024-11-11 12:59:58.738 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "9b95ac75-434d-4fd4-a8d4-5133fa2591f7", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 12:59:58.748 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 12:59:59.751 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319199.7511296, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 67}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:00:19.371 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 64}}]}]}})
2024-11-11 13:00:19.375 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "829c1c49-2ed5-4d2d-9c06-77382eff7028", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:00:19.383 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:00:20.384 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319220.3845708, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 63}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:00:29.935 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 61}}]}]}})
2024-11-11 13:00:29.943 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "94f8fa00-2c03-436b-a913-d5820f4f687a", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:00:29.952 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:00:30.954 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319230.9541936, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 61}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:00:40.445 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 59}}]}]}})
2024-11-11 13:00:40.454 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "0fd042d7-94fc-4640-a064-1e4bc55335fa", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:00:40.463 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:00:41.464 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319241.4646192, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 58}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:00:51.052 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 56}}]}]}})
2024-11-11 13:00:51.063 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "3b83b7cd-4afc-4c70-97cc-5b3647de123c", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:00:51.070 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:00:52.071 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319252.071359, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 56}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:01:01.615 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 53}}]}]}})
2024-11-11 13:01:01.625 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "f610446b-1006-4f8d-96b5-a8601a020f8c", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:01:01.633 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:01:02.634 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319262.6340897, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 52}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:01:12.156 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 51}}]}]}})
2024-11-11 13:01:12.166 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "803e26ee-ecc3-40d1-aa05-813c6a71b64d", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:01:12.173 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:01:13.175 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319273.1747506, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 50}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:01:22.694 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 48}}]}]}})
2024-11-11 13:01:22.703 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "8e9784d6-ee00-4eaf-84ec-aefdda4aca36", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:01:22.715 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:01:23.717 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319283.7171006, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 47}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:01:33.192 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 45}}]}]}})
2024-11-11 13:01:33.201 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "1c96b3e3-b0c2-495d-ae33-05b635197879", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:01:33.211 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:01:34.213 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319294.213271, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 45}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:01:43.739 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 42}}]}]}})
2024-11-11 13:01:43.746 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "7c815448-2c62-48f8-92db-9e2e564fb37c", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:01:54.302 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 40}}]}]}})
2024-11-11 13:01:54.309 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "a2201955-f2ec-48ca-8752-4741827adb3f", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:01:54.319 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:01:55.320 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319315.3205323, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 40}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:02:04.783 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 37}}]}]}})
2024-11-11 13:02:04.792 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "a65ca1ff-b8bb-486c-8d6d-aecd2d5f9562", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:02:04.800 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:02:05.801 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319325.8015914, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 36}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:02:15.230 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 34}}]}]}})
2024-11-11 13:02:15.238 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "f239d706-709c-4dc8-8986-c325b3bd0499", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:02:15.245 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:02:16.246 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319336.2466607, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 34}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:02:25.754 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Request: /user/devices/action (message: {'payload': {'devices': [{'id': 'light.yeelight_kitchen', 'capabilities': [{'type': 'devices.capabilities.range', 'state': {'instance': 'brightness', 'value': 31}}]}]}})
2024-11-11 13:02:25.762 DEBUG (MainThread) [custom_components.yandex_smart_home.cloud] Response: {"request_id": "e59c1da8-2cac-4f4d-8936-fc7c02939d25", "payload": {"devices": [{"id": "light.yeelight_kitchen", "capabilities": [{"type": "devices.capabilities.range", "state": {"instance": "brightness", "action_result": {"status": "DONE"}}}]}]}}
2024-11-11 13:02:25.771 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.yeelight_kitchen: on
2024-11-11 13:02:26.772 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319346.772544, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.color_setting", "state": {"instance": "rgb", "value": 16729907}}, {"type": "devices.capabilities.range", "state": {"instance": "brightness", "value": 29}}, {"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": true}}], "id": "light.yeelight_kitchen"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:03:16.418 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.bath_mirror_backlight_switch_1: off
2024-11-11 13:03:17.420 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319397.4206505, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": false}}], "id": "light.bath_mirror_backlight_switch_1"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})
2024-11-11 13:03:28.785 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Scheduling report state to Yandex for light.bath_backlight_switch: off
2024-11-11 13:03:29.786 DEBUG (MainThread) [custom_components.yandex_smart_home.notifier] Request: https://yaha-cloud.ru/api/home_assistant/v1/callback/state (POST data: {"ts": 1731319409.7862282, "payload": {"devices": [{"properties": [], "capabilities": [{"type": "devices.capabilities.on_off", "state": {"instance": "on", "value": false}}], "id": "light.bath_backlight_switch"}], "user_id": "y3Lh82YxGZzWAPAJu3FvrA"}})

Я отфильтровал логи по конкретному компоненту light.yeelight_kitchen, но в конце оставил запись лога по light.bath_backlight_switch, после которой перестала снижаться яркость у лампочки. Но эти девайсы никак не связаны и даже не включены в одну группу освещения.

Пробовал запустить сценарий второй раз, также дошел только до 29%

@dext0r dext0r removed the question Further information is requested label Nov 14, 2024
@dext0r
Copy link
Owner

dext0r commented Nov 15, 2024

В 13:02:25.754 от УДЯ пришла команда на установку яркости в 31%
В 13:02:26.772 в сторону УДЯ отправляется состояние яркости в 29%

Из-за этого различия сценарий прерывается, так как УДЯ считает, что произошло ручное вмешательство в яркость.

Если задать в HA яркость в 31%, какая она будет по факту?

@ololonly
Copy link
Author

В state устройства значения яркости хранятся не в %, а в числовом значении 0-255
Получается тут проблема в округлениях, возможно в самой интеграции
В HA лампочки заведены через интеграцию Yeelight

Сейчас поведение такое:

Если задать яркость 31%, без разницы в HA или в Яндексе, в HA отображается как 30%, в Яндексе как 29%. При этом фактическое значение в стейте brightness: 76. 76/255 = 0.29803
Насчет отображения значения все понятно, HA округляет математически, Яндекс до целого вниз.
Но почему для значения 31% передается 76, и в какой момент оно высчитывается - непонятно. Возможно баг в интеграции Yeelight

@dext0r
Copy link
Owner

dext0r commented Nov 19, 2024

Возможно баг в интеграции Yeelight

Возможно. И я не вижу способа как на стороне компонента можно это исправить/обойти.

Я передал информацию об этом случае в техподдержку. Нужно ждать пока Яндекс поправит отключение режима Закат при незначительном отклонении яркости между УДЯ и навыком.

@dext0r dext0r added wontfix This will not be worked on wait for yandex labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wait for yandex wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants