Skip to content

Commit b44c8aa

Browse files
committed
chore: update readme
1 parent 3e2fac0 commit b44c8aa

File tree

6 files changed

+75
-2
lines changed

6 files changed

+75
-2
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,20 @@ Run your automations locally
7373
yarn dev
7474
```
7575

76-
### Test
76+
## Testing
77+
78+
#### Unit tests and integration tests
7779

7880
Run all your tests
7981

8082
```bash
8183
yarn test
8284
```
8385

86+
#### End-to-end tests
87+
88+
See [./playground](./playground/README.md) folder readme.
89+
8490
## Publication
8591

8692
### Build

playground/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,27 @@ This playground is intended to help you test and learn about making automations.
44

55
It features a Home Assistant instance that you can safely experiment with, without affecting your
66
own home environment.
7+
8+
## Credentials
9+
10+
In the playground we'll use the following credentials:
11+
12+
Username: `digital` Password: `alchemy`
13+
14+
## Home assistant
15+
16+
Accessible at: http://localhost:8123
17+
18+
## Usage
19+
20+
#### Start playground
21+
22+
```bash
23+
yarn play
24+
```
25+
26+
#### Stop playground
27+
28+
```bash
29+
yarn endplay
30+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": 1,
3+
"minor_version": 1,
4+
"key": "bluetooth.passive_update_processor",
5+
"data": {}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": 1,
3+
"minor_version": 5,
4+
"key": "core.device_registry",
5+
"data": {
6+
"devices": [
7+
{"area_id":null,"config_entries":["665cc088f5856930ec3692b7bcebf062"],"configuration_url":null,"connections":[],"disabled_by":null,"entry_type":"service","hw_version":null,"id":"a28cabc60853c3d7752bf77044425bfc","identifiers":[["sun","665cc088f5856930ec3692b7bcebf062"]],"labels":[],"manufacturer":null,"model":null,"name_by_user":null,"name":"Sun","serial_number":null,"sw_version":null,"via_device_id":null}
8+
],
9+
"deleted_devices": []
10+
}
11+
}

playground/homeassistant/config/.storage/core.restore_state

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,16 @@
22
"version": 1,
33
"minor_version": 1,
44
"key": "core.restore_state",
5-
"data": []
5+
"data": [
6+
{
7+
"state": {"entity_id":"person.digital_alchemy","state":"unknown","attributes":{"editable":true,"id":"digital_alchemy","user_id":"5217a56b1c754713b6308e883dd5f22f","device_trackers":[],"friendly_name":"Digital Alchemy"},"last_changed":"2024-04-20T21:30:25.290363+00:00","last_reported":"2024-04-20T21:30:25.290799+00:00","last_updated":"2024-04-20T21:30:25.290363+00:00","context":{"id":"01HVYPNSMAD417XC4YJTG8QJWB","parent_id":null,"user_id":null}},
8+
"extra_data": null,
9+
"last_seen": "2024-04-20T21:44:49.741029+00:00"
10+
},
11+
{
12+
"state": {"entity_id":"tts.google_en_com","state":"unknown","attributes":{"friendly_name":"Google en com"},"last_changed":"2024-04-20T21:30:43.732418+00:00","last_reported":"2024-04-20T21:30:43.733047+00:00","last_updated":"2024-04-20T21:30:43.732418+00:00","context":{"id":"01HVYPPBMMYJJFR3D9AJJAQXJH","parent_id":null,"user_id":null}},
13+
"extra_data": null,
14+
"last_seen": "2024-04-20T21:44:49.741029+00:00"
15+
}
16+
]
617
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": 1,
3+
"minor_version": 1,
4+
"key": "http",
5+
"data": {
6+
"ip_ban_enabled": true,
7+
"server_port": 8123,
8+
"use_x_frame_options": true,
9+
"cors_allowed_origins": [
10+
"https://cast.home-assistant.io"
11+
],
12+
"login_attempts_threshold": -1,
13+
"ssl_profile": "modern"
14+
}
15+
}

0 commit comments

Comments
 (0)