I clearly suck at writing custom intents as I've tried everything and have spend hours searching but no one else that I've been able to find has solved this.
Here is my intent_script: (in configuration.yaml)
```
intent_script:
SetFanSpeed:
speech:
text: "Setting the fan speed to {{ percentage }}%."
action:
- service: fan.set_percentage
data:
entity_id: "{{ entity_id if entity_id is not none else area_id }}"
percentage: "{{ percentage }}"
```
sentences: (in config/custom_sentences/en/SetFanSpeed.yaml)
```
intents:
SetFanSpeed:
data:
- sentences:
- "Set the fan in {area} to {percentage} percent"
- "Adjust the fan in {area} to {percentage} percent"
- "Make the fan speed in {area} {percentage} percent"
slots:
area:
type: area
percentage:
type: number
- sentences:
- "Set {entity} speed to {percentage} percent"
- "Adjust {entity} to {percentage} percent"
- "Make {entity} speed {percentage} percent"
slots:
entity:
type: entity
domain: fan
percentage:
type: number
```
These cause intents to not even work and in the log I get a bunch of errors.. seems very similar to other intents/scripts..
Any suggestions? (even tried getting ChatGPT to help and it never solves it..)