I need information about the term lamp status or any tips related to it

Hello everyone,
I would like to run automations through a ChatGPT conversation. It’s about switching a lamp on and off and changing the light color from warm white to cool white. When I run the automations manually, they work — even multiple times in a row. However, using a voice command or executing them as text via Assist (the assistant is enabled) does not work correctly.

What could be the reason for this, and how do I tell the assistant to explicitly use this automation?

I’ve read that it might be related to the lamp’s changed status. However, I don’t know what term to search for that describes this behavior. Does anyone have an idea where I can get more information?

Thank you!

There is no built-in intent. But the tool has a parameter for temperature. You need to set instructions in the prompt on how LLM should use it.

{'type': 'function', 'function': {'name': 'HassLightSet', 'parameters': {'type': 'object', 'properties': {'name': {'type': 'string'}, 'area': {'type': 'string'}, 'floor': {'type': 'string'}, 'domain': {'type': 'array', 'items': {'type': 'string'}}, 'color': {'type': 'string'}, 'temperature': {'type': 'integer', 'minimum': 0}, 'brightness': {'type': 'integer', 'minimum': 0, 'maximum': 100, 'description': 'The brightness percentage of the light between 0 and 100, where 0 is off and 100 is fully lit'}}, 'required': []}, 'description': 'Sets the brightness percentage or color of a light'}},