jacauc Posted June 15, 2021 Share Posted June 15, 2021 Also, I recommend using the "events: state" node instead of "current state" This allows you to avoid this kind of looptyloop Instead it can be achieved with simply: Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted June 15, 2021 Author Share Posted June 15, 2021 1 hour ago, jacauc said: Looks good! General note: I'm busy simplifying a lot of my HA Node Red flows for easier management so simplification and untangling the connectors is fresh in my mind. You may find it much neater to use "link in" and "link out" nodes, even if it is on the same flow. Small sections where steps are repeated can be reused with msg parameters passed to them. But function over form I guess Ok, so if I am understanding you correctly, by putting the names of the devices into the message parameters, I could cut out the 4 individual loops I have, one for each individual device, and replace it with one loop. Makes sense, thanks for pointing that out, that can be my next project Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted June 15, 2021 Author Share Posted June 15, 2021 54 minutes ago, jacauc said: Also, I recommend using the "events: state" node instead of "current state" This allows you to avoid this kind of looptyloop Instead it can be achieved with simply: Will change that as well, thank you for the suggestions, am still working out how this thing works so all appreciated. Quote Link to comment Share on other sites More sharing options...
jacauc Posted June 15, 2021 Share Posted June 15, 2021 13 minutes ago, Sc00bs said: Ok, so if I am understanding you correctly, by putting the names of the devices into the message parameters, I could cut out the 4 individual loops I have, one for each individual device, and replace it with one loop. Makes sense, thanks for pointing that out, that can be my next project Yes that's the perfect scenario. But I also tend to use link in and link out even without fancy msg parameters to reduce the number of visible lines such as the long diagonal ones going all the way back to the beginning to check solar power >3000. First prize for replacing the 4 loops with one by using msg. Quote Link to comment Share on other sites More sharing options...
jacauc Posted June 15, 2021 Share Posted June 15, 2021 One more piece of advice... I see you have the very first node on the top left to fire at 9:00am. I'm not sure what that is for, but if it is simply to kick off the start of the flow, this can be achieved with the built-in inject node like so... then you don't need this additional pallette Quote Link to comment Share on other sites More sharing options...
Robbo Posted August 22, 2021 Share Posted August 22, 2021 On 2021/04/05 at 9:33 AM, Sc00bs said: Paradox house alarm Hey @Sc00bs, did you use PAI to integrate your Paradox alarm? This is way off topic, but if you did, do you have PGMs for e.g. gates/garages and have you managed to activate them in HA? I can control the alarm zones by publishing a packet to the correct topic in MQTT but cant seem to toggle/turn on/off the PGMs. Topic in theory is paradox/control/outputs/pgm_3 (or the PGM number) Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted August 22, 2021 Author Share Posted August 22, 2021 Hey @Robbo, Yes, I do use the Paradox Alarm Interface but to be honest I haven't spent any time using it as I have been more focussed on the power management stuff. Sry, I can't even begin to suggest the best way to proceed. Robbo 1 Quote Link to comment Share on other sites More sharing options...
jacauc Posted August 22, 2021 Share Posted August 22, 2021 I have a dsc alarm, and using the envisalink for smartening the system with integration to HA. You may want to look at this module. Alternatively, I'm sure it'll be possible with Rpi or even arduino, but might be a bit more of a hack. Quote Link to comment Share on other sites More sharing options...
jacauc Posted August 22, 2021 Share Posted August 22, 2021 I have a dsc alarm, and using the envisalink for smartening the system with integration to HA. You may want to look at this module. Alternatively, I'm sure it'll be possible with Rpi or even arduino, but might be a bit more of a hack. Robbo 1 Quote Link to comment Share on other sites More sharing options...
Robbo Posted August 22, 2021 Share Posted August 22, 2021 4 hours ago, jacauc said: envisalink for smartening the system with integration to HA Thanks, will have a look. I have the IP150 module for paradox and can see all sensors and zones in HA, its just weird the PGMs don't respond when everything else does Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted August 23, 2021 Author Share Posted August 23, 2021 11 hours ago, Robbo said: Thanks, will have a look. I have the IP150 module for paradox and can see all sensors and zones in HA, its just weird the PGMs don't respond when everything else does Would suggest having a look on the Github page for PAI or their Gitter page and see if they have any suggestions there https://gitter.im/paradox-alarm-interface Robbo 1 Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted August 23, 2021 Author Share Posted August 23, 2021 @Robbo I think it may have something to do with the PGM Limits settings in the configuration file in the PAI addon Robbo 1 Quote Link to comment Share on other sites More sharing options...
Robbo Posted August 23, 2021 Share Posted August 23, 2021 28 minutes ago, Sc00bs said: Github page for PAI or their Gitter page Thanks, yeah I've scoured the HA, Github, Gitter pages and havent won so thought I'd try a SA source here . I have the EVO192 and that seems to have further complications. Going to try the babyware access next and then see where that leads me... Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 5, 2021 Author Share Posted September 5, 2021 (edited) Home Assistant recently included a Solar Forecast in the app https://www.home-assistant.io/integrations/forecast_sola Although not obviously 100% accurate it does give me an insight into what the days solar power production is going to look like to that Node Red can decide which loads to switch on for the day based on the predictions. I have a 1kw pool pump, so if my production for the day is going to be under 30kw, I just don't switch it on for the day. Switch it on from 9 - 3 If I have more than 40kw and just 3hrs of pump if it is between 30 & 40kw/hr. https://www.home-assistant.io/integrations/forecast_solar/ Would also like to add the data from my inverter into the Home Assistant Energy system but still working that out Edited September 5, 2021 by Sc00bs ScanlanGP 1 Quote Link to comment Share on other sites More sharing options...
kellerza Posted September 7, 2021 Share Posted September 7, 2021 On 2021/09/05 at 8:39 AM, Sc00bs said: Would also like to add the data from my inverter into the Home Assistant Energy system but still working that out Hi Sc00bs, I would love to do that as well! Currently I have an SMA Energy meter, but I cannot differentiate between batteries and PV yet, but this gives you an idea of what it looks like (the dotted line indicates the forecast for today, very cloudy...) Going through the Modbus spec, I believe you should add the 32-bit "total" registers (they have a high& a low 16-bit word) to your Node-RED flows. Home Assistant should handle all the other magic. Here is my first attempt mapping this - nothing tested yet!! - https://github.com/kellerza/sunsynk/blob/main/sunsynk/definitions.py The end goal is a native Home Assistant component, but otherwise I'll just do an Add-on for a quick win You are probably one step closer by just adding this to your existing Node-Red flows Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 10, 2021 Author Share Posted September 10, 2021 I have noticed that the Home Assistant backups of all my Sunsynk Data are starting to get rather large, at the moment 2Gb and increasing by +-100mb per day which is obviously not sustainable. In an effort to try and keep the size down I have decided that I am going to need to implement some downsampling and data retention policies in InfluxDB as that is where most of the backup size comes from. Am thinking that the easiest way is probably going to be to create a new database for all the downsampled data to be loaded into and then just change the retention settings on the existing database to 24hrs Going to downsample to 1 min intervals and see what the DB size looks like. Any comments/suggestions? Quote Link to comment Share on other sites More sharing options...
kellerza Posted September 11, 2021 Share Posted September 11, 2021 I’m no Influxdb expert, but it sounds logical to downsample. Generally I would say record less to begin with or keep it for a shorter period of time. On my SMA energy meter I only record significant changes (>80 / 100W and every minute), that works for power. For energy you need even less (5min?) since these are counters. Voltage min/max/avg over 5min? if you want to have a solution that keeps high resolution data for longer, buy more storage or try solar-assistant.io - they have a solution optimised for long term high resolution stats with polished graphs. Really easy to setup! Quote Link to comment Share on other sites More sharing options...
jacauc Posted September 11, 2021 Share Posted September 11, 2021 Here's another thought.... you could always throttle the messages sent to influx and drop intermediate messages with the delay node. Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 11, 2021 Author Share Posted September 11, 2021 Don't really want to drop the resolution for 24hrs, after which the info becomes less useful so thinking that even an average of 5 min would be sufficient. Just need to work out the downsampling, doesn't look that difficult Quote Link to comment Share on other sites More sharing options...
jacauc Posted September 11, 2021 Share Posted September 11, 2021 That was just a sample screenshot. This may be more appropriate Quote Link to comment Share on other sites More sharing options...
kellerza Posted September 16, 2021 Share Posted September 16, 2021 @Sc00bs - seems like I finally have my Home Assistant energy dashboard working with my Sunsynk Using only the following sensor config & the addon - https://github.com/kellerza/sunsynk SENSORS: - total_pv_power - total_grid_export - total_grid_import - total_pv_power - total_battery_charge - total_battery_discharge ScanlanGP and georgelza 2 Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted September 16, 2021 Author Share Posted September 16, 2021 Thanks @kellerza will give that a go as well Quote Link to comment Share on other sites More sharing options...
Sc00bs Posted October 13, 2021 Author Share Posted October 13, 2021 Updated cabling for the USB-RS485 adapter, only requires these three cables when connected up to a RJ45 wired in 568B This apparently (needs confirmation someone) also has the advantage that it will work if plugged into the CANBUS port, handy if you have a battery that connects to the RS485 port. Quote Link to comment Share on other sites More sharing options...
crash Posted November 22, 2021 Share Posted November 22, 2021 On 2021/10/13 at 12:04 PM, Sc00bs said: Updated cabling for the USB-RS485 adapter, only requires these three cables when connected up to a RJ45 wired in 568B This apparently (needs confirmation someone) also has the advantage that it will work if plugged into the CANBUS port, handy if you have a battery that connects to the RS485 port. Hey @Sc00bs, I'm trying to do this but the Inverter wont initialize in NodeRed (just keeps retrying). In your pic above, do you have all of the jumpers on the adapter? Quote Link to comment Share on other sites More sharing options...
crash Posted November 22, 2021 Share Posted November 22, 2021 54 minutes ago, crash said: Hey @Sc00bs, I'm trying to do this but the Inverter wont initialize in NodeRed (just keeps retrying). In your pic above, do you have all of the jumpers on the adapter? Ah, read in the other post it needed this. It's now queueing and sending (so onto the next part I think) Serial Port set to /dev/ttyUSB0 on modbus-client Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.