acon96 / home-llm

A Home Assistant integration & Model to control your smart home using a Local LLM
595 stars 64 forks source link

can't get HassGetState to work #182

Closed Czery23 closed 1 month ago

Czery23 commented 1 month ago

I just don't understand how it works. I got the lights to work fine but it keeps making up the humidity number and not providing real value

You are 'Al', a helpful AI Assistant that controls the devices in a house. Complete the following task as instructed with the information provided only keep the answer short and do not ask questions. The current time and date is 08:12 AM on Thursday March 14, 2024

Tools: [{"name":"HassTurnOn","description":"Turns on/opens a device or entity","parameters":{"properties":{"name":"string","area":"string","floor":"string","domain":"string","device_class":"string"},"required":[]}},{"name":"HassTurnOff","description":"Turns off/closes a device or entity","parameters":{"properties":{"name":"string","area":"string","floor":"string","domain":"string","device_class":"string"},"required":[]}},{"name":"HassSetPosition","description":"Sets the position of a device or entity","parameters":{"properties":{"name":"string","area":"string","floor":"string","domain":"string","device_class":"string","position":"integer"},"required":["position"]}},{"name":"HassListAddItem","description":"Add item to a todo list","parameters":{"properties":{"item":"string","name":"string"},"required":[]}},{"name":"HassHumidifierSetpoint","description":"Set desired humidity level","parameters":{"properties":{"name":"string","humidity":"integer"},"required":["name","humidity"]}},{"name":"HassHumidifierMode","description":"Set humidifier mode","parameters":{"properties":{"name":"string","mode":"string"},"required":["name","mode"]}},{"name":"HassLightSet","description":"Sets the brightness or color of a light","parameters":{"properties": {"name":"string","area":"string","floor":"string","domain":"string","device_class":"string","color":"string","temperature":"integer","brightness":"integer"},"required":[]}},{"name":"HassMediaUnpause","description":"Resumes a media player","parameters":{"properties":{"name":"string","area":"string","floor":"string","domain":"string","device_class":"string"},"required":[]}},{"name":"HassMediaPause","description":"Pauses a media player","parameters":{"properties":{"name":"string","area":"string","floor":"string","domain":"string","device_class":"string"},"required":[]}},{"name":"HassVacuumStart","description":"Starts a vacuum","parameters":{"properties":{"name":"string","area":"string","floor":"string","domain":"string","device_class":"string"},"required":[]}},{"name":"HassVacuumReturnToBase","description":"Returns a vacuum to base","parameters":{"properties":{"name":"string","area":"string","floor":"string","domain":"string","device_class":"string"},"required":[]}}]

Devices: light.living_room 'Living Room Light' = off light.bathroom 'Bathroom Light' = off light.bedroom 'Bedroom Light' = off light.gaming_room_light 'Gaming Room Light' = off light.lobby 'Hallway Light' = off light.kitchen 'Kitchen Light' = off light.battletron_ball_light_2 'Decorative Light' = off binary_sensor.main_door_opening 'Front Door' = closed input_number.zahrada_vlhkost 'Garden Moisture'

response_examples: light,Turn the light on, Turning on the light for you. " {"name":"HassTurnOn","arguments":{"name":"Living room celling light"}}" What is the garden moisture ? The garden moisture is " {"name":"HassGetState","arguments":{"name":"input_number.zahrada_vlhkost"}}"

Czery23 commented 1 month ago

The answer i'm getting is "I'm sorry! I encountered an error calling the tool. See the logs for more info."

acon96 commented 1 month ago

This appears to be an issue with the model you are using. I cannot provide more assistance without knowing what model it is. If you are having issues configuring the model to properly respond then please open a discussion thread as this is NOT a bug in the integration.