-
Notifications
You must be signed in to change notification settings - Fork 151
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
Documentation for powermon in container is blank #394
Comments
I took a crack at trying to put together a powermon.yaml configuration file, however I am noticing that the documentation does not always agree with the files in |
Yes it's very much a wip and is changing frequently
There are some ssmple yamls on github if you want to try but caution is
advised (and limited protocols etc have been ported)
…On Thu, 24 Aug 2023, 6:40 am Frederick Henderson, ***@***.***> wrote:
I took a crack at trying to put together a powermon.yaml configuration
file, however I am noticing that the documentation does not always agree
with the files in mpp-solar/powermon/config. powermon -h does not offer
any help on the configuration file either. Still not sure if I have this
correct. Just wondering if powermon is a work in progress at this point.
—
Reply to this email directly, view it on GitHub
<#394 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNWQOHMVW2RTYFA452DXWZFBNANCNFSM6AAAAAA32IGRQQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Okay understood. I am guessing that the sample configuration files are more up to date than the |
I was hopeful as the pi30max protocol that my inverter uses has been implemented. However I got an error:
Sanitized
Any ideas as to what I did not get correct in the config? |
What version are you using?
…On Thu, 24 Aug 2023, 8:40 pm Frederick Henderson, ***@***.***> wrote:
I was hopeful as the pi30max protocol that my inverter uses has been
implemented. However I got an error:
$ powermon -C powermon-test.yaml
Traceback (most recent call last):
File "/usr/local/bin/powermon", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/powermon/__init__.py", line 152, in main
schedule = Schedule.parseScheduleConfig(scheduling_config, device, mqtt_broker)
File "/usr/local/lib/python3.10/dist-packages/powermon/libs/schedule.py", line 129, in parseScheduleConfig
for schedule in config["schedules"]:
KeyError: 'schedules'
Sanitized powermon-test.yaml that I was used:
device:
name: Inverter_1
id: 92932108104635
model: PIP8048MAX
manufacturer: MPP-Solar
port:
type: usb
path: /dev/hidraw1
baud: 2400
protocol: PI30MAX
commands:
- command: QPIGS
trigger:
every: 15
outputs:
- type: screen
format: hass
- command: QLT
trigger:
every: 15
outputs:
- type: screen
format: hass
- command: QET
trigger:
every: 15
outputs:
- type: screen
format: hass
mqttbroker:
name: 192.168.7.100
port: 1883
username: username
password: xxxxxxxxxxxxxxxxxxxxx
adhoc_commands:
topic: Inverter_1/commands
outputs:
- name: screen
tag: Inverter_1
Any ideas as to what I did not get correct in the config?
—
Reply to this email directly, view it on GitHub
<#394 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNURHMAUH7CRJYMPFHLXW4HRFANCNFSM6AAAAAA32IGRQQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@jblance Thanks for asking. I was testing on the host and forgot to update so I was using 0.15.57. Updated to 0.16.10 and the output to the screen seems to be working as I am seeing what look like data from the inverter but I am seeing an error show up in the output:
I need to test more. |
@jblance I see that you closed this but I do not find any documentation for
config/powermon-test.yaml
I had more "missing" errors when I started but managed to take care of some of them. I also came across something you wrote in a different issue back in the middle of January Is it still the case that only serial connections are supported in |
I use USB without issues. Pydantic is a data validation library and I think something changed with the latest version since I have also found it be far more strict recently. I will add some sensible defaults for the api, daemon and loop config so they don't need to be included to pass validation. |
Here is my PR to help fix the issues your are having. #416 |
Also powermon is still under heavy development, so isnt supported or recommended as yet |
Thanks for the replies. I will have another look at For now I have my own solution to monitoring and comands using For commands, I have created configuration files for the commands that I want to run. This would be via the serial port on the inverter. With ssh key login setup from Home Assistant to the computer connected to the serial port so it can login and run commands. I have setup the commands that I want to run as shell scripts in HA. It then provides these as services that can be run from automations, etc. |
Hello,
I am interest to switch from using the
mpp-solar
command to thepowermon
in my docker container. Looking at the available options forpowermon
, it looks like I could monitor and also setup morning and evening routines to be run.However, currently in the documentation there is a title for "powermon with docker" but no text following it.
If this is currently possible any advice / documentation you can provide would be appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: