Введение
Для удаления пакетов из Ubuntu необходимо использовать команду: sudo apt purge name_pkg*
Для установки: sudo apt install
Часовой пояс: sudo timedatectl set-timezone Asia/Yekaterinburg
Чтобы установить Mosquitto: sudo apt install mosquitto mosquitto-clients
LAMP
Installing LAMP on Debian 10:
sudo apt install apache2
sudo apt install mariadb-server
sudo mysql_secure_installation
sudo apt install php libapache2-mod-php php-gd php-mysql
sudo systemctl restart apache2.service
Начнем Установку OpenHAB
apt-get update && apt-get upgrade -y
echo 'deb [signed-by=/usr/share/keyrings/openhab.gpg] https://openhab.jfrog.io/artifactory/openhab-linuxpkg unstable main' | sudo tee /etc/apt/sources.list.d/openhab.list
apt-get update
apt-get install openhab openhab-addons openjdk-11-jdk -y
systemctl start openhab
systemctl status openhab
apt install rrdtool
Installing zigbee2mqtt
ls -l /dev/ttyACM0
ls -l /dev/serial/by-id
sudo curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs git make g++ gcc
node --version # Should output v14.X, V16.x, V17.x or V18.X
npm --version # Should output 6.X, 7.X or 8.X
sudo mkdir /opt/zigbee2mqtt
sudo chown -R ${USER}: /opt/zigbee2mqtt
git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
cd /opt/zigbee2mqtt
npm ci
Is good? See: node-pre-gyp info ok added 383 packages in 111.613s
nano /opt/zigbee2mqtt/data/configuration.yaml
homeassistant: false
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://localhost
serial:
port: /dev/ttyACM0
advanced:
homeassistant_legacy_entity_attributes: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false
frontend:
port: 8090
see: here
cd /opt/zigbee2mqtt
npm start