Hello,
I would like to integrate my photovoltaic system in HA. Since the integration does not want to work for me, I would like to do it as described here:
SMA Solar WebConnect - #21 by csacre
For this I did the following:
- Appdaemon installed (I did not change the configuration)
- App daemon started
- In the file editor under the folder “Appdaemon” I have adjusted the file apps.yaml as follows:
---
hello_world:
module: hello
class: HelloWorld
sma:
module: sma
class: sma_bridge
- In the file editor under the folder “Appdaemon” I created the file sms.py and added the content - as in the link above
- I then changed the username and password
- I have now restarted Hassio.
Unfortunately it doesn’t seem to work. I get the following message:
2022-05-02 15:58:44.885412 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/sma.py - ignoring
2022-05-02 16:00:46.807959 INFO AppDaemon: Reading config
2022-05-02 16:00:46.823371 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2022-05-02 16:00:46.830302 INFO AppDaemon: App 'sma' added
2022-05-02 16:00:46.831519 INFO AppDaemon: Found 2 total apps
2022-05-02 16:00:46.833289 INFO AppDaemon: Adding thread 1
2022-05-02 16:00:46.843590 INFO AppDaemon: Initializing app sma using class sma_bridge from module sma
2022-05-02 16:00:46.848447 WARNING AppDaemon: Unable to find class sma_bridge in module sma - 'sma' is not initialized
2022-05-02 16:00:46.850481 WARNING AppDaemon: Unable to find module sma - initialize() skipped
2022-05-02 16:01:37.616050 INFO AppDaemon: Terminating sma
2022-05-02 16:01:37.621301 INFO AppDaemon: Reloading Module: /config/appdaemon/apps/sma.py
2022-05-02 16:01:37.622235 INFO AppDaemon: Loading App Module: sma
2022-05-02 16:01:37.626976 INFO AppDaemon: Initializing app sma using class sma_bridge from module sma
2022-05-02 16:01:37.630894 WARNING AppDaemon: Unable to find class sma_bridge in module sma - 'sma' is not initialized
2022-05-02 16:01:37.633011 WARNING AppDaemon: Unable to find module sma - initialize() skipped
2022-05-02 16:02:27.398753 INFO AppDaemon: Terminating sma
2022-05-02 16:02:27.403138 INFO AppDaemon: Reloading Module: /config/appdaemon/apps/sma.py
2022-05-02 16:02:27.417135 WARNING Error: ------------------------------------------------------------
2022-05-02 16:02:27.418098 WARNING Error: Unexpected error loading module: /config/appdaemon/apps/sma.py:
2022-05-02 16:02:27.418755 WARNING Error: ------------------------------------------------------------
2022-05-02 16:02:27.423478 WARNING Error: Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/appdaemon/app_management.py", line 993, in check_app_updates
await utils.run_in_executor(self, self.read_app, mod["name"], mod["reload"])
File "/usr/lib/python3.9/site-packages/appdaemon/utils.py", line 337, in run_in_executor
response = future.result()
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.9/site-packages/appdaemon/app_management.py", line 770, in read_app
importlib.reload(self.modules[module_name])
File "/usr/lib/python3.9/importlib/__init__.py", line 169, in reload
_bootstrap._exec(spec, module)
File "<frozen importlib._bootstrap>", line 613, in _exec
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/appdaemon/apps/sma.py", line 1, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
2022-05-02 16:02:27.424105 WARNING Error: ------------------------------------------------------------
2022-05-02 16:02:27.424788 WARNING AppDaemon: Removing associated apps:
2022-05-02 16:02:27.425682 WARNING AppDaemon: sma
2022-05-02 16:02:38.435546 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:02:43.457873 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:02:48.479817 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:02:53.502037 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:02:58.517345 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:03:03.529507 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:03:08.543270 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:03:13.571419 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:03:22.002025 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:03:27.033736 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:03:32.072389 WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds
2022-05-02 16:03:41.279662 INFO HASS: Connected to Home Assistant 2022.4.7
2022-05-02 16:03:47.914397 INFO HASS: Evaluating startup conditions
2022-05-02 16:03:47.947979 INFO HASS: Startup condition met: hass state=RUNNING
2022-05-02 16:03:47.948877 INFO HASS: All startup conditions met
2022-05-02 16:03:48.030834 INFO AppDaemon: Processing restart for HASS
2022-05-02 16:03:48.032252 INFO AppDaemon: Terminating hello_world
2022-05-02 16:03:48.035630 INFO AppDaemon: Terminating sma
2022-05-02 16:03:48.038905 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2022-05-02 16:03:48.054009 INFO AppDaemon: Initializing app sma using class sma_bridge from module sma
2022-05-02 16:03:48.057295 WARNING AppDaemon: Unable to find class sma_bridge in module sma - 'sma' is not initialized
2022-05-02 16:03:48.067848 INFO hello_world: Hello from AppDaemon
2022-05-02 16:03:48.072664 INFO hello_world: You are now ready to run Apps!
2022-05-02 16:03:48.077213 WARNING AppDaemon: Unable to find module sma - initialize() skipped
Can someone help me ?
Greetings Werner
1 post - 1 participant