Add sample env.py and update README
This commit is contained in:
@@ -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
39
env.sample.py
Normal 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"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user