Skip to content
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

generate_esphome_jura_yaml.py #2

Closed
DrJeff opened this issue Jun 11, 2020 · 3 comments
Closed

generate_esphome_jura_yaml.py #2

DrJeff opened this issue Jun 11, 2020 · 3 comments

Comments

@DrJeff
Copy link

DrJeff commented Jun 11, 2020

Is this file generate_esphome_jura_yaml.py necessary?
Or is it to just create the yaml for the wemos?

Please teach me I'm not getting this my 🤓 powers aren't working

@DrJeff
Copy link
Author

DrJeff commented Jun 11, 2020

Ok I get it now but cant get it to run bitarray not found even after adding the module

Also I can get it to run but error

❯ ./generate_esphome_jura_yaml.py FA:04
Traceback (most recent call last):
  File "./generate_esphome_jura_yaml.py", line 14, in <module>
    from bitarray import bitarray
ModuleNotFoundError: No module named 'bitarray'
❯ python ./generate_esphome_jura_yaml.py FA:04
  File "./generate_esphome_jura_yaml.py", line 46
    print("- uart.write: [", end = '')
                                 ^
SyntaxError: invalid syntax

@ryanalden
Copy link
Owner

Thanks for the feedback -- I added an example to reflect the usage of generate_esphome_jura_yaml.py.

As for bitarray, how are you installing it? I just verified it working on another, pristine machine (running macos 10.15). Installed with sudo pip3 install bitarray, running Python 3.7.3. What environment are you running in?

@DrJeff
Copy link
Author

DrJeff commented Jun 11, 2020

Ok I cloned the directory on one of my machines and Viola! it works thanks for this now time to play. I believe it's how my python install was on my Mac

Thanks for this The only issue is my machine Ena 9 loses power on the service port on shutdown so probably going to need to use 2 relays internally for the power. mainly to turn back on the unit and I will probably run the unit off a 5V power source internally.

@DrJeff DrJeff closed this as completed Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants