From 740106a98d5335b89ad0ae1cc6b55814e8d1b4df Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Sat, 19 Apr 2025 12:43:23 +0100 Subject: [PATCH] Add sample env.py and update README --- README.md | 2 +- env.sample.py | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 env.sample.py diff --git a/README.md b/README.md index 0e1cf3f..de1ca76 100644 --- a/README.md +++ b/README.md @@ -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`: diff --git a/env.sample.py b/env.sample.py new file mode 100644 index 0000000..1bba854 --- /dev/null +++ b/env.sample.py @@ -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" + } +] \ No newline at end of file