Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

randomfool

Members
  • Joined

  • Last visited

Everything posted by randomfool

  1. It just needs a few minor visual edits then it's ready to share. On holiday this week so dont have much time to look at it. I will share where I am at later tonight, everything now works. Got the inverter status and using the same timer layout slip06x uses. I was planning on integrating the Octupus Agile Dashboard rates card for UK users but I've not done yet. You'll require a slightly modified configuration.yaml to go with this dashboard.
  2. I am making good progress on converting slip06x excellent dashboard to work with Gary's brilliant work on gathering the data from the latest Sunsynk inverters remotely. Will publish the dashboard below for others to use when I have ported all of the sensors and fixed the various layout issues and CSS irregularities. I have integrated the Automation and Events card on the right hand side. Still need to fix the System Timer and some other parts but will get on to that.
  3. I think I have just fixed it and noticed what is wrong. In the attributes when you look at "Entities" it shows for example "EtodayChg", but the attribute when you go to Developer Tools and States shows "etodayChg". I was not aware it would be different and did not know the Developer Tools State Attributes could differ from the entities attribute values.
  4. time: Missing etodayChg: '11.4' etodayDischg: '2.6' emonthChg: '61.1' emonthDischg: '49.0' eyearChg: '446.1' eyearDischg: '404.2' etotalChg: '405.7' etotalDischg: '365.3' type: 1 power: 325 capacity: 200 correctCap: 200 current: 6.1 voltage: 53.2 temp: 19 soc: 99 chargeVolt: 57.6 dischargeVolt: 0 chargeCurrentLimit: 21 dischargeCurrentLimit: 192 maxChargeCurrentLimit: 0 maxDischargeCurrentLimit: 0 bms1Version1: 0 bms1Version2: 0 current2: Missing voltage2: Missing temp2: Missing soc2: Missing chargeVolt2: Missing dischargeVolt2: Missing chargeCurrentLimit2: Missing dischargeCurrentLimit2: Missing maxChargeCurrentLimit2: Missing maxDischargeCurrentLimit2: Missing bms2Version1: Missing bms2Version2: Missing status: 2 batterySoc1: 0 batteryCurrent1: 0 batteryVolt1: 0 batteryPower1: 0 batteryTemp1: 0 batteryStatus2: 0 batterySoc2: Missing batteryCurrent2: Missing batteryVolt2: Missing batteryPower2: Missing batteryTemp2: Missing numberOfBatteries: Missing batt1Factory: Missing batt2Factory: Missing correctcapacity: 200 etotalchg: 405.7 etotaldischg: 365.3
  5. I thought I had fixed this; but apparently not. Made it case sensitive and no change. - sensor: - name: "Sunsynk Battery etodaychg" state_class: total_increasing unique_id: "sensor.sunsynk_battery_etodaychg" device_class: energy unit_of_measurement: kWh state: > {{state_attr('sensor.sunsynk_battery', 'EtodayChg')|float}} I have also tried - sensor: - name: "Sunsynk Battery Charge Today" state: > {{state_attr('sensor.sunsynk_battery', 'EtodayChg')|float(0)}} Still unsure what I am doing wrong.
  6. Looking for a bit of help. Unsure where I am going wrong... I can see the values below in the sensor.sunsynk_battery template, I am trying to create a sensor for each of these attributes. This is the yaml template I am using to get the data; this works for the etotalchg but not etodaychg - sensor: - name: "Sunsynk Battery Charge Today" state_class: total_increasing unique_id: "sensor.sunsynk_battery_etodaychg" device_class: energy unit_of_measurement: kWh state: > {{state_attr('sensor.sunsynk_battery', 'etodaychg')|float}} I have also tried to create just the sensor to get the data; this also fails. - sensor: - name: "Sunsynk Battery Charge Today" state: > {{state_attr('sensor.sunsynk_battery', 'etodaychg')|float}} I see these errors in the log file, however this is the same with many other sensors and has previously been discussed so not sure this is of any value. TemplateError('ValueError: Template error: float got invalid input 'None' when rendering template '{{state_attr('sensor.sunsynk_battery', 'etodaychg')|float}}' but no default was specified') while processing template 'Template("{{state_attr('sensor.sunsynk_battery', 'etodaychg')|float}}")' for attribute '_attr_native_value' in entity 'sensor.sunsynk_battery_charge_today' I am unsure where I am going wrong; any ideas HA experts? Thanks
  7. Apologies for the delay Gary, see below. I believe the attribute is Time[segment]On e.g. Time1On, Time2On etc. 1 being enabled, 2 disabled. I assume in node-red it would go something like this:- var timeon= global.get(global.get("HA") + '.states[\'sensor.sunsynk_settings\'].attributes.Time1On'); I would need to figure out a way of getting the currrent time segment and writing it back to the correct attribute or a simpler way might be to just have a boolean toggle for each time segment in the UseTimer card that links back to each variable, but I've not done this before so would appreciate your thoughts.
  8. Thanks Gary. Have to say I wouldn't of known where to begin but working on this setup for HA has opened a whole new world for me to explore with home automation. Its genuinely really impressive. Now I need to work out how to automatically enable grid export mode based on a timer, in the UK its profitable to take from the grid overnight when its cheap then export the battery in the morning, profiting the difference. I'd probably tie this into the weather so would only do this if it was a sunny/partly sunny day when I knew PV would subsequently recharge the battery and provide my home requirements as it would otherwise be a false economy.
  9. Thanks Gary. I'll update, and purge old data.
  10. Is there a way to mute a warning in ha? This one occurs all the time. 2023-03-21 23:24:13.682 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.sunsynk_temp_data exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
  11. Thanks for the explanation. I'll revert the changes and ignore the errors, although so far I haven't spotted any anomalies.
  12. Also minor update to hide the log errors for a few of the sensors, you need to update the configuration.yaml sensors as follows (I did them all just for completeness) float requires updating to: float(0) HA requires a default value.
  13. Yeah its still required and available.
  14. Ah! simple fix - thank you so much for all your help. Will get to it now.
  15. Thank you. Does the Free Forecast.Solar account provide enough information or do you require an trial account with API key? sensor.calculated_current_solar_pred is not working, which causes the solar prediction card to N/A. logs shows this:- 2023-03-20 13:48:42.233 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unknown' when rendering template '{{ ((float(states('sensor.power_production_now_2')) * 1 ) + (float(states('sensor.power_production_now')) * 1 ))|float }}' but no default was specified') while processing template 'Template("{{ ((float(states('sensor.power_production_now_2')) * 1 ) + (float(states('sensor.power_production_now')) * 1 ))|float }}")' for attribute '_attr_native_value' in entity 'sensor.calculated_current_solar_pred' Unsure if this is related but reading online, it states "Starting in version 2021.12.0, you must specify the default value. If you don’t, and float cannot convert the value, it will be reported as an error message and the template will fail."
  16. One more question Gary... splix06 linked a nice dashboard layout on his github. I am trying to recreate something like this, but I keep coming unstuck as every time I use one of the "total" sensors it is a cumulative sensor which creates a compounding ladder view if that makes any sense.
  17. Got it, thanks! Attached is a JSON for Grafana if anyone wants to use it. Dependencies are InfluxDB (currently running 4.5.0) Follow the standard install guide and I recommend limiting the view to sensors Maybe with some development it could be nicely integrated into a HA dashboard. Sunsynk PV & Battery-1679335020803.json
  18. I have just added some of your automation scrips for Timer/SOC setting based on sun/weather. It is working well Now I just need to create a toggle to force grid charge ON and ignore the timer settings for special circumstances. We do not have load shedding (yet) here in the UK.
  19. Thanks for the digging into this. Hopefully not too difficult for you to workaround. I imported some of your cards; looking really nice now. I do not have the entity sensor.sunsynk_battery_temp so commented out lines 30 and 31 for the card to work. Home-Assistant---E-Linter-Logger---Sunsynk/Sample Card Code AC_DC Temperatures ( Apex Charts ).txt at main · gdwaterworth/Home-Assistant---E-Linter-Logger---Sunsynk · GitHub Also, regarding the function node for the remaining battery SOC, is this compiled into the exiting gather json or a seperate flow you created?
  20. could you share the modified power flow card yaml for the power flow card based on your sensor names? thanks
  21. Fantastic. Can you export this? It is basically everything I am looking to achieve, only auto mode for me will be use timer or grid charge now. I only began using HA after finding this thread. The last 2 weeks learning it have been slow but fun.
  22. slight cleanup - i'll export the json here when finished if anyone wants a copy
  23. Started messing around with Grafana, and reading sensors into InfluxDB; first draft. Nothing special yet, but will blend in nice once complete.
  24. Did you enable to node red hass add on? You need to do this within node red.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.