Code Monkey home page Code Monkey logo

hassio-axpert's People

Contributors

mindfreeze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hassio-axpert's Issues

hidraw0 not correct one.

hidraw0 is not correct device all time.
What happens if PC used have Touch screen?
What if have also attached UPS?

# ll /dev/hidraw*
crw-rw-rw- 1 root plugdev 240, 0 юли 30 23:58 /dev/hidraw0
crw-rw-rw- 1 root plugdev 240, 1 юли 30 23:58 /dev/hidraw1
crw-rw-rw- 1 root plugdev 240, 2 юли 30 23:58 /dev/hidraw2

what is what

#!/bin/bash

FILES=/dev/hidraw*
for f in $FILES
do
  FILE=${f##*/}
  DEVICE="$(cat /sys/class/hidraw/${FILE}/device/uevent | grep HID_NAME | cut -d '=' -f2)"
  printf "%s \t %s\n" $FILE "$DEVICE"
done

in case

# ./hid.sh
hidraw0          American Power Conversion  Smart-UPS C 1500 FW:UPS 10.0 / ID
hidraw1          STMicroelectronics HID in FS Mode
hidraw2          HID TOUCH HID Touch Panel

# lsusb
Bus 001 Device 007: ID 13d3:5129 IMC Networks USB2.0 UVC VGA WebCam
Bus 001 Device 005: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 002: ID 04ca:f001 Lite-On Technology Corp. TvTUNER
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 1bfd:1688 TouchPack Resistive Touch Screen
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial  <<< INVERTER
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 051d:0003 American Power Conversion UPS
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Is it possible to have some automation for this cases?

I have and Error in logs.

I have Voltronic Axpert III 3kw inverter and installed on hassio hassio-axpert application. When it start that has an error. IT can't receive any data from inverter, Mqtt queue is empty.

Is it support my inverter this application?

By the way I can receive data from my inverter via https://github.com/ned-kelly/docker-voltronic-homeassistant docker application on an additional raspberry pi device to the mqtt.

LOGS:
Axpert Inverter
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
/dev/hidraw0
QID
(553555355535552�
Reading from inverter 55355535553555
QPGS0
error reading inverter...: NAKss
/dev/hidraw0
QPGS0
error reading inverter...: NAKss
/dev/hidraw0
QPGS0
error reading inverter...: NAKss
/dev/hidraw0
QPGS0
error reading inverter...: NAKss
/dev/hidraw0
.....

Description of Nakss

Hi! Thanks for developing this addon for Home Assistant.

When trying to integrate my Axpert inverter over USB, I'm getting the following error:

error reading inverter...: NAKss
/dev/hidraw0

I have verified that it's at /dev/hidraw0 and I'm not sure where to take it from here.

Thanks.

implement Python3

Hi.
I'm trying to implement changes to python3. First, I changed the code in the Dockerfile. I followed your code for "Daly BMS". It works, the solution installs, but I have a problem in the monitor.py code:
"
try:
xmodem_crc_func = crcmod.predefined.mkCrcFun(rb'xmodem')
command_crc = command + unhexlify(hex(xmodem_crc_func(command)).replace('0x','',1)) + '\x0d'
"

I see an error in the add-on log:

"
error parsing inverter data...: cannot access local variable 'file' where it is not associated with a value
QPIRI
error reading inverter...: Unicode-objects must be encoded before calculating a CRC
error parsing inverter data...: cannot access local variable 'file' where it is not associated with a value
QPGS0
error reading inverter...: Unicode-objects must be encoded before calculating a CRC
error parsing inverter data...: cannot access local variable 'file' where it is not associated with a value
QPIGS
error reading inverter...: Unicode-objects must be encoded before calculating a CRC
"

I can't figure out how to solve the problem. I know you no longer support this add-on, but maybe you could find a solution? I have been using this supplement for years and I really like it. This is the only solution that works natively with USB

Docker RESTARTING (139)

Hi. Thank you for this very interesting piece of work you did!

I have followed all instructions but I didnt see any messages coming through. Upon further investigation I did a docker ps. It seems that the docker ha-voltronic-mqtt keeps sitting in a RESTARTING (139) state.

I have searched the internet for this and most comments recommended that there could be an architecture issue. I’m running a Pi Zero W so it shouldn’t be an issue. Anyway, I uncommented the part to rebuild in docker-compose.yml to see if this will work. I’ve tried to stop all dockers, doing a docker prune, then starting/rebuilding but still the error persists.

Loading Addon

Hi I am having an issue loading the addon, For the repo I am using the following URL
https://github.com/MindFreeze/hassio-axpert

But unfortunately, I am getting the following error in my log files.
18-12-03 13:31:03 INFO (MainThread) [hassio.addons.git] Clone add-on https://github.com/MindFreeze/hassio-axpert repository 18-12-03 13:31:06 WARNING (MainThread) [hassio.addons.data] Can't read repository information from /data/addons/git/0ebb3a46/repository.json 18-12-03 13:31:06 INFO (MainThread) [hassio.addons] Load add-ons: 48 all - 0 new - 0 remove

s6-overlay-suexec: fatal: can only run as pid 1

H.
this solution looks perfect, but i get a startup error:
s6-overlay-suexec: fatal: can only run as pid 1

My config:
Raspberry Pi 4B
core-2022.5.5
supervisor-2022.05.2
Home Assistant OS 7.6
Please Help:)

Update commands for inverter not working

Hi...

Thanks for this project, helped me get started with reading data from Axpert inverter.

What im struggling with is sending commands for updating the inverter. Is there a different format on how to send the commands.

This does not work:

response = serial_command('POP02')

response is NAK.

Guidance on how to get this working will be greatly appreciated.

Kind regards
Hemant

No idea how to install.

Do I run this container on hassio portainer. I need some more imput. Can someone give me a link?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.