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

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

Open
vring0 opened this issue Sep 10, 2019 · 0 comments
Open

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

vring0 opened this issue Sep 10, 2019 · 0 comments

Comments

@vring0
Copy link

vring0 commented Sep 10, 2019

Добрый день! Спасибо за разработку модуля. У меня возникла проблема с параметром громкости для ТВ. Когда я говорю Алисе :"Прибавь громкость на телевизоре", то звук увеличивается только на один пункт и сбрасывается до параметра 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,
                },
            },
        ]
    },`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant