Open frsantos opened 4 days ago
Yeah, it took me quiete a while to change the sensor names to the integration by David so my dashboards work again.
Before you start it up with my code, you can go through the deye_sg04lp3.yaml and "rematch" the sensor names to suit your needs.
But running both versions side by side (i.e. to compare them) is not possible at the moment. But switching between them should be possible as described above.
As I am now thinking about it, you know what I could add more versions of the definition file for this particular device (which would also involve the original one) ;) I look into it when I have some time to spare. ;)
I have a question on how to approach this... Do you want also definition file which will contain only original list of sensors? Or file (which will be the 'default' one) that will contain sensors with original naming + all the new sensors?
@frsantos Should be good to go since: c6dfe87
Hi David,
after 3 days of testing an rematching the sensor names I realized that all my historical data from the energy dashboard was gone.
Obviously I don’t want to loose all the history, so I restored my backup to the date before I installed your version.
All my historical data from the energy dashboard is there again with a loss of 3 days but I can live with that, rather than loosing all of it. Rematching the sensors to the original names by Stephen was to confusing for me.
I thought to try your latest version and hoped that this would solve the problem overwriting the old sensor names. It did not, so I restored once again back to the original from: https://github.com/StephanJoubert/home_assistant_solarman
As I much prefer your version as it has more sensors and is much faster pulling the data I would kindly ask you to use the original sensor names by Stephen.
This would make it much easier for me and others to upgrade to your version without doing all the conversion of sensor names.
I also realized that the Solarman configuration page is faulty:
I wasn’t able to select my “custom_components.yaml” in the Options.
I hope you can make it more convenient for non professionals to use your integration overwriting the original by Stephen.
I will come back to your integration and give it another try when it is more hassle free.
Keep up the good work and hope to be able to use your Solarman in future. I might even go for a name conversion myself if I have more time but I’m scared that the deye_SG04LP3.yaml will be overwritten again by future updates.
Joe
If it will help you to fix compatibility for the Solarman Deye Hybrid integration , here is the YAML I use with the integration 1.4.1 by Stephen Joubert:
`# SUN-8/12K-SG04LP3-EU | 8/12KW | Three Phase | 2 MPPT | Hybrid Inverter | Low Voltage Battery
requests:
parameters:
group: solar items:
name: "PV1 Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 1 registers: [0x02A0] icon: 'mdi:solar-power'
name: "PV2 Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 1 registers: [0x02A1] icon: 'mdi:solar-power'
name: "PV1 Voltage" class: "voltage" state_class: "measurement" uom: "V" scale: 0.1 rule: 1 registers: [0x02A4] icon: 'mdi:solar-power'
name: "PV2 Voltage" class: "voltage" state_class: "measurement" uom: "V" scale: 0.1 rule: 1 registers: [0x02A6] icon: 'mdi:solar-power'
name: "PV1 Current" class: "current" state_class: "measurement" uom: "A" scale: 0.1 rule: 1 registers: [0x02A5] icon: 'mdi:solar-power'
name: "PV2 Current" class: "current" state_class: "measurement" uom: "A" scale: 0.1 rule: 1 registers: [0x02A7] icon: 'mdi:solar-power'
name: "Daily Production" class: "energy" state_class: "total_increasing" uom: "kWh" scale: 0.1 rule: 1 registers: [0x0211] icon: 'mdi:solar-power' validation: max: 100 invalidate_all:
name: "Total Production" class: "energy" state_class: "total_increasing" uom: "kWh" scale: 0.1 rule: 3 registers: [0x0216,0x0217] icon: 'mdi:solar-power'
group: Battery items:
name: "Daily Battery Charge"
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.1
rule: 1
registers: [0x0202]
icon: 'mdi:battery-plus'
name: "Daily Battery Discharge"
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.1
rule: 1
registers: [0x0203]
icon: 'mdi:battery-plus'
name: "Total Battery Charge"
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.1
rule: 3
registers: [0x0204,0x0205]
icon: 'mdi:battery-plus'
name: "Total Battery Discharge" class: "energy" state_class: "total_increasing" uom: "kWh" scale: 0.1 rule: 3 registers: [0x0206,0x0207] icon: 'mdi:battery-minus'
name: "Battery Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 2 registers: [0x024E] icon: 'mdi:battery'
name: "Battery Voltage" class: "voltage" state_class: "measurement" uom: "V" scale: 0.01 rule: 1 registers: [0x024B] icon: 'mdi:battery'
name: "Battery SOC" class: "battery" state_class: "measurement" uom: "%" scale: 1 rule: 1 registers: [0x024C] icon: 'mdi:battery' validation: min: 0 max: 101
name: "Battery Current" class: "current" state_class: "measurement" uom: "A" scale: 0.01 rule: 2 registers: [0x024F] icon: 'mdi:battery'
name: "Battery Temperature"
class: "temperature"
state_class: "measurement"
uom: "°C"
scale: 0.1
rule: 1
offset: 1000
registers: [0x024A]
icon: 'mdi:battery'
validation:
min: 1
max: 99
invalidate_all:
group: Grid items:
name: "Total Grid Power" class: "measurement" state_class: "measurement" uom: "W" scale: 1 rule: 2 registers: [0x0271] icon: 'mdi:transmission-tower'
name: "Grid Voltage L1" class: "voltage" state_class: "measurement" uom: "V" scale: 0.1 rule: 1 registers: [0x0256] icon: 'mdi:transmission-tower'
name: "Grid Voltage L2" class: "voltage" state_class: "measurement" uom: "V" scale: 0.1 rule: 1 registers: [0x0257] icon: 'mdi:transmission-tower'
name: "Grid Voltage L3" class: "voltage" state_class: "measurement" uom: "V" scale: 0.1 rule: 1 registers: [0x0258] icon: 'mdi:transmission-tower'
name: "Internal CT L1 Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 2 registers: [0x025C] icon: 'mdi:transmission-tower'
name: "Internal CT L2 Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 2 registers: [0x025D] icon: 'mdi:transmission-tower'
name: "Internal CT L3 Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 2 registers: [0x025E] icon: 'mdi:transmission-tower'
name: "External CT L1 Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 2 registers: [0x0268] icon: 'mdi:transmission-tower'
name: "External CT L2 Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 2 registers: [0x0269] icon: 'mdi:transmission-tower'
name: "External CT L3 Power" class: "power" state_class: "measurement" uom: "W" scale: 1 rule: 2 registers: [0x026A] icon: 'mdi:transmission-tower'
name: "Daily Energy Bought" class: "energy" state_class: "total_increasing" uom: "kWh" scale: 0.1 rule: 1 registers: [0x0208] icon: 'mdi:transmission-tower-export'
name: "Total Energy Bought" class: "energy" state_class: "total_increasing" uom: "kWh" scale: 0.1 rule: 3 registers: [0x020A,0x020B] icon: 'mdi:transmission-tower-export'
name: "Daily Energy Sold" class: "energy" state_class: "total_increasing" uom: "kWh" scale: 0.1 rule: 1 registers: [0x0209] icon: 'mdi:transmission-tower-import'
name: "Total Energy Sold" class: "energy" state_class: "total_increasing" uom: "kWh" scale: 0.1 rule: 3 registers: [0x020C,0x020D] icon: 'mdi:transmission-tower-import'
name: "Total Grid Production" class: "energy" state_class: "total_increasing" uom: "kWh" scale: 0.1 rule: 4 registers: [0x020C,0x020D] icon: 'mdi:transmission-tower'
group: Upload items:
name: "Total Load Power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 1
registers: [0x028D]
icon: 'mdi:lightning-bolt-outline'
name: "Load L1 Power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 1
registers: [0x028A]
icon: 'mdi:lightning-bolt-outline'
name: "Load L2 Power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 1
registers: [0x028B]
icon: 'mdi:lightning-bolt-outline'
name: "Load L3 Power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 1
registers: [0x028C]
icon: 'mdi:lightning-bolt-outline'
name: "Load Voltage L1"
class: "voltage"
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x0284]
icon: 'mdi:lightning-bolt-outline'
name: "Load Voltage L2"
class: "voltage"
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x0285]
icon: 'mdi:lightning-bolt-outline'
name: "Load Voltage L3"
class: "voltage"
state_class: "measurement"
uom: "V"
scale: 0.1
rule: 1
registers: [0x0286]
icon: 'mdi:lightning-bolt-outline'
name: "Daily Load Consumption"
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.1
rule: 1
registers: [0x020E]
icon: 'mdi:lightning-bolt-outline'
name: "Total Load Consumption"
class: "energy"
state_class: "total_increasing"
uom: "kWh"
scale: 0.1
rule: 3
registers: [0x020F,0x0210]
icon: 'mdi:lightning-bolt-outline'
group: Inverter items:
name: "Current L1"
class: "current"
state_class: "measurement"
uom: "A"
scale: 0.01
rule: 2
registers: [0x0276]
icon: 'mdi:home-lightning-bolt'
name: "Current L2" class: "current" state_class: "measurement" uom: "A" scale: 0.01 rule: 2 registers: [0x0277] icon: 'mdi:home-lightning-bolt'
name: "Current L3" class: "current" uom: "A" scale: 0.01 rule: 2 registers: [0x0278] icon: 'mdi:home-lightning-bolt'
name: "Inverter L1 Power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 2
registers: [0x0279]
icon: 'mdi:home-lightning-bolt'
name: "Inverter L2 Power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 2
registers: [0x027A]
icon: 'mdi:home-lightning-bolt'
name: "Inverter L3 Power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 1
rule: 2
registers: [0x027B]
icon: 'mdi:home-lightning-bolt'
name: "DC Temperature"
class: "temperature"
state_class: "measurement"
uom: "°C"
scale: 0.1
rule: 2
offset: 1000
registers: [0x021C]
icon: 'mdi:thermometer'
name: "AC Temperature"
class: "temperature"
state_class: "measurement"
uom: "°C"
scale: 0.1
rule: 2
offset: 1000
registers: [0x021D]
icon: 'mdi:thermometer'
name: "Inverter ID"
class: ""
state_class: ""
uom: ""
scale: 1
rule: 5
registers: [0x0003,0x0004,0x0005,0x0006,0x0007]
isstr: true
name: "Communication Board Version No."
class: ""
state_class: ""
uom: ""
scale: 1
rule: 1
registers: [0x0011]
isstr: true
name: "Control Board Version No."
class: ""
state_class: ""
uom: ""
scale: 1
rule: 1
registers: [0x000D]
isstr: true
group: Alert items:
Are you sure you used the latest version? Cause you can look in the file and see that the sensor names are the same though. :) (ofc if I didn't forget any)
Edit: To be clear I'm talking about 'deye_sg04lp3.yaml' file from Stephans latest version.
Edit2: Ok so it seems that you are also not using Stephan's official inverter definition file. In that case, if you put your yaml file in the 'inverter_definition' folder, you will be able to load it. But only with sensors you defined there, of course.
Hi David,
That sounds great! You are tempting me to give it another try. I’m ready to check it out as soon as possible and will let you know if it works well. I’m backup before, so if anything goes wrong it will be possible to roll back.
Thanks for letting me know!
Hi David,
Just saw your new integration and I'd like to test it, but then I just read this comment
Would be any way of testing this in parallel? I don't like the idea of this overwriting names or values from the other working integration.
Thank you!