IIMM, Keeman, thank you lot for your contributions! Before this thread, it seems pretty much no-one wrote anything about using EH-800 with Home Assistant and nothing about actual code. I know part of my original solution isn’t that elegant code, I’m by no means *nix expert and tried to avoid piping or other “complex” things in order to keep it more readable for me And for me, I tried this in order to proof, that EH-800 and HA can be used together.
As the quite complete listing of parameters provided by IIMM proves, there’s plenty of potential for adjusting heating system based on EH-800 controller. Certain Home Assistant helpers (input number?) could be probably used for setting heating curve points etc. from HA GUI. Integrating EH800 with weather forecasts has great potential for energy saving, especially on systems with radiators.
Just moved to a house with a Ouman EH-800 unit installed so perfect to find this thread!
I have never manually edited files in HA before but I guess the “File Editor” add-on is the way to go? Better to take a “DD” copy of the SD card before I begin our would you say this is a low risk operation?
Regarding the automations.yaml and the “- id: ‘1664215269197’” is this something I should copy also or somehow generate my own?
And for the configuration.yaml I guess I just create a new sensor per value I want to read out and just replace the “S_xxx_xx” in the URL to match the value I want.
Sorry if these are all basic questions but better safe then sorry
FileEditor is The Tool for editing Home Assistant config files manually. You can edit automations.yaml manually, but builtin Automations-tool (Settings → Automations & scenes) is perfectly capable to generate required automations. If you use Automations-tool, it will generate automation id automatically.
Ahh ok! Thanks for the tip, at work now but will need to look into this once I get home.
(Quite “new” to HA, been playing around with it some months but now when moving to a new house I will go in for it 100%, been using Domoticz since around 2014 so not new to home automation at least)
Did you create automation in YAML-editor, or visual editor? HA is sometimes very picky about quotes, missing quotes, or incorrect quotation mark types to extent it drives one crazy. If you created automation in YAML-editor, try using visual editor, it’s actually very easy to use and helps avoiding errors. My guess is, error may have something to do with
Tonight I took the time to RTFM and back track my mistakes, was a bit of a guess work when I am quite new to this but at least it’s now working! (hopefully not to many mistakes made… please let me know if you spot any issues!)
First of I had to create the configuration under /config/configuration.yaml, I did this via the File editor tool, guess that is the correct way to do it.
(I had this part missing before… so no wonder I did not get it to work)
this is my configuration in case someone wants to know.
Changes I made here are that I added the degree symbol to the “unit_of_measurement” and also added the “unique_id” to be able to change the icon, just minor changes to “make it pretty” so to speak, looks like this now.
Names are in Swedish but a quick translation of the words that might be hard to guess are.
Also in my automation under Settings → Automation & Scenes → Automations looks like this
(I added it in the visual way but posting in YAML makes more sense I think.
alias: Get data from Ouman-EH800
description: Script runs every 2 minutes
trigger:
- platform: time_pattern
minutes: "2"
alias: Log on every 2 minutes
condition: []
action:
- service: shell_command.ouman_logon
data: {}
mode: single
Again, thanks for all the help and for sharing this project! Really awesome work.
This change is real PITA. I’m using split configuration, that is, separate files for switches, sensors etc. Now I needed to create separate command_line.yaml and move everything there.
New command line implementation isn’t that well documented, by trial and error I have some parts working, but logon needs some work, since it’s not switch, sensor or cover…
This seems to work for login, no errors on user interface or logs. I have automation, that runs ouman_logon every five minutes. Rest of the changes were pretty much same Belaial has made, that is, formatting, and since it’s split config, I have:
command_line: !include command_line.yaml
in configuration.yaml and sensors and switches in command_line.yaml look like this now:
I know this isn’t as streamlined solution as possible, but it works well, no more update reminders. Next thing, I have to clean this using *nix pipes ( | )
@Hyacinthe,
I guess this would be next step I have floor heating and as such, system doesn’t really need room thermostats. If you have traditional water-radiators, more fine-grained adujstment would be useful. Ouman itself offers all the needed commands and responses. There is no technological barrier for example, adjusting heating curve for EH800 from Home Assistant.
Ouman seems to be such popular device (even outside Finland), that it’s worth studying some more. My current project is creating power meter for my Jäspi Econature 40 wood fired heater. It will work with other heaters too, and it’s based on M5Stack Core2 ESP32-unit. When it’s ready, time to do more Ouman.
@mekanics,
it might be possible to parse responses in the fly, but my *nix-skills are too limited. It would be definitely more elegant way of handling responses. IIRC, you can request / set multiple variables at once, which makes number of separate files smaller.
As you see, I have configured the Ouman EH-800 to use 5-point adjustment. Also the graph is ‘‘inverted’’, but that can be adjusted according to one’s preferences.
I’m planning to use the adjusting algorithm by changing the adjustable room-temperature offset value on register:
S_134_85 Room temp fine adjustment
Also it would be great to make the Ouman Graph interactive, I think that’s doable by some default integrations. With this, you wouldn’t have to go to the device to adjust, and can see the loop working remotely. I’m also polling data from the valve position etc.
By using Ouman collected data and having energy consumption numbers, I think one could collect easily all the data needed for those weather based adjustments, as degee day is indicator for “heating need”. In previous example they are using gas measured in cubic meters, but it can be adapted for whatever energy source.
Last winter I did almost all heating with electricity and my utility company provides hourly temp with consumption in their site in Excel form, using it I can calculate heat losses quite accurately. If utility company provides that kind of data, it will help making better prediction (and saves one year for collecting data!)
Did you ever find out the register for the inside temp sensor?
I just ordered this and waiting for it to arrive later this week.
EDIT
Used Google translate now on a previous post, “S_261_85: L1 Huonelämpötila” I guess that might be the inside temp sensor register, will test it once I have the sensor installed.