Add sample env.py and update README

This commit is contained in:
2025-04-19 12:43:23 +01:00
parent c657df8090
commit 740106a98d
2 changed files with 40 additions and 1 deletions

View File

@@ -19,7 +19,7 @@
git clone https://github.com/mgrove36/home-assistant-pi-pico-w-dashboard.git && cd home-assistant-pi-pico-w-dashboard
```
3. Edit `env.py` in this directory to contain [your settings](#settings).
3. Copy `env.sample.py` to `env.py` and edit it to contain [your settings](#settings).
4. Plug in the Pico W using a USB to Micro USB cable, and start `rshell`:

39
env.sample.py Normal file
View File

@@ -0,0 +1,39 @@
HOSTNAME="pico-hostname"
SSID = 'wifi-ssid'
WIFI_PASSWORD = 'wifi-password'
HASS_URL = "http://url.to.hass:port"
TOKEN = "long.lived.hass.token"
SCREENS = [
{
"name": "Lights",
"type": 0,
"entities": [
{
"id": "light.bedroom_light",
"name": "Bedroom"
},
{
"id": "light.bedroom_lamp",
"name": "Lamp"
},
{
"id": "light.tv_leds",
"name": "TV"
},
{
"id": "light.bedroom_lights",
"name": "All"
}
]
},
{
"name": "Kitchen",
"type": 1,
"entity": "media_player.kitchen"
},
{
"name": "Living Room",
"type": 1,
"entity": "media_player.living_room"
}
]