Кнопка Xiaomi zigbee,чего не хватает в коде ?
Geyorgiy opened this issue · comments
{
name: 'Кнопка в спальне',
room: 'Спальня',
type: 'devices.types.switch',
mqtt: [
{
instance: 'action',
set: 'zigbee2mqtt/Кнопка спальня/action',
},
{
instance: 'battery_level',
state: 'zigbee2mqtt/Кнопка спальня/battery',
},
],
capabilities: [
{
type: 'devices.capabilities.on_off',
retrievable: true,
},
],
properties: [
{
type: 'devices.properties.float',
retrievable: true,
reportable: true,
parameters: {
instance: 'battery_level',
unit: 'unit.percent',
},
},
],
},