-
Notifications
You must be signed in to change notification settings - Fork 12
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
Voltage not maching string #80
Comments
What is the version and model of your juicebox ? This message does not have the starting version and neither the checksum, and the Voltage field is missing one digit compared with others. Thats why value is wrong. |
@troydangerfield can you send more messages from you device, when not connected, connected and charging also ? and please indicate the what the condition for each message |
This is an old unit JuiceBox 40 Pro No LED's or display just a box and cable. I lost app support about 6 months ago, so this project has allowed me to read the data. Telnet info is Looking over the code I had to set the following to fix the id error email.name_address: I also changed the remote server address to point to my HA box (note I am using Wozz's wrapper.) I will send more Debug logs once I put the car on charge tonight. One option I guess is I could just create a new sensor and X's the value by 10 :) Thanks |
@troydangerfield I added to my PR #69 decoding for the message that you sent, and if no version found in message it will not multiply by 0.1 If you can test this changes we will know also if the commands work in your device. Also I dont think that will be a problem to don't multiply by 0.1 if voltage that came from juicebox is lower than 300. Probably more people with other versions will came searching for solution with other versions and we will have more information about best solution this this differecences. |
As I have used the wrapper, I can not seem to 1 find the code on the HA system ( I have looked, and would love some direction) or 2 how to load a differnt version. Any help would be great. On the log side, this is plugged in hmd/sensor/JuiceBox/Power/state This is charging [ha_mqtt_discoverable.sensors] Setting Power to 338.39 using hmd/sensor/JuiceBox/Power/state I have also noted that the voltage always shows 24.7 and I do know our voltage in this are goes up and down, and Setting Energy (Session) is always showing 14.0. The Temp / current / energy all change when charging. Thanks again for your keen help. Troy |
@troydangerfield this two messages does not have the S field, the first that you send has the S0, what was the state when that message was sent ? The car was really unplugged that time ? The Energy Lifetime is going up at least ? Maybe E is a different thing in this version of protocol. About Voltage does not changing we cannot do much if the device does not send correct values. I dont know if I understand correctly about "As I have used the wrapper, I can not seem to 1 find the code on the HA system ( I have looked, and would love some direction) or 2 how to load a differnt version." I use a docker container and to use different version I have override the files using VOLUMES:
I'm placing this two new messages on my version at #69 and this can help integrate later on main code. |
Update: So I created some extra sensors, that * voltage by 10 and then by the current to work out the power. This is a work around until I can find a way to access the code and make changes. It has been suggested we turn this into a Addon for HAOS, which would mean we can update the code via system. Also some extra logs, '081107211258014850420158808:V221,L11162,S0,T27,E14,i73,e1,t30:\n\r\n' '081107211258014850420158808:V247,L11156,E13322,A138,T28,t10,E14,i41,e1:\n\r\n' Again thanks, I now have some values on my dashboard on what is happing with my EV Charger. :) |
@troydangerfield I have added code to keep this duplicate values in my PR, but I don´t know exactly what is best behaviour to use this values now. I have made an estimate for status based on current when it it not sent. But for now without more constant logs I dont think that I can support all this differences from newer protocol. |
When I pull the sensor data into HA I see my voltage as 24.7 but in the string it shows as V247 any suggestions on how to fix this?
Thanks again for all the help with this great project!!!!
Let me know if you need any other information.
Troy.
LOG:
2024-06-19 12:50:52 INFO [ha_mqtt_discoverable.sensors] Setting Voltage to 24.7 using hmd/sensor/JuiceBox/Voltage/state
..
2024-06-19 12:50:52 INFO [ha_mqtt_discoverable.sensors] Setting Temperature to 93.2 using hmd/sensor/JuiceBox/Temperature/state
2024-06-19 12:50:52 INFO [ha_mqtt_discoverable.sensors] Setting Power to 0.0 using hmd/sensor/JuiceBox/Power/state
2024-06-19 12:51:22 DEBUG [juicebox_mqtthandler] From JuiceBox: b'081107211258014850420158808:V247,L11097,S0,T34,E14,i84,e1,t30:\n\r\n'
The text was updated successfully, but these errors were encountered: