mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 08:35:12 +02:00
nspanel: popups for OTA progress and device info, Info card on every panel
common/nspanel_popup.yaml shows a popupNotify page during OTA (written straight to the display uart, since OTA blocks the loop that sends the component's queued commands) and a device info popup (version, build time, IPs) from the Info button on the new last card or the show_info API action. The OTA gets id ota_esphome to extend it. Also documents the NSPanel pinout.
This commit is contained in:
1 parent
c5ab280725
commit
271a5a5a54
9 files changed
+230
No files matched your search
@@ -1,4 +1,18 @@
|
||||
---
|
||||
# Hardware: Sonoff NSPanel (EU)
|
||||
# Pinout:
|
||||
# GPIO2 IO2
|
||||
# GPIO4 Screen power -> Screen Power (switch gpio) (inverted)
|
||||
# GPIO14 Left button -> Left Button (binary_sensor gpio) (inverted)
|
||||
# GPIO16 Display UART TX -> display_uart (uart tx_pin)
|
||||
# GPIO17 Display UART RX -> display_uart (uart rx_pin)
|
||||
# GPIO19 Relay 2 -> Relay 2 (switch gpio)
|
||||
# GPIO21 Buzzer -> buzzer_out (output ledc)
|
||||
# GPIO22 Relay 1 -> Relay 1 (switch gpio)
|
||||
# GPIO23 Relay 3 (no relay, connector)
|
||||
# GPIO27 Right button -> Right Button (binary_sensor gpio) (inverted)
|
||||
# GPIO37 ALS (light sensor)
|
||||
# GPIO38 NTC temperature (ADC) -> ntc_source (sensor adc)
|
||||
substitutions:
|
||||
device: nspanel-dev
|
||||
name: NSPanel DEV
|
||||
@@ -60,6 +74,7 @@ external_components:
|
||||
packages:
|
||||
common: !include common/common.yaml
|
||||
ipv6_only: !include common/ipv6_only.yaml
|
||||
nspanel_popup: !include common/nspanel_popup.yaml
|
||||
# common: !include common/common_dev.yaml
|
||||
|
||||
# web_server:
|
||||
@@ -441,6 +456,13 @@ nspanel_lovelace:
|
||||
- name: Rast trávy
|
||||
entity_id: automation.irrigation_grow_grass
|
||||
|
||||
- type: cardEntities
|
||||
title: Info
|
||||
entities:
|
||||
- name: Zariadenie
|
||||
entity_id: button.nspanel_dev_info
|
||||
icon: information-outline
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: Left Button
|
||||
|
||||
Reference in new issue
Block a user