BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
542 stars 52 forks source link

OpenAI Conversation #946

Open Mwalton4uk opened 1 week ago

Mwalton4uk commented 1 week ago

Describe the feature

I would like for Assistants like the OpenAI Conversation to be able to read the current day rates.

Expected behaviour

Allow Assist using for example OpenAI Conversation to read the costings from the current, past and future rate events so that if you were to ask the Assistant the rates it could answer.

Use Case

Ask ad-hoc requests like what is the cheapest time; what is the cheapest 2 hour period etc.

Confirmation

Mwalton4uk commented 1 week ago

Further context; even knowing in the background the current rate events must have the data since things like the Agile Rate Card addon can display the rates, if I ask assist, it can only provide the timestamp and date etc. ChatGPT has the ability to analyse as if I copy and paste the rate card info or screenshot it can give me the same info as the analysis as the Target rate entity. Difference is this would let me do it ad-hoc rather than have to preplan

BottlecapDave commented 1 week ago

Hello. I believe this request is beyond the scope of this integration. The rate information is available as attributes via the appropriate entities, which is what the agile card uses. You can therefore use the custom sentences automation trigger, where you can then extract the attribute from the target entity and pass it to OpenAI (or something similar). You can then use the custom responses to output the response from OpenAI to the device that triggered the intent.