munrexio / yandex2mqtt

Bridge from Yandex Smart Home to MQTT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Неправильно прибавляет звук на ТВ

vring0 opened this issue · comments

Добрый день! Спасибо за разработку модуля. У меня возникла проблема с параметром громкости для ТВ. Когда я говорю Алисе :"Прибавь громкость на телевизоре", то звук увеличивается только на один пункт и сбрасывается до параметра state.

`{
name: 'Телевизор',
room: 'Комната',
type: 'devices.types.media_device.tv',
mqtt: [
{
type: 'on',
set: '/smarthome/out/Tv_On_Mqtt',
stat: '/smarthome/out/Tv_On_Mqtt'
},
{
type: 'mute',
set: '/smarthome/subin/myKodi_mute',
stat: '/smarthome/in/myKodi_mute'
},
{
type: 'volume',
set: '/smarthome/subin/myKodi_volume',
stat: '/smarthome/out/myKodi_volume'
},
{
type: 'channel',
set: '/smarthome/subin/myKodi_channel',
stat: '/smarthome/out/myKodi_channel'
},
],
capabilities: [
{
type: 'devices.capabilities.on_off',
retrievable: true,
state: {
instance: 'on',
value: true
}
},
{
type: 'devices.capabilities.toggle',
retrievable: true,
parameters: {
instance: 'mute'
},
state: {
instance: 'mute',
value: true
},
},

            {
                type: 'devices.capabilities.range',
                retrievable: true,

                parameters: {
                    instance: 'channel',
                },
                state: {
                    instance: 'channel',
                    value: 1,
                },
            },
            {
                type: 'devices.capabilities.range',
                retrievable: true,

                parameters: {
                    instance: 'volume',
                    range: {
                        min: 0,
                        max: 100,
                        precision: 20,
                    }
                },
                state: {
                    instance: 'volume',
                    value: 10,
                },
            },
        ]
    },`