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
# 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: |
Для того, чтобы Алиса могла сообщить статус стиральной машины, нужно сделать следующее: | |
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 | |
########################################### Сенсор ####################################### |
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 |
https://wso2.org/jira/browse/IDENTITY-4309 | |
http://isurad.blogspot.co.id/2016/02/wso2-identity-server-510-behind_18.html | |
http://xacmlinfo.org/2014/11/16/how-to-developing-identity-server-behind-proxy-or-load-balancer/ |
just change out app_name for your purposes
openssl genrsa 2048 > app_name-wildcard.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert
# Common Name (eg, your name or your server's hostname) []:*.app_name.com
openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info