December 15, 20232 yr Nice bit of work My folks spend 6 months of the year in Margate (we're originally from South Africa) so hear all about it. Being in the UK its all about loading your batteries when the price is cheap but i feel I might need an automation in the summer when solar is high, but the pool needs heating and I need enough battery to keep supplying the house. 😀
December 15, 20232 yr My main dashboard for monitoring and smart switch controls with the obligotory RSA loadshedding and weather predictions. 😅 Some inverter stats on seperate pages
December 15, 20232 yr Author You are using grafana for your charts ? I prefer apexcharts, but that is all personal preference https://community.home-assistant.io/t/apexcharts-card-a-highly-customizable-graph-card/272877 I cut out a lot of charts , although they looked nice , I did really use them and had access to long term data if I needed Just starting out with sonoff, Need to go still buy units to measure appliance power usage. I have other projects on the go atm lol, looking at automating and seeing what is available tech wise. I have bluetooth monitoring on my gas bottles for geysers and stoves. Still trying to see what is hackable there. Not very many smart offerings for this atm I have a borehole 10k L watertank and filtering for teh house ( Another South AFrican special with access to water ) . That still needs to be looked at. Between saving on water and solar , money spent on both has paid investment off in under 5 years Edited December 15, 20232 yr by Gary Waterworth
December 15, 20232 yr 8 minutes ago, Gary Waterworth said: You are using grafana for your charts ? I prefer apexcharts, but that is all personal preference https://community.home-assistant.io/t/apexcharts-card-a-highly-customizable-graph-card/272877 No plotly graph cards. https://github.com/dbuezas/lovelace-plotly-graph-card Used to use the apex cards but switched the plotly cards mainly as you can scroll backwards and forwards on them to look stuff up beyond the set timeframe of the apex cards. But I still have some apex cards hidden on my main display for those quick graph glances Edited December 15, 20232 yr by -cK-
December 15, 20232 yr All of those power reading on the right are from sonoff devices. Can't go wrong with them. I like to use Dual R3's that have power reading you also get the lite version without power reading. Just be mindfull of the power limit on these smart switches 10a per channel on the Dual R3 (two channels) and an overall 15a if both are pulling power if I'm not mistaken. Our vacuum sometimes trip te smart switch when you turn it on with an initial high power spike so I always have an unmonitored plug I can use for these devices that can cause a spike on startup and trip them. Hence a virtual DB was setup 😆 Edited December 15, 20232 yr by -cK-
December 15, 20232 yr Author 16 minutes ago, -cK- said: All of those power reading on the right are from sonoff devices. Can't go wrong with them. I like to use Dual R3's that have power reading you also get the lite version without power reading. Just be mindfull of the power limit on these smart switches 10a per channel on the Dual R3 (two channels) and an overall 15a if both are pulling power if I'm not mistaken. Our vacuum sometimes trip te smart switch when you turn it on with an initial high power spike so I always have an unmonitored plug I can use for these devices that can cause a spike on startup and trip them. Hence a virtual DB was setup 😆 My plan is to get there sometime Just time and money lol
December 18, 20232 yr On 2023/12/15 at 10:37 AM, -cK- said: No Probs Yea I have no individual charge slots active for myself but can see the benefit of getting those to work as well. As long as I can set the priority load/batt and usetimer on/off I can start writing a few automation's that should help automate things on bad weather days so that I don't have to touch a thing myself or micro manage it anymore 🤞 Interested to see what you come up with automations on bad weather days and the integration you are using for weather, I want to set some automations up as well but not sure if I can trust the weather predictions as it seems all over the place.
December 18, 20232 yr My initial setup false triggered so I need to tweak the conditions a bit but think I might just have had my batt and SOC sensors swapped around. I'm not using the weather to check conditions but rather the battery level and the PV level at given times. Because I run on batteries all the time at night I will always have a high PV draw in the mornings to recharge the batteries so my logic will be something like: At fixed time (say timeslot 2-4 on my SOC's 09:30, 10:00 & 11:00 ) Check if current batt < SOC level if so check PV if below 750w and Priority load is on Call service turn off energymode Not perfect but this is kinda what I manually check and make a judgement call on. alias: Sunsynk Priority Mode description: Check PV and set Priority Mode [Load/Battery] trigger: - platform: time at: "09:30:00" id: "09:30" - platform: time at: "10:00:00" id: "10:00" - platform: time at: "11:00:00" id: "11:00" condition: [] action: - if: - condition: trigger id: - "09:30" - condition: and conditions: - condition: numeric_state entity_id: sensor.sunsynk_battery_soc_184 below: sensor.battery_cap - condition: numeric_state entity_id: sensor.sunsynk_pv_today below: 750 - condition: state entity_id: input_boolean.sunsynk_energymode state: "on" then: - service: input_boolean.turn_off target: entity_id: - input_boolean.sunsynk_energymode device_id: [] area_id: [] data: {} - if: - condition: trigger id: - "10:00" - condition: and conditions: - condition: numeric_state entity_id: sensor.sunsynk_battery_soc_184 below: sensor.battery_cap - condition: numeric_state entity_id: sensor.sunsynk_pv_today below: 750 - condition: state entity_id: input_boolean.sunsynk_energymode state: "on" then: - service: input_boolean.turn_off target: entity_id: - input_boolean.sunsynk_energymode device_id: [] area_id: [] data: {} - if: - condition: trigger id: - "11:00" - condition: and conditions: - condition: numeric_state entity_id: sensor.sunsynk_battery_soc_184 below: sensor.battery_cap - condition: numeric_state entity_id: sensor.sunsynk_pv_today below: 1000 - condition: state entity_id: input_boolean.sunsynk_energymode state: "on" then: - service: input_boolean.turn_off target: entity_id: - input_boolean.sunsynk_energymode device_id: [] area_id: [] data: {} mode: single A second automation will just reset the boolean again at midnight back to on Edited December 18, 20232 yr by -cK-
December 19, 20232 yr First of all i wanted to say what excellent work you have all done, the integration is great and i have had it running for a few months. In the UK we have Octopus Agile tariff and there are some specific settings for battery charging and discharging against this 1/2 hourly pricing, these are hidden under the plant list and revenue info. I would like to automatically update the numbers each night based on the day ahead calculation for the next day, i can calculate the price, but i don't know how i would build this into the node red flow and trigger it to send. I captured the API call that is sent back to update {"id":"262605","currency":366,"invest":10000,"charges":[{"price":0,"type":"3","startRange":"","endRange":""}],"products":[{"direction":1,"ratesThreshold":14.5,"provider":1,"regionId":2},{"direction":0,"ratesThreshold":"52","provider":1,"regionId":2}]} the two numbers are 14.5 & 52 Any help or pointing me in the right direction would be much appreciated
December 19, 20232 yr Author It isnt that easy Quite a bit of work to add in new fields to monitor for changes and then code for teh updates. Let me have a look at mine later and see how my revenue info is set up Been battling with a stoopid update ( true/false ) on the time?on sensors. Website says cool with the updates, but they never reflect I have also updated teh request headers in the "developement" branch to more accurately reflect what region 2 is now doing
December 19, 20232 yr Author You cant just blindly send to teh website continually. Bad coding and also not good and prone to causing problems. So effectively need to see how to get teh current state 1st, make sure you are in a sane state ( logger online , updates in last 2 minutes etc and only send if there are changes. Offhand it looks doable. Headers are slightly different to teh otehr settings requests BUT the who settings request layout is a bugger up It doesnt look like I even pull in the revenue information yet. The way I get the plant information is not teh way they do it to get the revenue information. Going to need to think on this as it could affect a lot of the logic flow I use. Going to have to see how to handle this Edited December 19, 20232 yr by Gary Waterworth
December 20, 20232 yr Thanks Gary, I will have a dig around as well, you have helped me get a better understanding of the process involved
December 20, 20232 yr Author On 2023/12/15 at 7:38 PM, -cK- said: No plotly graph cards. https://github.com/dbuezas/lovelace-plotly-graph-card Used to use the apex cards but switched the plotly cards mainly as you can scroll backwards and forwards on them to look stuff up beyond the set timeframe of the apex cards. But I still have some apex cards hidden on my main display for those quick graph glances Trying to sooth out the lines .. Any ideas ?
December 20, 20232 yr Author On 2023/12/18 at 12:00 PM, Ronnie1102 said: Interested to see what you come up with automations on bad weather days and the integration you are using for weather, I want to set some automations up as well but not sure if I can trust the weather predictions as it seems all over the place. I use for my weather. Funny enough I turn off my alarm monitoring on my electric fence for rainy weather. Still get notifications on my HA though Predictions seem to be ok for me Signed up for this plan . I stay under the 1000 API calls Edited December 20, 20232 yr by Gary Waterworth
December 20, 20232 yr Also have that OpenWeather integration setup mostly accurate for the Solar prediction, might not be a bad idea to maybe add an additional condition to consider in my automation if the predicted production is also below xKw for the day. Should help prevent triggering and switching when one could perhaps still push through without flipping to grid when the weather might pick up a bit later on. 🤔 Already have it showing the current day and next day expected production to help me make decisions on the day if need be. Edited December 20, 20232 yr by -cK-
December 20, 20232 yr Author 39 minutes ago, -cK- said: Also have that OpenWeather integration setup mostly accurate for the Solar prediction, might not be a bad idea to maybe add an additional condition to consider in my automation if the predicted production is also below xKw for the day. Should help prevent triggering and switching when one could perhaps still push through without flipping to grid when the weather might pick up a bit later on. 🤔 Already have it showing the current day and next day expected production to help me make decisions on the day if need be. Openweathermap does solar prediction ? Pfft ok , never mind. A paid service and actually quite expensive ( South AFrican terms ) Edited December 20, 20232 yr by Gary Waterworth
December 20, 20232 yr Appoligies those predictions are not from openweathermap but from forecast.solar 🤦♂️ I set that up so long ago I forgot what I used. Edited December 20, 20232 yr by -cK-
December 20, 20232 yr 3 hours ago, Gary Waterworth said: Trying to sooth out the lines .. Any ideas ? The only thing I found so far to smooth out the lines with my limited knowledge of the cards are shape: spline it doesn't always work though for instance the bottom center if I put spline on the yellow line it looks like this 🤷♂️ Without Spline With spline Edited December 20, 20232 yr by -cK-
December 21, 20232 yr It might also be useful to add a filter if you are getting drop outs or missing data. - entity: sensor.ss_battery_soc_184 name: | $fn ({ ys,meta }) => "SOC" + "" + "(" +ys[ys.length - 1]+"%)" yaxis: y2 line: color: red width: 1 shape: spline fill: none filters: - median: window_size: 2 extended: true centered: true I don't like the sliding moving average as it flattens out spikes i.e. if you turn on the kettle for 1 min. Edited December 21, 20232 yr by slipx
December 21, 20232 yr Author Same : More than happy. I can still see teh small spike which is the preasure pump Good to use to see if I have a leak somewhere in the water system Edited December 21, 20232 yr by Gary Waterworth
December 21, 20232 yr Author 20 hours ago, -cK- said: Appoligies those predictions are not from openweathermap but from forecast.solar 🤦♂️ I set that up so long ago I forgot what I used. Yeah , same as what I use
December 21, 20232 yr Author Other thing I am busy playing with is monitoring for my Gas Bottles. I have 2 sets of 2 (48kg) , 1 for downstairs ( Kids/Kitchen ) . 1 for upstairs bathroom & kitchen Using a smart meter called https://www.eyegas.co.za/, rebranded Sonar Powered Tank Monitoring | MopekaIOT Homeassisant actually picks up the bluetooth updates which is interesting. Only problem is getting a usb dongle for bluetooth that is actually supported by Home assistant is a royal pain in the arse. The Pi 3 and Pi 4 as well as intel nuc bluetooths all work. I have been trying to get one that I can put on the end of a 20m usb cable. But yah Been through 4 x chinese shops in my area and bought 8 dongles with different branding so far lol The list of unsupported dongles is longer than the supported. At the moment I have hidden a pi3 with HA on setup as a remote unit behind a cupboard in my sons room that is near the 1 set of bottles on the opposite side of the wall. My main HA can see the other set of bottles. Graphs are just rough for now. Will make things nice and pretty Edited December 21, 20232 yr by Gary Waterworth
December 22, 20232 yr 14 hours ago, Gary Waterworth said: Other thing I am busy playing with is monitoring for my Gas Bottles. I have 2 sets of 2 (48kg) , 1 for downstairs ( Kids/Kitchen ) . 1 for upstairs bathroom & kitchen Using a smart meter called https://www.eyegas.co.za/, rebranded Sonar Powered Tank Monitoring | MopekaIOT Homeassisant actually picks up the bluetooth updates which is interesting. Only problem is getting a usb dongle for bluetooth that is actually supported by Home assistant is a royal pain in the arse. The Pi 3 and Pi 4 as well as intel nuc bluetooths all work. I have been trying to get one that I can put on the end of a 20m usb cable. But yah Been through 4 x chinese shops in my area and bought 8 dongles with different branding so far lol The list of unsupported dongles is longer than the supported. At the moment I have hidden a pi3 with HA on setup as a remote unit behind a cupboard in my sons room that is near the 1 set of bottles on the opposite side of the wall. My main HA can see the other set of bottles. Graphs are just rough for now. Will make things nice and pretty What about BLE proxy on ESP32?
December 22, 20232 yr Author 18 minutes ago, WazzaCPT said: What about BLE proxy on ESP32? Was trying to get arround having another hardware device . But yes that works as well
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.