jekalmin / extended_openai_conversation

Home Assistant custom component of conversation agent. It uses OpenAI to control your devices.
829 stars 108 forks source link

[Request] Schedule things ("turn off fan in 20 minutes") #216

Open Stooovie opened 1 month ago

Stooovie commented 1 month ago

Is it possible to add short-term scheduling like this? commands such as "turn on fans for 20 minutes" are weirdly complicated with HA. Right now, when I asked the extended chatgpt bot to "turn off AC in two minutes ", it turned it off right away.

jleinenbach commented 1 month ago

Maybe it works with ChatGPT 4 and this function: https://github.com/jekalmin/extended_openai_conversation/tree/main/examples/function/automation

Another way could be to create a script/automation and run it with a command.

Or you could use this HACS integration, but I gave up because of an unknown error using the example data: https://github.com/nielsfaber/scheduler-component

joelis10 commented 3 days ago

funnily enough, this is now a native HA thing as of yesterday I believe (or at least will be, was announced on Voice Chapter 7 yesterday)

Stooovie commented 3 days ago

Not with the OpenAI assist though. I've tried, according to their example commands. 100% failure rate. Always "This device does not support timers. Would you like me to turn off the now?"

joelis10 commented 3 days ago

ah fair enough, I knew normal timers (that they also just announced) don't work, but I thought that was only because OpenAI didn't have access to internal ESPHome stuff, would've expected scheduled actions to work like usual