Git Product home page Git Product logo

Comments (8)

Ziyatoe avatar Ziyatoe commented on June 12, 2024

from dtuprocontroller.

dpsmarty1811 avatar dpsmarty1811 commented on June 12, 2024

Hi thanks for the quick reply, sorry for being so stupid but I'm an absolute newbie in this area.
Have no yaml ,pyhton or json knowledge.

I have an old Intel Nuc running Home Assistant.
I have integrated the ModBus via a USB to RS485 interface and thus read out my Chint DTSU 666.

I understand how your script works, but unfortunately I don't know how to use it or I need help on how to get it to work.

I installed Nodered in Home Assistant and pyhtonscript, but have already tried everything to get your script to work, but without success.

I'm probably acting very stupid, but I'd still be very grateful if you could help me somehow to get your script running.

Thank you for your work and sorry for my absolute helplessness

Best regards from Germany

from dtuprocontroller.

Ziyatoe avatar Ziyatoe commented on June 12, 2024

from dtuprocontroller.

dpsmarty1811 avatar dpsmarty1811 commented on June 12, 2024

Hey, thank you for the reply,

-I have adjusted the addresses of the DTU Pro and the DTSU.

"Could you run the python script? what is your run command for the
Script? and what is the output of the script while running?"

That's my problem, I can't get it to run
I do not know how ?

I now think the problem is that I'm trying to run it under HomeAssistant?

but unfortunately i wouldn't know how with my limited knowledge about the whole thing.

I think I'll let it be and do the zero export again via the Hoymiles Cloud, even if it's bad.

But thank you very much for your help and your great work.

All the best from Germany

from dtuprocontroller.

dpsmarty1811 avatar dpsmarty1811 commented on June 12, 2024

Hey sorry that I'm annoying again, but it didn't let me rest.

I kept trying. Now I found out how to start the script. But get an error message.

dtupro_ctrl.py> line 423: global InvIdPowr ^ SyntaxError: global statement outside function

Since, as I said, I have no idea about Python, do you have a tip?

from dtuprocontroller.

Ziyatoe avatar Ziyatoe commented on June 12, 2024

you had to first reopen this issue, because your last statement "I think I'll let it be ..." I closed it
I mean, its difficult to help you, if you have no idea how to use python...

  • what version of python are you using? and on what, windows,mac, linux?
  • what is your command line for the the script, how do you start it?

from dtuprocontroller.

dpsmarty1811 avatar dpsmarty1811 commented on June 12, 2024

Yes, I know, sorry, but somehow I have the hope that I can get it.

I have an Intel Nuc running Home Assistant.
In Home Assistant I tried to start your script under pyscript.
As far as I understand it is Python 3

I tried to start it from Home Assistant and in the logs I see the following error
" ERROR (MainThread) [custom_components.pyscript.file.dtupro_ctrl] Exception in </config/pyscript/dtupro_ctrl.py> line 423:
global InvIdPowr
^
SyntaxError: global statement outside function

Yes I am absolutely helpless, sorry

from dtuprocontroller.

Ziyatoe avatar Ziyatoe commented on June 12, 2024

I can not help you with home assistant, no idea what its doing,,..
I asked you the version of python, you should give me an exact version nr, python 3 is not a version number!!

you can not run the script without arguments!!!!
if you have python installed on your pc, you have to start the script in a terminal window like this:
python dtupro_ctrl.py 1 1
(or maybe its python3 instead of python)
and send me the output

from dtuprocontroller.

Related Issues (3)

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.