Skip to content

Instantly share code, notes, and snippets.

@gretel
Last active January 17, 2023 21:25
Show Gist options
  • Save gretel/14326e6fb050142c261cbde0fb241923 to your computer and use it in GitHub Desktop.
Save gretel/14326e6fb050142c261cbde0fb241923 to your computer and use it in GitHub Desktop.
ESPHome on Raspberry Pi Pico W
---
substitutions:
devicename: 'picow'
upper_devicename: 'PicoWireless'
logger_level: 'INFO'
esphome:
name: ${devicename}
project:
name: "jitter.eu"
version: "0.7.0"
rp2040:
board: rpipicow
framework:
platform_version: https://github.com/maxgerhardt/platform-raspberrypi.git
logger:
level: ${logger_level}
status_led:
pin:
number: GPIO25
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
domain: !secret domain
fast_connect: on
ota:
password: !secret ota_key
api:
encryption:
key: !secret picow_key
time:
- platform: homeassistant
id: homeassistant_time
sensor:
- platform: uptime
name: "${upper_devicename} Uptime"
update_interval: 5s
icon: "mdi:clock-start"
- platform: wifi_signal
name: "${upper_devicename} WiFi Signal"
update_interval: 10s
icon: "mdi:wifi"
# RP2040 Internal Core Temperature
- platform: adc
pin: TEMPERATURE
name: "${upper_devicename} Core Temperature"
unit_of_measurement: '°C'
filters:
- lambda: return 27 - (x - 0.706f) / 0.001721f;
text_sensor:
- platform: version
name: "${upper_devicename} Version"
icon: "mdi:exponent-box"
- platform: wifi_info
ip_address:
name: "${upper_devicename} IP Address"
icon: "mdi:counter"
switch:
- platform: restart
name: "${upper_devicename} Restart"
icon: "mdi:restart"
binary_sensor:
- platform: status
name: "${upper_devicename} Status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment