Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version for HA Core users #1

Open
PianSom opened this issue Apr 13, 2024 · 8 comments
Open

Version for HA Core users #1

PianSom opened this issue Apr 13, 2024 · 8 comments
Labels
enhancement New feature or request

Comments

@PianSom
Copy link

PianSom commented Apr 13, 2024

Hi Trefor - very interested to give this a go, but I'm a HA Container (ie HA in Docker) user so can't use Add-ons. Any chance of a version which ties into the Appdeamon world, like Predbat does?

@springfall2008
Copy link
Owner

Unfortunately the appdaemon add-on itself is based on the wrong linux version so you can't use it with PyTorch.

However the add on is just a Docker container so I think you can run it in a seperate Docker you just need to pass in your HA supervisor key to the environment.

@PianSom
Copy link
Author

PianSom commented Apr 13, 2024

Ah, pity!

And double pity - HA Container is not compatible with Supervisor. :(

@springfall2008
Copy link
Owner

I doubt its the same thing, the key I'm talking about is for the REST interface between HA and external Apps which allows them to read/write state?

@PianSom
Copy link
Author

PianSom commented Apr 13, 2024

Oh good. I thought you meant this Supervisor interaction. But a Long Lived Access Token is very possible.

I'll have a play when I have a spare half hour, thanks.

@springfall2008
Copy link
Owner

I made it work with predbat_addon so you might be able to copy the stand-alone Dockerfile from there

@PianSom
Copy link
Author

PianSom commented Jun 15, 2024

I'm afraid neither my GitHub nor my docker skills are up to this.

I tried docker build -t predai github.com/springfall2008/predai#main:predai
but got the error

--------------------                                                                                                                                                                 
   2 |     ARG BUILD_FROM                                                                                                                                                            
   3 |     ARG BUILD_VERSION                                                                                                                                                         
   4 | >>> FROM $BUILD_FROM                                                                                                                                                          
   5 |     
   6 |     # Set shell
--------------------
ERROR: failed to solve: base name ($BUILD_FROM) should not be blank

I think it's probably better that I wait until someone more skilled/experienced than me uploads a container to DockerHub. But thanks.

@springfall2008
Copy link
Owner

I managed it with predbat_addon so maybe I can have a go with this one soon also.

@springfall2008 springfall2008 added the enhancement New feature or request label Aug 2, 2024
@SwiftRR
Copy link

SwiftRR commented Aug 11, 2024

Hi Trefor,
I have experimented with predai on my raspberry pi HAOS setup.
I have got it working and have added the relevant lines to my predbat apps.yaml.
I managed to generate an apex chart that looks very similar to the chart shown in the documentation.

I did notice that there was an extra space in the documentation code lines that I added to my apps.yaml file. It reads as below.
I removed the extra space.

  load_forecast_only: True
  load_forecast:
     - sensor.givtcp_{geserial}_load_energy_today_kwh_prediction$results 

Some questions:

  1. I wasn't sure what to add for the 'subtract' line for ev use which refers to a 'sensor'. In predbat, ignoring ev charging or large usages is handled by a switch or inputs (in documentation car charging hold options). I have a zappi.
  2. Should I change the historical days to 10 in the predai yaml to match what I have in HA currently?
  3. To go back from using predai with predbat, do I just comment out the relevant 3 lines in my predbat apps.yaml file?

I have a heat pump with weather compensation, and I have been able to add the sensor for my weather compensation to the predai.yaml.

Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants