|
39 | 39 | "camera_pan": "devices.capabilities.range", |
40 | 40 | "camera_tilt": "devices.capabilities.range", |
41 | 41 | "get_stream": "devices.capabilities.video_stream", |
42 | | - # "devices.types.remote_car.seat" |
| 42 | + # devices.types.remote_car.seat |
43 | 43 | "heating_mode": "devices.capabilities.range", |
| 44 | + # devices.types.smart_speaker.yandex.station.orion |
| 45 | + "led_array": "devices.capabilities.led_mask", |
44 | 46 | # don't work |
45 | 47 | "hsv": "devices.capabilities.color_setting", |
46 | 48 | "rgb": "devices.capabilities.color_setting", |
@@ -398,6 +400,8 @@ async def device_action(self, device: dict, instance: str, value, relative=False |
398 | 400 | self.dispatch_update(device["id"], device) |
399 | 401 |
|
400 | 402 | async def get_device_action(self, device: dict, instance: str, value) -> list[dict]: |
| 403 | + _LOGGER.debug(f"Device action: {instance}={value}") |
| 404 | + |
401 | 405 | action = { |
402 | 406 | "state": {"instance": instance, "value": value}, |
403 | 407 | "type": IOT_TYPES[instance], |
@@ -437,6 +441,8 @@ async def device_actions(self, device: dict, **kwargs): |
437 | 441 | self.dispatch_update(device["id"], device) |
438 | 442 |
|
439 | 443 | async def device_color(self, device: dict, **kwargs): |
| 444 | + _LOGGER.debug(f"Device color: {kwargs}") |
| 445 | + |
440 | 446 | r = await self.session.post( |
441 | 447 | f"https://iot.quasar.yandex.ru/m/v3/user/custom/group/color/apply", |
442 | 448 | json={"device_ids": [device['id']], **kwargs}, |
|
0 commit comments