ast0815 / appdaemon_battery_manager

Use current and future electricity prices to plan the charging and discharging of batteries
2 stars 0 forks source link

missing 1 required positional argument: 'world' #1

Open rodwalker opened 2 months ago

rodwalker commented 2 months ago

Hi, Trying to use your very nice battery manager I get the following error

File "/config/apps/battery_manager.py", line 202, in control_battery astar = AStarStrategy( ^^^^^^^^^^^^^^ File "/config/apps/battery_manager.py", line 451, in init super().init() TypeError: AStar.init() missing 1 required positional argument: 'world'

I am wondering if I have got the wrong astar implementation. To satisfy the dependencies I put in appdeamon system packages pandas matplotlib pyTibber python-astar

Grateful for any pointers.

Cheers, Rod.

ast0815 commented 1 month ago

Hey, here is my AppDaemon config:

system_packages:
  - make
  - build-base
  - python3
  - python3-dev
python_packages:
  - pyTibber
  - astar
  - websockets
  - numpy<2
  - seaborn
init_commands: []
log_level: info

Let me know if that is enough to make it work!