Не могу название сделать, картинки нет и т. д.
[Модуль] zigbee2mqtt (zigbee2mqtt)
Модератор: immortal
-
- Сообщения: 84
- Зарегистрирован: Вт мар 13, 2018 1:51 pm
- Благодарил (а): 34 раза
- Поблагодарили: 6 раз
Re: [Модуль] zigbee2mqtt (zigbee2mqtt)
вкладка сервис Update metrics или Refresh devices и картинка будет
СпойлерПоказать
СпойлерПоказать
-
- Сообщения: 275
- Зарегистрирован: Сб май 11, 2019 6:35 pm
- Откуда: Иркутск
- Благодарил (а): 16 раз
- Поблагодарили: 63 раза
Re: [Модуль] zigbee2mqtt (zigbee2mqtt)
Всем привет! Возможно уже обсуждалось, но у меня вопрос: как отключить debMes? По 15 мегабайт в день набегает по всем файлам.
-
- Сообщения: 364
- Зарегистрирован: Вс янв 15, 2017 5:34 pm
- Откуда: Москва
- Благодарил (а): 100 раз
- Поблагодарили: 53 раза
Re: [Модуль] zigbee2mqtt (zigbee2mqtt)
Доброго времени суток!
1. Подскажите где поправить чтобы на выключателей подключенных к электрической сети не было батарейки?
2. Как добавить к двойным выключателям управление двумя кнопками?
3. Как правильно вставить картинку, чтобы края не обрезала?
И просьба к разработчикам, код поправить вот так.
database1.inc.php
database2.inc.php
1. Подскажите где поправить чтобы на выключателей подключенных к электрической сети не было батарейки?
2. Как добавить к двойным выключателям управление двумя кнопками?
3. Как правильно вставить картинку, чтобы края не обрезала?
И просьба к разработчикам, код поправить вот так.
database1.inc.php
Код: Выделить всё
// X711A https://www.zigbee2mqtt.io/devices/X711A.html
$par1['zigbeeModel'] = 'X711A';
$par1['model'] = "X711A";
$par1['type'] = "switch";
$par1['vendor'] = "Lonsonho";
$par1['description'] = "1 gang switch";
$par1['extend'] = "";
$par1['supports'] = "on/off";
$par1['fromZigbee'] = "";
$par1['toZigbee'] = "";
SQLInsert('zigbee2mqtt_devices_list', $par1);
// X712A https://www.zigbee2mqtt.io/devices/X712A.html
$par1['zigbeeModel'] = 'X712A';
$par1['model'] = "X712A";
$par1['vendor'] = "Lonsonho";
$par1['type'] = "switch";
$par1['description'] = "Smart light switch - 2 gang without neutral wire";
$par1['supports'] = "on/off";
$par1['extend'] = "";
$par1['fromZigbee'] = "";
$par1['toZigbee'] = "";
SQLInsert('zigbee2mqtt_devices_list', $par1);
// X713A https://www.zigbee2mqtt.io/devices/X713A.html
$par1['zigbeeModel'] = 'X713A';
$par1['model'] = "X713A";
$par1['vendor'] = "Lonsonho";
$par1['type'] = "switch";
$par1['description'] = "Smart light switch - 3 gang without neutral wire";
$par1['supports'] = "on/off";
$par1['extend'] = "";
$par1['fromZigbee'] = "";
$par1['toZigbee'] = "";
SQLInsert('zigbee2mqtt_devices_list', $par1);
// X701A
$par1['zigbeeModel'] = 'X701A';
$par1['model'] = "X701A";
$par1['type'] = "switch";
$par1['vendor'] = "Lonsonho";
$par1['description'] = "1 gang switch";
$par1['extend'] = "";
$par1['supports'] = "on/off";
$par1['fromZigbee'] = "";
$par1['toZigbee'] = "";
SQLInsert('zigbee2mqtt_devices_list', $par1);
// X702A
$par1['zigbeeModel'] = 'X702A';
$par1['model'] = "X702A";
$par1['type'] = "switch";
$par1['vendor'] = "Lonsonho";
$par1['description'] = "2 gang switch";
$par1['extend'] = "";
$par1['supports'] = "on/off";
$par1['fromZigbee'] = "";
$par1['toZigbee'] = "";
SQLInsert('zigbee2mqtt_devices_list', $par1);
// X703A
$par1['zigbeeModel'] = 'X703A';
$par1['model'] = "X703A";
$par1['type'] = "switch";
$par1['vendor'] = "Lonsonho";
$par1['description'] = "3 gang switch";
$par1['extend'] = "";
$par1['supports'] = "on/off";
$par1['fromZigbee'] = "";
$par1['toZigbee'] = "";
SQLInsert('zigbee2mqtt_devices_list', $par1);
Код: Выделить всё
//X711A; https://www.zigbee2mqtt.io/devices/X711A.html
$par2['zigbeeModel'] = 'X711A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X712A
$par2['zigbeeModel'] = 'X712A';
$par2['type'] = "sensor";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['value_template'] = "click";
$par2['json_attributes'] = "";
$par2['force_update'] = "true";
$par2['command_topic'] = "";
$par2['payload_on'] = "";
$par2['payload_off'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X712A; https://www.zigbee2mqtt.io/devices/X712A.html
$par2['zigbeeModel'] = 'X712A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
//$par2['value_template'] = "state_l1";
//$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l1/set" ;
$par2['value_template'] = "state_right";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
//$par2['command_value'] = "state_l1";
$par2['command_value'] = "state_right";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X712A; https://www.zigbee2mqtt.io/devices/X712A.html
$par2['zigbeeModel'] = 'X712A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_left";
//$par2['value_template'] = "state_l2";
//$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l2/set" ;
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
//$par2['command_value'] = "state_l2";
$par2['command_value'] = "state_left";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X713A; https://www.zigbee2mqtt.io/devices/X713A.html
$par2['zigbeeModel'] = 'X713A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
//$par2['value_template'] = "state_l1";
//$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l1/set" ;
$par2['value_template'] = "state_right";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
//$par2['command_value'] = "state_l1";
$par2['command_value'] = "state_right";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X713A; https://www.zigbee2mqtt.io/devices/X713A.html
$par2['zigbeeModel'] = 'X713A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
//$par2['value_template'] = "state_l2";
//$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l2/set" ;
$par2['value_template'] = "state_right";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
//$par2['command_value'] = "state_l2";
$par2['command_value'] = "state_right";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X713A; https://www.zigbee2mqtt.io/devices/X713A.html
$par2['zigbeeModel'] = 'X713A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
//$par2['value_template'] = "state_l3";
//$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l3/set" ;
$par2['value_template'] = "state_right";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
//$par2['command_value'] = "state_l3";
$par2['command_value'] = "state_right";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X701A https://www.zigbee2mqtt.io/devices/X701A.html
$par2['zigbeeModel'] = 'X701A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_l1";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l1/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state_l1";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X702A https://www.zigbee2mqtt.io/devices/X702A.html
$par2['zigbeeModel'] = 'X702A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_l1";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l1/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state_l1";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X702A https://www.zigbee2mqtt.io/devices/X702A.html
$par2['zigbeeModel'] = 'X702A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_l2";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l2/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state_l2";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X703A https://www.zigbee2mqtt.io/devices/X703A.html
$par2['zigbeeModel'] = 'X703A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_l1";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l1/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state_l1";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X703A https://www.zigbee2mqtt.io/devices/X703A.html
$par2['zigbeeModel'] = 'X703A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_l2";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l2/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state_l2";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//X703A https://www.zigbee2mqtt.io/devices/X703A.html
$par2['zigbeeModel'] = 'X703A';
$par2['type'] = "switch";
$par2['state_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>";
$par2['availability_topic'] = "<Z2M_PATH>/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_l3";
$par2['command_topic'] = "<Z2M_PATH>/<FRIENDLY_NAME>/l3/set" ;
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state_l3";
SQLInsert('zigbee2mqtt_devices_command', $par2);
- Вложения
-
- 1.PNG (53.19 КБ) 3533 просмотра
Последний раз редактировалось kas5858 Пн окт 05, 2020 11:55 am, всего редактировалось 1 раз.
Raspberry Pi3 - Broadlink - MegaD - Много датчиков - Камеры - Часы.
Connect
Connect
-
- Сообщения: 364
- Зарегистрирован: Вс янв 15, 2017 5:34 pm
- Откуда: Москва
- Благодарил (а): 100 раз
- Поблагодарили: 53 раза
Re: [Модуль] zigbee2mqtt (zigbee2mqtt)
С картинками вопрос решон.
Еще картинки добавьте.
Еще картинки добавьте.
- Вложения
-
- X703A.jpg (28.26 КБ) 3139 просмотров
-
- X702A.jpg (22.86 КБ) 3139 просмотров
-
- X701A.jpg (3.35 КБ) 3139 просмотров
-
- X713A.jpg (28.26 КБ) 3526 просмотров
-
- X712A.jpg (22.86 КБ) 3526 просмотров
-
- X711A.jpg (21.68 КБ) 3526 просмотров
-
- Lonsonho.jpg (29.61 КБ) 3526 просмотров
Последний раз редактировалось kas5858 Пн окт 05, 2020 11:59 am, всего редактировалось 1 раз.
Raspberry Pi3 - Broadlink - MegaD - Много датчиков - Камеры - Часы.
Connect
Connect
-
- Сообщения: 28
- Зарегистрирован: Вт май 05, 2020 1:13 pm
- Благодарил (а): 6 раз
- Поблагодарили: 0
Re: [Модуль] zigbee2mqtt (zigbee2mqtt)
Ребят, заранее извиняюсь, если была подобная тема уже, не смог найти. Как сделать автозагрузку на вин 10 по такому же принципу, заранее спасибо:
Запуск zigbee2mqtt как сервис
Создаем файл zigbee2mqtt.service
sudo nano /etc/systemd/system/zigbee2mqtt.service
c содержимым:
[Unit]
Description=zigbee2mqtt
After=network.target
[Service]
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/zigbee2mqtt
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
для запуска zigbee2mqtt необходимо выполнить:
sudo systemctl start zigbee2mqtt
systemctl status zigbee2mqtt.service
автозапуск демона при старте системы:
sudo systemctl enable zigbee2mqtt.service
Запуск zigbee2mqtt как сервис
Создаем файл zigbee2mqtt.service
sudo nano /etc/systemd/system/zigbee2mqtt.service
c содержимым:
[Unit]
Description=zigbee2mqtt
After=network.target
[Service]
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/zigbee2mqtt
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
для запуска zigbee2mqtt необходимо выполнить:
sudo systemctl start zigbee2mqtt
systemctl status zigbee2mqtt.service
автозапуск демона при старте системы:
sudo systemctl enable zigbee2mqtt.service
-
- Сообщения: 57
- Зарегистрирован: Вс апр 07, 2019 6:49 pm
- Благодарил (а): 33 раза
- Поблагодарили: 10 раз
Re: [Модуль] zigbee2mqtt (zigbee2mqtt)
Добрый день. Помогите разобраться с реле Zigbee OnOf Controller. Стик v3 спаривается моментально, как роутер натягивает на себя большинство устройств а вот управляться не хочет. При нажатии физической кнопки состояние в модуле меняется(On Of), что только не привязывал к свойству или методу, ни какой реакции. И еще обратил внимание, как минимум одна кнопка перескочившая на него, как роутер перестала отрабатывать.
[img]https://radikal.ru]
[img]https://radikal.ru]
[img]https://radikal.ru]
[img]https://radikal.ru]
[img]https://radikal.ru]
[img]https://radikal.ru]
[img]https://radikal.ru]
[img]https://radikal.ru]
-
- Сообщения: 364
- Зарегистрирован: Вс янв 15, 2017 5:34 pm
- Откуда: Москва
- Благодарил (а): 100 раз
- Поблагодарили: 53 раза
Re: [Модуль] zigbee2mqtt (zigbee2mqtt)
Нужно выбрать в SELECTVENDOR: и SELECTTYPE:, бренд и ваше устройство.pru469 писал(а): ↑Пн сен 07, 2020 5:43 pmДобрый день. Помогите разобраться с реле Zigbee OnOf Controller. Стик v3 спаривается моментально, как роутер натягивает на себя большинство устройств а вот управляться не хочет. При нажатии физической кнопки состояние в модуле меняется(On Of), что только не привязывал к свойству или методу, ни какой реакции. И еще обратил внимание, как минимум одна кнопка перескочившая на него, как роутер перестала отрабатывать.
[img]https://radikal.ru]
- Рейтинг: 1.16%
Raspberry Pi3 - Broadlink - MegaD - Много датчиков - Камеры - Часы.
Connect
Connect
-
- Сообщения: 57
- Зарегистрирован: Вс апр 07, 2019 6:49 pm
- Благодарил (а): 33 раза
- Поблагодарили: 10 раз
Re: [Модуль] zigbee2mqtt (zigbee2mqtt)
Спасибо, я х.з какой бренд и модель, поставил сонофф и базик3 и заработало.