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,618 Topics
- 61.1 K Posts
- 533 Online
- 6,994 Members
Join Us!
Worth Watching
Latest Posts
-
I clean mine a couple of times a year, they do get dirt...
By David999 , 1 minute ago
-
RE: Our 10 year old Grant heat pump failed
Since my last post on this topic we've reached a conclu...
By Mike Patrick , 14 minutes ago
-
Brown Oily Residue Blocking Air Vent and Weeping Relief Valve... Anyone Seen This?
My installation is 4 years old. After about 18 months a...
By seoras , 2 hours ago
-
RE: Renewables & Heat Pumps in the News
An article on funding for heat pumps in case anyone is ...
By Jeff , 3 hours ago
-
RE: Indevolt Batteries UK Support & Info Thread
Thanks @editor , @indevolt-uk Subject to any comments ...
By JamesPa , 11 hours ago
-
RE: Share Your Experiences with Heat Pump Manufacturer Support
@seoras Sorry to hear that. I found Vaillant very help...
By JamesPa , 12 hours ago
-
The Watchdog That Watched and Waited
On 9 January 2026, Consumer Energy Solutions collapsed ...
By Mars , 15 hours ago
-
RE: GSHP Kaput After 16 Years: New Compressor or Switch to ASHP? Advice Welcome
Cool Energy in Grimsby sell ground source heat pumps an...
By DerekDeLeon , 16 hours ago
-
RE: Valliant Heat Pump Settings
Thats arguably a sign of a good installer - they unders...
By JamesPa , 16 hours ago
-
RE: Electricity price predictions
Well, we have so many cases where rain water mixes with...
By Batpred , 17 hours ago
-
RE: Two heating zones to one zone
@profzarkov They arent obviously wrong, but the only...
By JamesPa , 20 hours ago
-
RE: Towns water feed to air source heat pump system
The DHW circuit cant be separated (well it could, you c...
By JamesPa , 20 hours ago
-
Solis AC-coupled 3kW storage inverter
Solis AC-coupled 3kW storage inverterPylontech batterie...
By MartinRobinson , 1 day ago
-
RE: My NIBE ASHP Nightmare: No Commissioning, High Bills and a Hostile Installer
As @transparent has observed above, this is not bad, an...
By cathodeRay , 1 day ago
-
RE: The Grid Says Yes.. Until It Doesn’t: Why Britain's Net Zero Push is Stalling at the Plug Socket
As I was reading this article Mars, I was thinking that...
By Toodles , 2 days ago
-
RE: Tell us about your Solar (PV) setup
Installed in May 2011: 16*Sharp 245 W monocrystalline p...
By txmartyn , 2 days ago
-
-
RE: Say hello and introduce yourself
That doesn't sound 'right' to me. The national Smart ...
By Transparent , 3 days ago
-
RE: Growatt battery disconnected
I doubt this will happen, but I will try and suggest it...
By Eliuccio , 3 days ago
-
Understood. That's why I decided from the outset on a ...
By JamesPa , 4 days ago
-
RE: My experience with 3 heat pump surveys: Heat Geek, British Gas & Octopus
On the litigation, I would not go there and definitely ...
By Batpred , 4 days ago
-
RE: Recommended home battery inverters + regulatory matters - help requested
I suppose if your pv inverter packs up, you have a plan...
By Batpred , 4 days ago
-
RE: New Vaillant aroTherm Plus in black - When will it come to the UK?
Firstly check you are using sound power not sound press...
By JamesPa , 4 days ago


