Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Seitk/gpt-assistant
/ functions
Functions
32 in github.com/Seitk/gpt-assistant
⨍
Functions
32
◇
Types & classes
2
↓ 5 callers
Method
read
Returns the current state of a device with the given entity_id.
gpt_assistant/home_assistant/langchain_tool.py:49
↓ 3 callers
Method
validate_device
Validates whether a device with the given entity_id exists in the list of devices retrieved from Home Assistant API.
gpt_assistant/home_assistant/langchain_tool.py:20
↓ 2 callers
Function
get_headers
()
gpt_assistant/home_assistant/api.py:14
↓ 2 callers
Function
get_home_assistant_url
()
gpt_assistant/home_assistant/api.py:6
↓ 2 callers
Method
run
Toggles the state of a device with the given entity_id to the specified status.
gpt_assistant/home_assistant/langchain_tool.py:33
↓ 1 callers
Method
command_info
Extracts entity_id, device_class, status, and friendly_name from a string of commands in JSON format.
gpt_assistant/home_assistant/langchain_tool.py:10
↓ 1 callers
Function
download_file
(file, url)
gpt_assistant/text_to_speech/home_assistant_cloud.py:10
↓ 1 callers
Function
filter_response
(response)
gpt_assistant/home_assistant/api.py:21
↓ 1 callers
Function
generate_response
(prompt)
api.py:15
↓ 1 callers
Function
get_api_token
()
gpt_assistant/home_assistant/api.py:10
↓ 1 callers
Function
init_agent
()
gpt_assistant/llm_agent.py:14
↓ 1 callers
Function
is_speech_ended
(recognizer, source, audio_data)
gpt_assistant/recording.py:26
↓ 1 callers
Function
main
()
main.py:43
↓ 1 callers
Function
process_audio
(audio)
gpt_assistant/recording.py:19
Method
discover
Discovers devices by retrieving the list of devices from Home Assistant API.
gpt_assistant/home_assistant/langchain_tool.py:83
Function
execute
Main execution flow of the assistant
main.py:15
Function
execute_agent
(prompt: str)
gpt_assistant/llm_agent.py:55
Function
generate_response
Generate a chat response with ChatGPT
gpt_assistant/chat/response.py:5
Function
get_devices
()
gpt_assistant/home_assistant/api.py:52
Function
listen_for_speech
()
gpt_assistant/recording.py:60
Function
listen_for_wake_word
(callback)
gpt_assistant/wake_word.py:36
Method
on_post
Handle POST requests.
api.py:35
Function
play
(filename)
gpt_assistant/sound.py:6
Method
read_sensor
Returns the current state of a sensor with the given entity_id.
gpt_assistant/home_assistant/langchain_tool.py:66
Function
text_to_speech
Convert text to speech using Google TTS.
gpt_assistant/text_to_speech/gtts.py:7
Function
text_to_speech
Convert text to speech.
gpt_assistant/text_to_speech/tts.py:6
Function
text_to_speech
Convert text to speech using Home Assistant Cloud TTS.
gpt_assistant/text_to_speech/home_assistant_cloud.py:18
Function
text_to_speech
Convert text to speech using AWS Polly.
gpt_assistant/text_to_speech/aws_polly.py:10
Function
toggle_device_state
(entity_id, device_class, state)
gpt_assistant/home_assistant/api.py:68
Function
transcribe
Transcribe audio into text.
gpt_assistant/speech_to_text/stt.py:5
Function
transcribe_audio
Transcribe audio using local Whisper
gpt_assistant/speech_to_text/whisper_local.py:5
Function
transcribe_audio
Transcribe audio using OpenAI's Whisper
gpt_assistant/speech_to_text/openai.py:5