Starting a new thread as this was getting lost in the Hints, Tips & Troubleshooting thread.
Post details of your integration with Home Assistant etc.
Nope, couldn't get it to work. Those who said it would work were talking BS - hadn't actually tried themselves. I managed to get into the local portal and was attempting to scrape the data from that but I think it's more hassle than worth. I'm going to try buy an older logger instead. Until some further research and development is done with the S3 Logger (new one, 3 LEDs) then avoid IMO.
Where did you get that older logger please? need to buy one
If you're getting rid of your S3, and willing to donate to a good cause, I'll take it and see what can be done regarding local access.
Could someone please help me with the custom tesla style grid, its the only thing I cannot get to display correctly, its more the house load is incorrect most of the time. As you can see from this image. The house load (current usage) is 0.893w but its showing as 0.5kw. Below is also my code, I use the solarman addon to get the data from my solis data logger
Code:
type: custom:tesla-style-solar-power-card
battery_to_house_entity: sensor.solarman_battery_power
grid_to_house_entity: sensor.solarman_meter_active_power
generation_to_house_entity: sensor.solarman_inverter_dc_power
battery_extra_entity: sensor.solarman_battery_soc
you missging 'house_consumption_entity'. Ty it to 'current usage' sensor and it should work
Thanks for the advise, I tried added that and its reporting an even more unrelistic figure now.... lol
house_consumption_entity: sensor.solarman_house_load_power
Is your battery charging or discharging at that point?
The use is correct for the figures shown
1.5kw coming from solar, 650w from batteries and 50w from grid
The battery is charging at so shows the - 0.62KW, the Solar is generating 1.5KW and the house should be showing 0.8kw ish. for example now:
Solar is generating 5.5KW, 4.3kw is going into the battery the house should be showing its using 1.2kw
All values inputted for this should be positive I think.
Mine shows a negative when my battery is discharging.
On the Solarman sensors there is only one sensor for battery, its Postive when it is Charging then Negative when its Discharging.
Use a HA template to split those into separate charging and discharging sensors.
@reklamos has done similar in solismod3; https://github.com/NosIreland/solismon3/blob/master/main.py#L17-L54
Great thanks will have a look.
Hmm not even sure how do to this lol guess i best start googleling.
This is what you want. https://www.home-assistant.io/integrations/template/
Yup non the wiser 😂 as by the looks of the battery sensor it doesnt ever go to Negative when discharging so I guess is the tesla style mod thats working out its discharging.
I do not know how you pull values but Solis does not provide negative value. It provides 2 values: current and direction. 0 is charging 1 is discharging for direction. So take these two values and put them in if/else statement in template to get single value to make it positive or negative.
Ignore I have managed to do it :)
- sensor:
- name: "Battery Charging"
unit_of_measurement: "w"
state: >
{% if states("sensor.solarman_battery_status")=="Charge" %}
{{ states("sensor.solarman_battery_power") }}
{% else %}
0
{% endif %}
- name: "Battery Discharging"
{% if states("sensor.solarman_battery_status")=="Disharge" %}
OK, managed to also do Grid in and Grid out via sensors, just now need to work out the math for
grid_to_battery_power
total_load_power
solar_to_house_power
OK got all the sensors setup but when I enter them into the tesla style solar it gives some strange reading.... any ideas?
Get a Shelly em with 2 CT's. Simple to setup and instant information
Almost there, just cannot get the correct value for house load.
Would of thought I need to set house_consumption_entity to this but it doesnt make any differnce
This is my card at present
Thanks, I have all the correct information from my invertor and sensors I have created. Just does not play well in the Tesla Style Card.
Fix it anyone else with the issue, if you are using unit of measurement make sure is W not w.
Post up the code for the card and the templates so that other newbies can learn from it. 🙂
Its linked to all the manual sensors I have created so unless someone has the same setup it wont work unfortunately. I have learnt so much from this forum and google!
I'll hold onto it for the time being but will see later in the year. I've managed to source one of the solarman sticks so will see how I get on with that when it arrives. It might be a few weeks before I can get it setup though.
I'm getting values of 24/25 for the timed charge/discharge off/on for the solis hybrid.
I'm not entirely sure if I'm querying it correctly. Can anyone confirm the right way to do that please? :)
Most basic working example below. No error handling etc, but should suffice as a demonstration example:
from pysolarmanv5.pysolarmanv5 import PySolarmanV5 def main(): solis = PySolarmanV5('192.168.1.222', 1234512345) energy_storage_status = solis.read_holding_registers(register_addr=43110, quantity=1) print(energy_storage_status) if __name__ == "__main__": main()
How are you getting the values of 24/25? Are you querying using Modbus, amending manually on inverter screen, and then querying again?
OK, that's giving me 51 which makes more sense. I'm guessing mine is 49/51, as it does have battery reserve enabled.
I did get that number in one of the lookups but wasn't sure.
EDIT: I'll have to run through the setting on/off on the inverter again when I can get back up to the attic.
After a lot of head bashing I've gotten my Goodwe homekit measurement up and running full in home assistant.
This took a few goes ( and not really the hardwares fault - more home assistant )
Goodwes Sems portal unfortunately seems to be: a) a bit crap and b) getting updates in the immediate aftermath of my install.
Anyway for home assistant.
I'm using this integration: https://github.com/TimSoethout/goodwe-sems-home-assistant
This required setting up HACS first - not too bad and that will have further use.
The integration provides a few entities, export, import and I think load.. but there's a lot more available.
There's a sample template on the page, but it is:
for the legacy templating style ( so it can't support statistics and the hass energy page )
refers to a lot of fields from a Goodwe inverter rather than the homekit energy monitor
I've created a new template with the new templating, found it very frustrating to be honest, there's no single step by step guide I could find.. the changes from old to new are brain melting. Anyway got everything I wanted and can hook to hass energy page also. I think I'll put this onto my own github and share with the integration author.