dext0r / yandex_smart_home

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

Switch не поддерживает current #517

Closed Antonzlo closed 6 months ago

Antonzlo commented 6 months ago
switch.obogrevatel:
      name: Обогреватель
      properties:
        - type: voltage
          entity: sensor.napriazhenie_obogrevatel
        - type: power
          entity: sensor.moshchnost_obogrevatel
        - type: current
          entity: sensor.tok_obogrevatel

Выдает

Invalid config for 'yandex_smart_home' at configuration.yaml, line 54: Property type 'current' is not supported. See valid types at https://yandex.ru/dev/dialogs/smart-home/doc/concepts/float-instance.html and https://yandex.ru/dev/dialogs/smart-home/doc/concepts/event-instance.html for dictionary value 'yandex_smart_home->entity_config->switch.obogrevatel->properties->2->type', got 'current'

Если убрать ток, напряжение и мощность отображаются корректно

dext0r commented 6 months ago

Сообщение об ошибке содержит ссылку на все поддерживаемые типы. Для тока это - amperage

Antonzlo commented 6 months ago

Спасибо, получается в датчиках используется внутренние типы ХА, а тут из Яндекс?

dext0r commented 6 months ago

Да. Подробнее в документации: https://docs.yaha-cloud.ru/v0.6.x/devices/sensor/#properties