Joining the Renewable Heating Hub forums is completely free and only takes a minute. By registering you’ll be able to ask questions, join discussions, follow topics you’re interested in, bookmark useful threads and receive notifications when someone replies. Non-registered members also do not have access to our AI features. When choosing your username, please note that it cannot be changed later, so we recommend avoiding brand or product names. Before registering, please take a moment to read the Forum Rules & Terms of Use so we can keep the community helpful, respectful and informative for everyone. Thanks for joining!
Maximising Home Automation: Integrating Octopus Energy & More
Save energy... recycle electrons!
Posted by: @batpred...
With all due respect, there is no need to make new definitions for these simple terms.
TCP/IP is a set of protocols that broadly fits into layers 2-4s.
ethernet covers a set of protocols that map to layers 1-2.
...
I understand what you're trying to say but the above is not accurate.
802.x (ethernet, wifi, token ring etc.) are technical standards. Although a "protocol" in the grammatical sense is a "set of standards", in networking these technical standards covering layers 1 and 2 of the OSI model are not referred to as protocols.
TCP/IP is a network protocol that happens to operate low down on the OSI model - layers 3 and 4. However, there are other (generally obsolete) network protocols that were designed to operate in higher layers (IPX/SPX and NetBEUI for example). Irrespective, these are standards defining the packets of data transmitted over the physical and datalink layers, and so are communications protocols rather than technical standards for the physical network.
As a result, I'm not making new definitions; I'm sticking to the commonly understood and accepted terminology of IT networking. If I didn't, it would get very confusing very quickly.
Posted by: @batpred...
This is still a good reference model. When (inter)networking started being implemented and deployed, I can confirm the OSI model was very useful.
...
I had no intention of suggesting anything else. It's not just useful; it is the de facto model and therefore a standard reference in the industry.
Posted by: @batpred...
A Home Assistant box with all its connections is usually a gateway in that OSI terminology, that spans layers 1-4.
Um, no.
The physical computer that Home Assistant is installed on will contain one or more network cards that allow connection to the network. When Home Assistant is installed (ignoring variations for simplicity) HAOS (Home Assistant Operating System) goes onto that box and the rest of Home Assistant sits on top.
Bluntly, Home Assistant is purely working at the application layer - layer 7. The operating system (HAOS) interacts with the computer and with Home Assistant and so is providing the presentation and then session layer to the application. It could also be argued that the presentation layer is fulfilled by Home Assistant rather than the operating system but even then it certainly doesn't reach down below layer 6.
Any communication with Home Assistant (including for it to act as a gateway) will require any communication to span the whole 7 layers.
105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs
"Semper in excretia; sumus solum profundum variat"
Haven't reached the stage where one of you is going to post a generic diagram of the 7-level OSI model?
There will be others considering HA in future, who arrive in months to come and won't understand this important point.
Save energy... recycle electrons!
Of course, @transparent; you're right. In fact, it's a bit of a red herring rather than an important point but since it has been mentioned I'll explain so people can see why it's not relevant.
In IT, we love our compartmentalising, and we will often do so logically with what are termed abstraction layers. When we try to print something, the application we're printing from isn't talking with the printer; the printer is being controlled by the operating syste and our application just dumps the print request on the operating system and says "go sort it". In that sense, the application is abstracted from anything to do with printing.
In the context of networking, the whole computer networking process is described by seven abstracted layers:
- The physical layer. This is all about actually moving the data between devices.
- The datalink layer. This is all about preparing data for transmission. Physical addressing (such as the MAC address) is dealt with at this layer.
- The network layer. This is about logical addressing; working out the best path to reach a particular destination adress, for instance.
- The transport layer. Breaking the data to be sent into segments - packets - ready to be sent in such a way that the recipient can package it all back together again.
- The session layer. This is about setting up, managing and ending logical sessions between network resources. If you ever get to see an Internet error that a web site is unreachable, it's because a check at this layer has found the destination isn't available.
- The presentation layer. This takes the data to be sent and translates it into a format that can be sent over the network; encrypting and compressing, for example.
- The application layer. This is the layer that provides a user interface for sending and receiving the data.
So when you want Home Assistant to, for instance, query the Octopus API, the request coming from HA (the application) is repackaged by the presentation layer, a session is esatablished with Octopus' server at the session layer, the data is broken into packets at the transport layer, the route sorted out at the network layer, the physical device address worked out at the datalink layer and the packet is actually transmitted at the physical layer. Octopus' server then receives it at the physical layer, works out where the packet physically came from at the datalink layer and the data steadily works back up the same stack until it's presented to the application layer at Octopus' end. Octopus' application (Kraken) will understand what that request is intended to achieve, go get the data from Octopus' database and then transmit the results back to your Home Assistant box following the same process of working down the network stack to physically send the data, whereby your HA box, as recipient, similarly starts at the physical layer and works up the stack again until the results as intelligible data are handed to your Home Assistant instance.
Phew.
How a network is used - at least to this level of detail - is utterly irrelevant to most people. The reason it got mentioned at all was because I was oversimplifying on another explanation and talked about "ethernet over wifi", which @batpred questioned by introducing the OSI model. The point I was trying to make is that most physical networks support "talking" over what might be thought of as a party line, whereby if two devices are talking at the same time no-one can understand the conversation. In network terms, this is termed a collision, the transmitted packet is lost and the sender needs to resend. This somewhat hit and miss process means lost time and so slows down what might otherwise be a fast network. Although ethernet is just as bad as wifi for this, modern ethernet networks are based around switches which isolate each client so that only traffic to or from a client is allowed into that "bubble", so network performance is largely the same as if there were only two computers directly connected to each other. Wifi technology has got better but it still has to share a restricted bandwidth with multiple clients and so will degrade in performance as more clients connect. That, along with the inherent possibility of lost wifi connections, is why it is better to use a physical cabled connection whenever possible and leave wifi for times when cables can't be used (your kit doesn't have a network socket or you need the mobility).
Here endeth the rather involved lesson.
Oh, and just to be clear, @batpred is correct that the IP protocol does operate on top of wifi, and also on top of ethernet. As I said, in trying to simplify I overdid it and ended up sending us down an unnecessary rabbit hole.
105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs
"Semper in excretia; sumus solum profundum variat"
Posted by: @majordennisbloodnokHow a network is used - at least to this level of detail - is utterly irrelevant to most people. The reason it got mentioned at all was because I was oversimplifying on another explanation and talked about "ethernet over wifi", which @batpred questioned by introducing the OSI model. The point I was trying to make is that most physical networks support "talking" over what might be thought of as a party line, whereby if two devices are talking at the same time no-one can understand the conversation.
Thank you and I agree most people can stay clear of networking, specially with matter and thread protocols. The OSI model helps me when the odd manufacturer´s marketing confuses the concepts!
And yes, the HA box going above layer 4. But the OSI model is a stretch to apply above layer 4, it was mainly designed around the modem terminal session use case.
Reliability and automation of all these things is particularly important to me.
So right now I am getting into some involved discussions with the Solis engineers on how Solis AI works from an operational point of view... Since the answers are still in English, there will be many more iterations on it. 😀 I can only hope the European manufacturers are beating this.
8kW Solis S6-EH1P8K-L-PLUS hybrid inverter; G99: 8kw export; 16kWh Seplos Fogstar battery; Ohme Home Pro EV charger; 100Amp head, HA lab on mini PC
-
Integrating Devices with Home Assistant: A Step-by-Step Guide
2 years ago
-
Choosing a Home Automation System
2 years ago
- 26 Forums
- 2,590 Topics
- 60.3 K Posts
- 989 Online
- 6,922 Members
Join Us!
Worth Watching
Latest Posts
-
RE: Air-to-air heat pumps - best models and installers
@ashp-bobba, do I remember correctly that you install A...
By Mars , 5 hours ago
-
RE: A2A vs A2W: Which Heat Pump Would You Pick?
There isn’t as far as I know, @djh, but you’re welcome ...
By Majordennisbloodnok , 9 hours ago
-
RE: Can anyone explain the following behaviour with a Grant Aerona 3 R30 / Smart Controller?
Final Update. Yesterday, I was going through the moti...
By Unsure , 10 hours ago
-
RE: How much can an east/west solar solar system be oversized?
Best performance occurs with PV string near inverter no...
By bobflux , 10 hours ago
-
RE: Forum updates, announcements & issues
Thank you Mars for all your dedication to improvements;...
By Toodles , 13 hours ago
-
RE: Who do I complain to about a poor ECO4 installation, can anyone advise?
Take it one step at a time. If you can get the dhw and...
By JamesPa , 20 hours ago
-
RE: Selling 2 x Kensa Shoebox 7kw GSHP (New)
Hi Jain, we’ve got an ashp so I’m afraid we won’t be yo...
By Judith , 20 hours ago
-
No buffer or low loss header Grant controller in sens...
By JamesPa , 1 day ago
-
RE: Are We Sleepwalking Into Another Race to the Bottom?
That's an amazing job to get all that in there! A truly...
By Batpred , 1 day ago
-
RE: Anyone concerned about GivEnergy?
Thanks for your advice - I'll keep trying with the inst...
By JohnDwyer , 1 day ago
-
RE: Plug and play solar. Thoughts?
I am also yet to find a case where an installation that...
By Batpred , 2 days ago
-
RE: British Gas vs Octopus Energy vs Heat Geek vs EDF vs Aira vs OVO vs EON.Next vs Boxt
This is what I got from OVO. At least it was quick.. ...
By Batpred , 2 days ago
-
RE: IVT greenline HT Plus E - Circulation Pump Constantly On
Welcome to the forums. Irrespective of which brand yo...
By Mars , 2 days ago
-
RE: 7.5kW Heat Loss, But Quoted a 10kW Midea. No Re-Pipe, No Buffer Tank. Does This Add Up?
Oh, how I love these old scientists!I'm in with your 5 ...
By LeJamaisContent , 2 days ago
-
RE: Jokes and fun posts about heat pumps and renewables
@jamespa Someone who is not easily phased I suppose.
By Toodles , 2 days ago
-
@downfield Once OE had removed our gas meter and capped...
By Toodles , 3 days ago
-
Living with a Low Loss Header (Or Measure For Measure, it’s All About the Pump)
I know, low loss headers (LLHs) aren’t necessarily ‘low...
By Toodles , 3 days ago
-
RE: What is the main ‘dictator’ of Agile’s unit price?
After seeing umpteen negative price slots again today, ...
By ChandyKris , 3 days ago
-
RE: The Reality Behind a Failed Heat Pump Installation – and an IWA Insurance Rejection
@ian-w Getting back to the problem in hand, what do yo...
By JamesPa , 3 days ago
-
RE: Solar Power Output – Let’s Compare Generation Figures
@papahuhu Generally, I leave Homely to take care of mat...
By Toodles , 3 days ago
-
@judith, glad you found the story interesting. On eff...
By Mars , 4 days ago
-
RE: New Vaillant aroTherm Plus in black - When will it come to the UK?
The vaillant controller and app do all of that (and mor...
By JamesPa , 4 days ago



