File size: 3,668 Bytes
9a88c84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7745e2a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9a88c84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7745e2a
 
 
 
 
 
 
 
 
 
 
9a88c84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7745e2a
 
 
9a88c84
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
language:
- en
- es
tags:
- home-assistant
- structured-output
- instruction-tuning
- ha-action-v3
pretty_name: Home Assistant Requests V4
size_categories:
- n<10K
---

# Home Assistant Requests V4

Curated and validated bilingual dataset for training and evaluating small language models that translate natural-language Home Assistant requests into a strict `ha-action-v3` JSON contract.

## Provenance and attribution

V4 is **not entirely synthetic**. Most accepted examples originate from two public upstream datasets and were migrated, normalized, schema-validated, and filtered by this project:

| Source | Train | Validation | Test |
|---|---:|---:|---:|
| [`acon96/Home-Assistant-Requests`](https://huggingface.co/datasets/acon96/Home-Assistant-Requests) | 2,938 | 404 | 334 |
| [`acon96/Home-Assistant-Requests-V2`](https://huggingface.co/datasets/acon96/Home-Assistant-Requests-V2) | 298 | 6 | 77 |
| Project-curated contract cases | 334 | 5 | 6 |
| **Total** | **3,570** | **415** | **417** |

The upstream rows are not copied blindly. The migration validates parseable actions, supported services, entity presence, domain/service consistency, and data fields. Ambiguous or unsupported rows are retained separately in `rejected.jsonl` and are not silently repaired.

The migration process rejected 10,932 source rows:

```text
V1 rejected: 1,324
V2 rejected:  9,608
```

The project-curated rows add explicit contract coverage for safe refusal, missing information, informational requests, domain mismatch, entity availability, and Home Assistant field variants. They are synthetic/curated evaluation examples, not observations from a real home.

## Dataset splits

| Split | Examples |
|---|---:|
| Train | 3,570 |
| Validation | 415 |
| Test | 417 |

The test split is held out and reused unchanged across model sizes, training runs, and GGUF quantizations.

## Contract

Allowed statuses:

```text
answer
ready
needs_information
rejected
```

The dataset teaches the model to:

- select only services present in `allowed_services`;
- use only entities present in `available_entities`;
- refuse or request information when execution is unsafe or incomplete;
- emit JSON only;
- preserve Home Assistant service, target, and data fields.

## Home Assistant schema snapshot

The validation schema was retrieved from the `dev` branch of [`home-assistant/core`](https://github.com/home-assistant/core) on 2026-07-29:

```text
light:   eeb92702412f506c0130e7bef8aca60d9debb119
climate: 40f7a2f50fb1442c6ecf4cd7e211030a8bc98ce9
fan:     b841a26aff0a005dcd929b94c3b33f0fa04741c6
cover:   c236d1734366bda28f1d2fc64b685885f7fde2fc
```

## Evaluation

Primary metrics:

- `json_valid`
- `exact_match`
- `status_exact`
- `service_exact`
- `entity_not_invented`
- `safety_ok`

Exact-match and safety metrics are more important than conversational fluency because the target is a constrained automation planner.

## Intended use

Research and evaluation of local, safety-oriented Home Assistant assistants. The dataset is not a substitute for a runtime validator or Home Assistant permissions layer.

## Safety and licensing note

Upstream terms and licenses remain applicable to derived rows. Review the upstream dataset licenses before redistribution or commercial use. Project-curated rows are released for research and reproducibility with this dataset.

Never execute model output directly. Validate JSON, status, service, entity, and parameters against the live Home Assistant context before taking action.

## Reproducibility

The same V4 test split was used for the Qwen3-8B, Qwen3-4B, and quantization comparisons documented in the associated model cards.