You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to set the temperature of a thermostat, but I get an error due to the HassSetTemperature not existing.
It attempts to call it, but looking through the Core, it looks like this intent does not actually exist. Does anyone have an example of a custom intent they are using for climate/thermostat?
The current time and date is 02:42 PM on Monday August 05, 2024
Tools: [{"type":"function","function":{"name":"HassTurnOn","description":"Turns on/opens a device or entity","parameters":{"type":"object","properties":{"name":{"type":"string","description":""},"area":{"type":"string","description":""},"floor":{"type":"string","description":""},"domain":{"type":"string","description":""},"device_class":{"type":"string","description":""}},"required":[]}}},{"type":"function","function":{"name":"HassTurnOff","description":"Turns off/closes a device or entity","parameters":{"type":"object","properties":{"name":{"type":"string","description":""},"area":{"type":"string","description":""},"floor":{"type":"string","description":""},"domain":{"type":"string","description":""},"device_class":{"type":"string","description":""}},"required":[]}}},{"type":"function","function":{"name":"MassPlayMediaOnMediaPlayer","description":"Execute Home Assistant MassPlayMediaOnMediaPlayer intent","parameters":{"type":"object","properties":{"name":{"type":"string","description":""},"area":{"type":"string","description":""},"query":{"type":"string","description":""},"artist":{"type":"string","description":""},"track":{"type":"string","description":""},"album":{"type":"string","description":""}},"required":[]}}},{"type":"function","function":{"name":"WeatherIntent","description":"Execute Home Assistant WeatherIntent intent","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"WeatherTomorrow","description":"Execute Home Assistant WeatherTomorrow intent","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"Timer","description":"Execute Home Assistant Timer intent","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"tester","description":"Execute Home Assistant tester intent","parameters":{"type":"object","properties":{},"required":[]}}},{"type":"function","function":{"name":"HassMediaUnpause","description":"Resumes a media player","parameters":{"type":"object","properties":{"name":{"type":"string","description":""},"area":{"type":"string","description":""},"floor":{"type":"string","description":""},"domain":{"type":"string","description":""},"device_class":{"type":"string","description":""}},"required":[]}}},{"type":"function","function":{"name":"HassMediaPause","description":"Pauses a media player","parameters":{"type":"object","properties":{"name":{"type":"string","description":""},"area":{"type":"string","description":""},"floor":{"type":"string","description":""},"domain":{"type":"string","description":""},"device_class":{"type":"string","description":""}},"required":[]}}}]
Devices:
switch.my_s_office_light_switch 'my's Office Light Switch ' = off
switch.my_s_office_light_switch 'my's Office' = off
climate.master_bedroom_thermostat 'Master Bedroom Thermostat ' = cool;74F;Auto low
Turn off the switches in Garage
Turning off the devices as requested.
<functioncall> {"name":"HassTurnOff","arguments":{"area":"Garage"}}
Toggle the switch switch.my_s_office_light_switch
Toggling the switch for you.
<functioncall> {"name":"HassToggle","arguments":{"name":"switch.my_s_office_light_switch"}}
Turn on the switch.my_s_office_light_switch
Turning on the switch for you.
<functioncall> {"name":"HassTurnOn","arguments":{"name":"switch.my_s_office_light_switch"}}
User instruction:set temperature to 72 [/INST]
2024-08-05 10:42:20.459 DEBUG (MainThread) [custom_components.llama_conversation.agent] {'model': 'mistral:latest', 'created_at': '2024-08-05T14:42:20.3726979Z', 'response': 'I have set the temperature of the Master Bedroom Thermostat to 72 degrees Fahrenheit for you.\n<functioncall> {"name":"HassSetTemperature","arguments":{"area":"Master Bedroom","temperature":72,"unit":"F"}}', 'done': True, 'done_reason': 'stop', 'total_duration': 1339295800, 'load_duration': 7313700, 'prompt_eval_count': 1015, 'prompt_eval_duration': 508928000, 'eval_count': 60, 'eval_duration': 822904000}
2024-08-05 10:42:20.459 DEBUG (MainThread) [custom_components.llama_conversation.agent] I have set the temperature of the Master Bedroom Thermostat to 72 degrees Fahrenheit for you.
<functioncall> {"name":"HassSetTemperature","arguments":{"area":"Master Bedroom","temperature":72,"unit":"F"}}
2024-08-05 10:42:20.460 INFO (MainThread) [custom_components.llama_conversation.agent] calling tool`{"name":"HassSetTemperature","arguments":{"area":"Master Bedroom","temperature":72,"unit":"F"}}
2024-08-05 10:42:20.460 DEBUG (MainThread) [custom_components.llama_conversation.agent] Tool response: {'error': 'HomeAssistantError', 'error_text': 'Tool "HassSetTemperature" not found'}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am attempting to set the temperature of a thermostat, but I get an error due to the HassSetTemperature not existing.
It attempts to call it, but looking through the Core, it looks like this intent does not actually exist. Does anyone have an example of a custom intent they are using for climate/thermostat?
Beta Was this translation helpful? Give feedback.
All reactions