Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
Для того, чтобы Алиса могла сообщить статус стиральной машины, нужно сделать следующее: | |
1) Установить интеграцию YandexStation от AlexxIT https://github.com/AlexxIT/YandexStation | |
2) Установить интеграцию LG ThinQ Devices https://github.com/ollo69/ha-smartthinq-sensors | |
3) Настроить ключевые слова по данному мануалу https://github.com/AlexxIT/YandexStation#получение-команд-от-станции | |
4) Настроить последняя активная колонка, это нужно для того, чтобы отвечала та колонка, которой был задан вопрос. Если этого не сделать, то будет отвечать всегда либо одна колонка, либо все, все зависит от того, сколько колонок вы укажете https://gist.github.com/AlexxIT/6a3a1a5ba4c4ebe1fabbec639542d446 | |
5) Создать сенсор для стиральной машины | |
6) Создать автоматизацию, которая будет срабатывать на ключевое слово | |
Создайте файлик с любым именем и вставтье этот код. Я деалю это через package. Читаем документацию https://sprut.ai/client/blog/3180 | |
########################################### Сенсор ####################################### |
# Reads analog data using an ads1115. Three moisture sensors and a battery sensor. | |
# Goes to sleep for an hour at a time. | |
# Uses a helper input_boolean to keep it from going to sleep, in case you want to update it. | |
esphome: | |
name: moisture-1 | |
platform: ESP32 | |
board: esp32dev | |
on_boot: | |
then: |
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
DOMAIN ?= mydomain.com | |
COUNTRY := IT | |
STATE := IT | |
COMPANY := Evil Corp. | |
# credits to: https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309 | |
# usage: |
#!/usr/bin/env bash | |
# Installs/Configures: | |
# - Docker | |
# - Docker Registy Container with self-signed cert | |
# | |
# Tested on Ubuntu 14.04.1 | |
# Must be executed with elevated privilages | |
if [ "$(id -u)" != "0" ]; then |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: fluentd-config | |
namespace: fluentd | |
labels: | |
app: fluentd | |
data: | |
fluentd.conf: | | |
@include prometheus.conf |
user nginx; | |
worker_processes 2; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |