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

Something broke: 'brightness' #4

Closed
CrasyHarry opened this issue Aug 25, 2022 · 9 comments
Closed

Something broke: 'brightness' #4

CrasyHarry opened this issue Aug 25, 2022 · 9 comments

Comments

@CrasyHarry
Copy link

I have a issue.
This is the log:

Logger: custom_components.juwel_helialux.sensor
Source: custom_components/juwel_helialux/sensor.py:117
Integration: juwel_helialux (documentation, issues)
First occurred: 10:12:22 (18 occurrences)
Last logged: 10:46:23

Something broke: 'brightness'

I'm new in HA.. i need some help . Please.

@CrasyHarry CrasyHarry closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2022
@CrasyHarry CrasyHarry reopened this Sep 4, 2022
@CrasyHarry
Copy link
Author

????????????

@dMopp
Copy link

dMopp commented Nov 14, 2022

Project seems to be dead :(. Same issue here

#033[31m2022-11-14 08:33:49.732 ERROR (SyncWorker_15) [custom_components.juwel_helialux.sensor] Something broke: 'str' object does not support item assignment#033[0m

@MrSleeps
Copy link
Owner

MrSleeps commented Nov 14, 2022

Sorry, I no longer use home assistant.

Just reinstalled HA on a vm and I can't replicate the error, works out of the box for me.

I'll run it for a few hours and see what pops up in the logs

@MrSleeps
Copy link
Owner

MrSleeps commented Nov 14, 2022

It's been running for over an hour and I haven't received a single error in my logs related to the integration , everything is running as it should be.. I've tried everything I can think of, even powering down the Juwel Controller but aside from the unreachable error it doesn't throw up anything else..

So sadly, unless you can provide a full debug log for me to have a butchers at there's not a huge amount I can do, totally unable to replicate the error..

Have you tried restarting HA?

Sorry!

On a side note, have found an error where the stats don't seem to show up after the controller loses power..

@dMopp
Copy link

dMopp commented Nov 14, 2022

This is a random thing, works for days or stop working after few hours, i cant tell you why, too.

Anyway i found a solution for myself:

  - platform: command_line
    name: Helialux Profile
    unique_id: helialux_profile
    command: curl http://192.168.99.197/statusvars.js | awk -F \; '{print $6}' | cut -d '=' -f2 | sed "s@'@@g"

  - platform: command_line
    name: Helialux White
    unique_id: helialux_white
    unit_of_measurement: "%"
    command: curl http://192.168.99.197/statusvars.js | awk -F \; '{print $10}' | cut -d '=' -f2 | cut -d ',' -f1 | sed "s@\[@@g" | sed "s@\]@@g"
  
  - platform: command_line
    name: Helialux Red
    unique_id: helialux_red
    unit_of_measurement: "%"
    command: curl http://192.168.99.197/statusvars.js | awk -F \; '{print $10}' | cut -d '=' -f2 | cut -d ',' -f4 | sed "s@\[@@g" | sed "s@\]@@g"
  
  - platform: command_line
    name: Helialux Green
    unique_id: helialux_green
    unit_of_measurement: "%"
    command: curl http://192.168.99.197/statusvars.js | awk -F \; '{print $10}' | cut -d '=' -f2 | cut -d ',' -f3 | sed "s@\[@@g" | sed "s@\]@@g"
  
  - platform: command_line
    name: Helialux Blue
    unique_id: helialux_blue
    unit_of_measurement: "%"
    command: curl http://192.168.99.197/statusvars.js | awk -F \; '{print $10}' | cut -d '=' -f2 | cut -d ',' -f2 | sed "s@\[@@g" | sed "s@\]@@g"

Its dirty bash/curl mix but works fine for me and because i only what to read its totally enough

@MrSleeps
Copy link
Owner

Have pushed an update, should be available in HACS shortly.. I think the error might be down to timeouts/offline (again, couldn't replicate anything).

Feel free to give it a try and open a new issue if the problem still exists.

I'll be reinstalling HA at some point so I should be able to debug things easier.. Moving house sucks.

@jakerol
Copy link

jakerol commented Nov 17, 2022

I had this issue all the time and no data. Noticed that I had firmware 1.0 in Helialux smart control. When I updated the firmware to the latest (ver 2.2.2) it all started to work.

@MrSleeps
Copy link
Owner

Ahh that's interesting, thanks for that info.. Mine is v2.1, the information it provides is probably different between v1 and v2..

I'll add that to the readme :)

@beckerj
Copy link

beckerj commented Nov 21, 2022

Version 2 is a complete overhaul of the software, version 1 was a nightmare.
This german site has a nice overview about what changed:
https://www.abenteuer-aquarium.de/alles-besser-in-2-0-neue-firmware-wertet-den-helialux-smartcontrol-ordentlich-auf/
Google Translate english version:
https://www-abenteuer--aquarium-de.translate.goog/alles-besser-in-2-0-neue-firmware-wertet-den-helialux-smartcontrol-ordentlich-auf/?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=de&_x_tr_pto=wapp

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

5 participants