[
自宅サーバーWebRing
┃
前
|ID=54
前後5表示
|
次
┃
乱移動
|
サイト一覧
]
このサイト内
書籍 DVD CD
Google(日本語)
Google(Web全体)
Google(イメージ)
Google(キャッシュ)
Yahoo! JAPAN
goo 英和
goo 和英
goo 国語
goo 新語
サイトマップ
リンク集
ダウンロード
フォーラム
Users Wiki
最新情報
TOP
»
UsersWiki
»
nao-pon
»
blog
» 2021-06-15 をテンプレートにして作成
|
一覧
検索
最新
ヘルプ
ページへ戻る
履歴
リンク元
印刷
ミンティア[MINTIA] で WiFi 6ボタンスイッチを作った
をテンプレートにして作成
UsersWiki
:nao-pon/blog/2021-06-15 をテンプレートにして作成
開始行:
#navi
RIGHT:&rsslink(../);
#boxdate
* ミンティア[MINTIA] で WiFi 6ボタンスイッチを作った :-D
RIGHT:&tag(WiFi,ESP-32,DIY,HomeAssistant,Hass.io,ESPHome);
Google Home や Alexa と HomeAssistant を統合しているので...
声を発声して、アシスタントに認識させるのが、面倒くさいと...
だって、正しく認識してくれないと、もう一度言い直したり、...
そこで、やっぱり物理ボタンですよ!
ちょうど手元にミンティアとESP-32が転がっていて・・・。ん...
おぉー!やっぱりピッタリじゃないですか!厚みが若干きつい...
で、結果こうなりました。やっぱりボタンで操作できるのは快...
&ref(site://modules/xelfinder/index.php/view/10/DSC_3857....
#clear
ボタンの穴あけを少し失敗したけど、今度作るときはもう少し...
ボタンを押すと青いLEDが光ります。
** いるもの ((価格は購入時のもの))
- [[ESP-32 モジュール:https://ja.aliexpress.com/item/3282...
- [[タクトスイッチ:https://www.marutsu.co.jp/pc/i/599871/...
- ミンティアの空き容器
- 適当なユニバーサル基板
- 2mmポリウレタン銅線 適宜
** ESPHome の設定
esp32_ble_tracker は、手元に Qmote-S があったので、うまく...
#code(yaml){{
substitutions:
devicename: switch_box_11
esphome:
name: $devicename
platform: ESP32
board: wemos_d1_mini32
on_boot:
- priority: 1000
then:
- while:
condition:
not:
api.connected:
then:
- switch.turn_on: led
- delay: 500ms
- switch.turn_off: led
- delay: 500ms
wifi:
networks: !include common/wifi.networks.yaml
# Enable fallback hotspot (captive portal) in case wifi...
ap: !include common/wifi.ap.yaml
manual_ip:
static_ip: 192.168.1.xx
gateway: 192.168.1.1
subnet: 255.255.255.0
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
esp32_ble_tracker:
id: ble_tracker
on_ble_manufacturer_data_advertise:
- mac_address: 88:4A:XX:XX:DE:52
manufacturer_id: 004C
then:
- lambda: |-
if (id(qmote_de52_click).state == false) {
id(qmote_de52_click).publish_state(true);
id(qmote_de52_click).publish_state(false);
}
- mac_address: 88:4A:XX:XX:99:BB
manufacturer_id: 004C
then:
- lambda: |-
if (id(qmote_99bb_click).state == false) {
id(qmote_99bb_click).publish_state(true);
id(qmote_99bb_click).publish_state(false);
}
- mac_address: 88:4A:XX:XX:9F:03
manufacturer_id: 004C
then:
- lambda: |-
if (id(qmote_9f03_click).state == false) {
id(qmote_9f03_click).publish_state(true);
id(qmote_9f03_click).publish_state(false);
}
binary_sensor:
- platform: gpio
pin:
number: GPIO23
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn1"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO19
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn2"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO18
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn3"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO33
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn4"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO05
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn5"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO26
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn6"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: template
id: qmote_de52_click
name: "$devicename Qmote de52 Click"
filters:
delayed_off: 800ms
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: template
id: qmote_99bb_click
name: "$devicename Qmote 99bb Click"
filters:
delayed_off: 800ms
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: template
id: qmote_9f03_click
name: "$devicename Qmote 9f03 Click"
filters:
delayed_off: 800ms
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
sensor:
- platform: wifi_signal
name: "$devicename WiFi"
update_interval: 60s
unit_of_measurement: "%"
filters:
- lambda: x = 2 * (x + 100); if (x < 0) {x = 0;} el...
switch:
- platform: restart
name: "$devicename Restart"
- platform: gpio
pin:
number: GPIO2
name: "$devicename LED"
id: led
}}
RIGHT:&font(90%){&page_comments;};
#navi
終了行:
#navi
RIGHT:&rsslink(../);
#boxdate
* ミンティア[MINTIA] で WiFi 6ボタンスイッチを作った :-D
RIGHT:&tag(WiFi,ESP-32,DIY,HomeAssistant,Hass.io,ESPHome);
Google Home や Alexa と HomeAssistant を統合しているので...
声を発声して、アシスタントに認識させるのが、面倒くさいと...
だって、正しく認識してくれないと、もう一度言い直したり、...
そこで、やっぱり物理ボタンですよ!
ちょうど手元にミンティアとESP-32が転がっていて・・・。ん...
おぉー!やっぱりピッタリじゃないですか!厚みが若干きつい...
で、結果こうなりました。やっぱりボタンで操作できるのは快...
&ref(site://modules/xelfinder/index.php/view/10/DSC_3857....
#clear
ボタンの穴あけを少し失敗したけど、今度作るときはもう少し...
ボタンを押すと青いLEDが光ります。
** いるもの ((価格は購入時のもの))
- [[ESP-32 モジュール:https://ja.aliexpress.com/item/3282...
- [[タクトスイッチ:https://www.marutsu.co.jp/pc/i/599871/...
- ミンティアの空き容器
- 適当なユニバーサル基板
- 2mmポリウレタン銅線 適宜
** ESPHome の設定
esp32_ble_tracker は、手元に Qmote-S があったので、うまく...
#code(yaml){{
substitutions:
devicename: switch_box_11
esphome:
name: $devicename
platform: ESP32
board: wemos_d1_mini32
on_boot:
- priority: 1000
then:
- while:
condition:
not:
api.connected:
then:
- switch.turn_on: led
- delay: 500ms
- switch.turn_off: led
- delay: 500ms
wifi:
networks: !include common/wifi.networks.yaml
# Enable fallback hotspot (captive portal) in case wifi...
ap: !include common/wifi.ap.yaml
manual_ip:
static_ip: 192.168.1.xx
gateway: 192.168.1.1
subnet: 255.255.255.0
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
esp32_ble_tracker:
id: ble_tracker
on_ble_manufacturer_data_advertise:
- mac_address: 88:4A:XX:XX:DE:52
manufacturer_id: 004C
then:
- lambda: |-
if (id(qmote_de52_click).state == false) {
id(qmote_de52_click).publish_state(true);
id(qmote_de52_click).publish_state(false);
}
- mac_address: 88:4A:XX:XX:99:BB
manufacturer_id: 004C
then:
- lambda: |-
if (id(qmote_99bb_click).state == false) {
id(qmote_99bb_click).publish_state(true);
id(qmote_99bb_click).publish_state(false);
}
- mac_address: 88:4A:XX:XX:9F:03
manufacturer_id: 004C
then:
- lambda: |-
if (id(qmote_9f03_click).state == false) {
id(qmote_9f03_click).publish_state(true);
id(qmote_9f03_click).publish_state(false);
}
binary_sensor:
- platform: gpio
pin:
number: GPIO23
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn1"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO19
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn2"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO18
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn3"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO33
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn4"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO05
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn5"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: gpio
pin:
number: GPIO26
inverted: True
mode: INPUT_PULLUP
name: "$devicename btn6"
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: template
id: qmote_de52_click
name: "$devicename Qmote de52 Click"
filters:
delayed_off: 800ms
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: template
id: qmote_99bb_click
name: "$devicename Qmote 99bb Click"
filters:
delayed_off: 800ms
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
- platform: template
id: qmote_9f03_click
name: "$devicename Qmote 9f03 Click"
filters:
delayed_off: 800ms
on_press:
then:
- switch.turn_on: led
on_release:
then:
- switch.turn_off: led
sensor:
- platform: wifi_signal
name: "$devicename WiFi"
update_interval: 60s
unit_of_measurement: "%"
filters:
- lambda: x = 2 * (x + 100); if (x < 0) {x = 0;} el...
switch:
- platform: restart
name: "$devicename Restart"
- platform: gpio
pin:
number: GPIO2
name: "$devicename LED"
id: led
}}
RIGHT:&font(90%){&page_comments;};
#navi
ページ名:
ぺージ情報
ぺージ名 :
nao-pon/blog/2021-06-15
ページ別名 :
未設定
ページオーナー :
nao-pon
閲覧可
グループ :
すべての訪問者
ユーザー :
すべての訪問者
編集可
グループ :
なし
ユーザー :
ゲスト
Counter: 0, today: 0, yesterday: 0
メインメニュー
ホーム
価格比較 百貨
UsersWiki
新規ページ作成
最新ページ一覧
全ページ一覧
全コメント一覧
ヘルプ
xpwiki
お問い合わせ
ファイルマネージャー
ログイン
ユーザー名:
パスワード:
パスワード紛失
|
新規登録
最近の更新
最新の20件
2023-05-14
nao-pon
/
gmap + gmap_street + gmap_insertmarker
nao-pon
/
googlemaps2
2023-03-22
PublicBlog
/
The Importance of QFP in PCB
2023-02-28
FrontPage
/
PCB terminology you must know
2023-01-20
nao-pon
/
blog
/
ESP8266 を壊してしまいました しかも続けて2回も
2022-09-22
nao-pon
/
blog
/
ESP32 + ESPHome の Bluetooth Proxy で SwitchBot Mater
2022-08-26
nao-pon
/
blog
/
独自ビルドの Tasmota を 12.1.1 へ
2022-08-19
nao-pon
/
blog
/
Zigbee + ZHA のメモ書き
2022-01-17
nao-pon
/
blog
/
HomeAssistant 統合の Tasmota-IRHVAC に貢献
2021-08-03
nao-pon
/
ファイル置き場
/
スペースサワダ
2021-07-01
nao-pon
/
blog
/
HomeAssistant 統合の Tasmota-IRHVAC の不具合修正
2021-06-20
nao-pon
/
blog
/
Tasmota を 9.4.0 から 9.5.0 へアップデート
2021-06-15
nao-pon/blog/2021-06-15
2021-04-27
PublicBlog
2021-03-17
nao-pon
/
blog
/
SwitchBot 温湿度計を ESP32 でモニタリング
2021-03-13
nao-pon
/
blog
/
東芝エアコンのエントリーモデルもWiFi化
2021-02-23
risoulaser
2021-02-18
nao-pon
/
blog
/
Panasonic (ナショナル) エアコンの 2008 年モデルも WiFi 化
2021-02-15
nao-pon
/
blog
/
Tasmota で HA 端子(JEM-A) 連携
2021-02-07
nao-pon
/
blog
/
Tasmota で三菱エアコンを完全コントロール
オンライン状況
454 人のユーザが現在オンラインです。 (3 人のユーザが UsersWiki を参照しています。)
登録ユーザ: 0
ゲスト: 454
もっと...
サイト情報