-
Notifications
You must be signed in to change notification settings - Fork 4
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
Home assistant and more #1
Comments
Hi, I use Net2, as shown in the manuel, but NET1 should work too (but noch testet). The Gateway-Port is completely useless. This should be for the smart meter gateway, but this port don't have any function at the moment (response of the support). I don't understand which gateway do you mean ("mqtt and a gateway where the data..). The connection to net1 is working? You mqtt topic got data (you configure mqtt and an sensor of type mqtt_subscribe)? You got any data (see logs of the esp himself)? Otherwise toggle the wires, because rs485 don't work, if the wires are switched. Here is my complete configuration incl. my automation. Hope it helps?! Esphome Config
AutomationRequirementsRequirement are three helper:
And I use a sensor to use the mean power of the smart meter of the last 5min, to prevent to start charging just of a few seconds with enough power available.
Config
|
Okay - you just passthrough the rs485 communication to mqtt. You need to create a custom component for HA or try to implement the required function with an automation based on the mqtt events. I never made a custom component for HA and using a automation would not be easy, due to the crc.
To calculate the complete message something like this could be possible with jinja templates?! But don't know how to use it with mqtt, because I never used it. But seems you could use it as payload_template of the mqtt.publish service. But there I could ne help anymore - sorry.
|
I buy this https://www.waveshare.com/esp32-s3-dev-kit-n8r8.htm?sku=24363 and this https://www.waveshare.com/rs485-board-3.3v.htm is it ok ? |
Hi, |
Hello, |
I bought an esp32 with this But when I want to change it via Home assistant it doesn't work an idea ? Here is my configuration:
|
Hi @Userfreedu42, It works as expected when you change the value on the wallbox and the requested current changed, but not when you change it with the number component. The wallbox will request always the maximum they will use ( The revision A1 don't have any registers I could read to get the currently used current, I only get the request. Sorry, but this is how it works. I have also trouble after long standby. Then the wallbox sometimes ignores the loadbalancing and I could not really see anything in HA. Only the calculated consumtion and the real one do not match. This could only be fixed by stopping and starting (tap 5s on the button of the display or completly unplug/plug the charger). |
Hi @bammab, I've done it, I can control my wallbox With your equipment, I can change the load power (min 6 A, 7, 8, ... up to 32 A) I set USWB22A2 Requested Current to 32 A and I modify USWB22A2 Allowed Current according to the production of electricity without stopping the load and the current sent by the wallbox is well that of USWB22A2 Allowed Current. Thank you very much for your help and your work. |
@Userfreedu42 Can you please share all your code and wiring please? I have a 22 kW USWB 22 A2 |
|
Thanks @Userfreedu42 I set the Wallbox to MASTER (1) and connected A+ to NET2 485A and B+ to NET2 485B. (the wallbox limit is set to 16A) Running the script with an small adjustment (not lowering max current) I get this output: 2024-04-05 20:29:00,186 - INFO - Logger setup successful When I switch the Wallbox to SLAVE 2 I'm getting an Error 20: "RS485 slave error, connection with the charger is lost" even without running the script. My goal is to control the Wallbox via python (as part of Home Assistant) on an intel nuc running Debian. Could you put my in the right direction or do you think I should give up and go the ESP32 way? |
I understand, I control the Wallbox via an esp32 (as part of Home Assistant) on an pi4 Perhaps this can be done using python but I don't know how, sorry. |
Hello Thank you for your work, I'm trying to understand and I'd like to know if we can integrate your code into home assistant. I connected the ultimate speed to Home assistant with mqtt and a gateway where the data goes to a topic. But then I block, is it feasible? My connections are on the Net1 as the master, it didn't work on the gateways. Have you made the same connections? Do you speak French? Thanks
The text was updated successfully, but these errors were encountered: