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

Wallbox #3

Open
Bugstehude opened this issue Oct 23, 2020 · 13 comments
Open

Wallbox #3

Bugstehude opened this issue Oct 23, 2020 · 13 comments

Comments

@Bugstehude
Copy link

Is it possible to add the Data from the Senec Wallbox? The lala.cgi should altough deliver this data

@mchwalisz
Copy link
Owner

It should be possible but I do not own it, so it will be much harder to test.

Would you be able to provide me API responses?

@Bugstehude
Copy link
Author

Hi here is the Request where you can see the Structure.

curl http://xxx/lala.cgi -H 'Content-Type: application/json' -d '{"WALLBOX":{"APPARENT_CHARGING_POWER":"","MAX_TOTAL_CURRENT_BY_GRID":"","L1_USED":"","L2_USED":"","L3_USED":"","EV_CONNECTED":""} }}'

RESULT:

{"WALLBOX":{"APPARENT_CHARGING_POWER":["fl_00000000","fl_00000000","fl_00000000","fl_00000000"],"MAX_TOTAL_CURRENT_BY_GRID":"fl_00000000","L1_USED":["u8_00","u8_00","u8_00","u8_00"],"L2_USED":["u8_00","u8_00","u8_00","u8_00"],"L3_USED":["u8_00","u8_00","u8_00","u8_00"],"EV_CONNECTED":["u8_00","u8_00","u8_00","u8_00"]}}

I Think the first respond is the summary and the 2-4 Respond are the variable for Wallbox 1 to 3. I Think for the most people is Response 1 enough.

if you go to http://Senec-IP/vars.html you can see all possible Variables. Section is the first part (here Wallbox) and variable is the variable ;) I Think the variables select in the statement above should be enough.

I can test it if you wish.

@Smart4Home
Copy link

Hi
I am also interested in adding the Senec Wallbox and would help in testing. The Curly Data looks similarly identical. But i´ll post ist anyway.

I'd appreciate if you implement these feature.

curl http://SENEC_IP/lala.cgi -H 'Content-Type: application/json' -d '{"WALLBOX":{"APPARENT_CHARGING_POWER":"","MAX_TOTAL_CURRENT_BY_GRID":"","L1_USED":"","L2_USED":"","L3_USED":"","L1_CHARGING_CURRENT":"","L2_CHARGING_CURRENT":"","L3_CHARGING_CURRENT":"","EV_CONNECTED":"","MIN_CHARGING_CURRENT":""} }}'

{"WALLBOX":{"APPARENT_CHARGING_POWER":["fl_46125447","fl_00000000","fl_00000000","fl_00000000"],"MAX_TOTAL_CURRENT_BY_GRID":"fl_00000000","L1_USED":["u8_01","u8_00","u8_00","u8_00"],"L2_USED":["u8_01","u8_00","u8_00","u8_00"],"L3_USED":["u8_01","u8_00","u8_00","u8_00"],"L1_CHARGING_CURRENT":["fl_414B3333","fl_00000000","fl_00000000","fl_00000000"],"L2_CHARGING_CURRENT":["fl_4161999A","fl_00000000","fl_00000000","fl_00000000"],"L3_CHARGING_CURRENT":["fl_415E6666","fl_00000000","fl_00000000","fl_00000000"],"EV_CONNECTED":["u8_01","u8_00","u8_00","u8_00"],"MIN_CHARGING_CURRENT":["fl_40C00000","fl_41000000","fl_00000000","fl_00000000"]}}

@JoJa1101
Copy link

JoJa1101 commented Oct 20, 2021

I am also interested in adding the SENEC Wallbox.

@mchwalisz Hey Mikołaj, are you also interested in implementing the wallbox into your integration?

Regards

@guevara777
Copy link

this is a great integration for my senec home. Thank you very much. would love to see wallbox integrated in the future! Good Work!

@klaus1956
Copy link

I think the problem is that there are 2 differennt ways of WB integration:

  • people who buy the WB including the SENEC software package have less need for more (event this seems to be far away from perfect)
  • others save that and have just a WB - coincidently the SENEC-WB and can find solutions in the web (e.g. https://www.goingelectric.de/forum/viewtopic.php?f=34&t=38749 (sorry German only))

@mchwalisz
Copy link
Owner

I'd be interested in adding wallbox into the integration. I can try to add simple sensors based on my unit (without wallbox) and the output above.

On the other hand and looking at the link above, I will not be able to do anything more. I'd be glad to accept PR with the changes from someone having wallbox and showing the integration.

@Kippschalter
Copy link

Thank you for your home Assistant integration of the SENEC battery. Great work! THANK YOU!
Unfortunately I am still struggling with the integration of the new Energy functionality. The entity is not configured ?!? I will get that out too ;-)
I would also be interested in the Wallbox integration and am available for testing with limited programming skills ;-)

@JoJa1101
Copy link

JoJa1101 commented Jan 6, 2022

Thank you for your home Assistant integration of the SENEC battery. Great work! THANK YOU! Unfortunately I am still struggling with the integration of the new Energy functionality. The entity is not configured ?!? I will get that out too ;-) I would also be interested in the Wallbox integration and am available for testing with limited programming skills ;-)

Read this first: #12 (comment)

Regards

@schimi42
Copy link

I submitted a pull request to both pysenec and home-assistant-senec to enable the basic wallbox data.

@Basti-Fantasti
Copy link

I'd be available for wallbox testing as well...

@Kuechenfenster
Copy link

One more Wallbox tester here!!!
Where to start?!

@Basti-Fantasti
Copy link

As the wallbox consumption not being available by default, I found a workaround solution for me using templates in Home Assistant

- platform: template
  sensors:
    wallbox_consumption:
      friendly_name: Wallbox
      value_template: >-
        {% if states('switch.mycar_charger') == 'on' %}
          {% set wbpower = states('sensor.senec_solar_generated_power') | float - states('sensor.senec_house_power') | float + states('sensor.senec_grid_state_power') | float%} 
        {%else%}
          {%set wbpower = 0 %}
        {%endif%}  
        {{wbpower}}
      unit_of_measurement: "W"

Basically I check, if my car is connected to the wallbox. I do this using the custom Tesla integration.
Then I take the "actual generated power" - "house power usage" + "exported power to grid"

e.g.

actual_generated = 18000W
house_consumption = 300W
exported = -7000W

wbpower = 18000-300+(-7000) = 10700W

if the car is not connected I always output 0W
in principle the connected car can also be detected by measuring the resulting value as shown above and set a threshold to e.g. for a Tesla to the minimum charing rate of 5A * 3 * 220V = 3300W.
So wbpower_value > 3000W could toggle car present on or off.
This should also work when no power is generated but only imported from grid

actual_generated = 0W
house_consumption = 300W
exported = 7000W

wbpower = 0-300+7000) = 6700W

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

10 participants