Starting a new thread as this was getting lost in the Hints, Tips & Troubleshooting thread.
Post details of your integration with Home Assistant etc.
Hi connesha,
I had my solar panels installed last week and I have been on a steep learning curve integrating the data into Home Assistant. I would like to use your code to automate the charging of my batteries. I have got to the stage where I have put my sensors in and confirmed the charging amps is what I expect.
I have then used the result from this template to manually set a slide input number like this: -
I then have an automation that runs when I press a button
I would now like to put it all together and fully automate it. I am sure this is quite basic but I don’t know how to do it. Can I do it all in the automation above? Where do I put all the code from the template? Or should I use 'current_needed_deci_amps' to set my input number for AMPs in a script somewhere?
Would you be able to advise me?
Any good how to guides to get up and running that you would recommend?
Hi @digimadgirl
See a few posts later, the same logic is packaged into a script. Here: #788
After changing the few things I've mentioned in the post, you can call script.set_night_charge from a time-triggered automation, a little before your cheap rate starts
Since you're using pyscript to write the register, and you'll need to change it to call your pyscript script, instead of appdaemon.
As for what to get for HA, I'd go for for an x86 setup with SSD, running Ubuntu. While it may cost a little bit more than RPI, it will be more solid, quicker boot, and SSD less prone to failure than SD card. These can still be very low power. I use a NUC, and I know some use other x86 systems that they're equally happy with.
Look at using the MyEnergi API to be Stop or Starting your Eddi. I read my cylinder temperature from my Kingspan Solar Tubes controller, and I Start heating of the water if my Batteries reach 98% and I stop my Eddi if the Temperature is seen as 75 deg or if the Battery drops to 97%.
So this has the dual function of stopping the battery from being discharged by the Eddi, and also stops the reliance on a mechanical thermostat linked to the cylinder.
Off = https://s18.myenergi.net/cgi-eddi-mode-E[eddi_serial]-0
On = https://s18.myenergi.net/cgi-eddi-mode-E[eddi_serial]-1
You can use similar automation on the Zappi. I only use ECO+ mode for my Zappi. I start charging when battery hits 98% and knock it off when the battery hits 95%, so again, the battery cannot be drained by the car charging, but the car stays charging when there are intermittent clouds
Off = https://s18.myenergi.net/cgi-zappi-mode-Z[zappi_serial]-4-0-0-0000
ECO = https://s18.myenergi.net/cgi-zappi-mode-Z[zappi_serial]-1-0-0-0000
ECO+ = https://s18.myenergi.net/cgi-zappi-mode-Z[zappi_serial]-2-0-0-0000
FAST = https://s18.myenergi.net/cgi-zappi-mode-Z[zappi_serial]-3-0-0-0000
You may need to change s18 for whatever server your account is located on. I use Node-Red rather than Home Assistant.
i was thinking about this since - re the gas coming on to heat the water.. if the eddi has been working it will have brought up the temp of the water in the cylinder anyway.. so the stat on the cylinder should tell the gas it doesnt need heat?
re battery and forecast... and setting max charge level.. this might not be a big deal either.. if i get a day with a lot of solar it just means the batter won't discharge a lot and by the time my charge window kicks in it will just charge less anyway.. noticed this last night.. battery was still at 25% when it charged so imported less electricity.. for the summer i might be able to get away with charging very little at night... probably just just the two hours night boost window at 12cents a kw
This might be of use to someone.
Rest sensors to pull the latest Met Eireann Satellite images into HA.
rest: - resource: https://www.met.ie/api/satellites/ireland/uk-ir-radar scan_interval: 900 sensor: - name: "meteireann_ireland_uk_ir_radar_image" value_template: "https://www.met.ie/images/satellite/{{ (value_json | list | last).src }}" - resource: https://www.met.ie/api/satellites/ireland/visible scan_interval: 900 sensor: - name: "meteireann_ireland_visible_image" value_template: "https://www.met.ie/images/satellite/{{ (value_json | list | last).src }}" - resource: https://www.met.ie/latest-reports/recent-rainfall-radar/12-hour-rainfall-radar scan_interval: 900 sensor: - name: "meteireann_ireland_rainfall_radar_image" value_template: "https://www.met.ie/images/radar/{{ value | regex_findall(find='web[\\d]{2}_radar[\\d]{2}_[\\d]{12}.png') | last }}"
I use the markdown card to display them within Lovelace:
type: vertical-stack cards: - type: markdown entity_id: sensor.meteireann_ireland_rainfall_radar_image content: > [ }} )](https://www.met.ie/latest-reports/recent-rainfall-radar/12-hour-rainfall-radar "visit met.ie") Last updated: {{ relative_time(states.sensor.meteireann_ireland_rainfall_radar_image.last_updated) }} ago - type: markdown entity_id: sensor.meteireann_ireland_visible_image content: > [ }} )](https://www.met.ie/latest-reports/satellites/ireland-visible "visit met.ie") Last updated: {{ relative_time(states.sensor.meteireann_ireland_visible_image.last_updated) }} ago - type: markdown entity_id: sensor.meteireann_ireland_uk_ir_radar_image content: > [ }} )](https://www.met.ie/latest-reports/satellites/ireland-uk-ir-radar "visit met.ie") Last updated: {{ relative_time(states.sensor.meteireann_ireland_uk_ir_radar_image.last_updated) }} ago
I was playing with some of the weather stuff myself:
Simple, just add an iframe card and use a url like:
https://embed.windy.com/embed2.html?lat=53.514&lon=-7.603&detailLat=53.472&detailLon=-6.542&width=650&height=450&zoom=6&level=surface&overlay=rain&product=ecmwf&menu=&message=&marker=&calendar=now&pressure=&type=map&location=coordinates&detail=&metricWind=default&metricTemp=default&radarRange=-1
The embed options can be tweaked at:
https://www.windy.com/-Embed-widget-on-page/widgets?53.472,-6.542,7
Can set up multiple ones with wind, waves, co2, etc and it's animated too 😉
@Jonathan Sorry for being a bit of a NOOB here, but would there be a way of displaying the met.ie Rainfall Radar animation in Node-Red ?
I don't use Node-Red, but you can see from the source of the page below that the images for the animation are embedded. The regex above pulls the most recent image out and appends the rest of the URL. The other radar images are much easier as the images are served from a dedicated json endpoint.
https://www.met.ie/latest-reports/recent-rainfall-radar/12-hour-rainfall-radar
Have been checking around but didn't find out what way is that mentioned.
Is there any way to have Modbus capabilities to control a Solis inverter and keep sending data to SolisCloud via the S3-WIFI-ST data logger at the same time?
Not that I am aware of.
Any recommendations for ZigBee smart plugs? I'm considering swapping out my WiFi Kasa KP-105/115s for ZigBee versions. Needs to be rated for 13A, and have a physical on/off switch on device. Energy monitoring would be a nice bonus but not essential.
Why the upgrade? Have TP myself and interested?
The Kasas are generally fine, but I have one or two of them in locations with patchy signal (and not feasible to add another WiFi AP in those locations).
ZigBee devices act as a mesh and would resolve the signal issues.
I don't use the Kasa app (all controlled locally using Home Assistant), so no loss there by moving to ZigBee.
The smartthings work well with zigbee2mqtt in HA, I'm using a conbee2. They are pricey and hard to get deals on, thankfully got a couple at a reasonable price a few years ago.
Have them bookmarked if they come down in price again as I'd like to add a couple more exactly for the mesh capabilities.
Thanks, that's good to hear. Also using z2m but using a CC2652P rather than a conbee.
Not sure I can justify price of the smartthings when I have working WiFi ones at moment. Ordered two Woolley plugs off Amazon last night as a stop gap so will see how they fair. I had seen bad reports about the Sonoff ones disconnecting and needing a power cycle to resolve, so gave them a pass despite the cheaper price.
Will keep an eye on Lidl too, their Silvercrest ones seem reasonably priced, though no energy monitoring.
That's the trouble with them alright, price. I think I paid half the price they are at the minute but they do work well.
If you don't need monitoring, just get the cheap ones from IKEA. Work a treat here. Just €15 each and is zigbee. It doesn't display Amp rating but it's 2990W maximum, which to me sounds like 13A (2990/230=13).
TRÅDFRI Wireless control outlet - IKEA Ireland
Thanks, no physical on/off switch though?
That's correct, would have been handy it that was included.
I have just ordered 2 from https://www.mylocalbytes.com/products/smart-plug-pm - not arrived yet but have high hopes.
Not exactly PV but automation related at least 😀
Wondering if anyone had any luck bringing in gas details into the HA energy dashboard.
I think it's a very dumb meter so probably not possible.
Also interested and have the same meter. I read that they're smart ready. The module can be installed when/if they decide to do that.
Hmm is that something we can request? Maybe then be able to pull the data via some apis or something, not exactly real time but better than nothing.
Does it have a blinking light? That blinks a certain amount per m2?
I did it with my oil tank! https://community.home-assistant.io/t/oil-tank-level-monitor-watchman-sonic-rtl-433-integration-for-rf-sensors-or-level-sensors/223986/26
No you can't. Basically the new/current meters allow the possibility for future smart (remote) reading but no idea if/when that will happen.
Im Using Lidl brand, cheap and reliable
The met.ie script for radiation is broken for me after HA 2022.12:
2022-12-08 23:48:43.204 ERROR (MainThread) [custom_components.pyscript.file.meteireann_solarforecast.meteireann_solarforecast] Exception in <file.meteireann_solarforecast.meteireann_solarforecast> line 23: return int(round(radiation)) ^ TypeError: type NoneType doesn't define __round__ method
Anyone else the same?
Updated to HA 2022.12.0 yesterdy and HA 2022.12.1 this morning and pyscript function meteireann_solarforecast() running okay after both. Rpi install.