00:00Hello, in today's tutorial we will talk about how we can display cell deviation in Home Assistant.
00:27We find the tutorial at Smart Home.
00:29Cell deviation display in Home Assistant.
00:34We have a little description here.
00:37As you know, everyone knows who uses Home Assistant at a beginner level, so to speak.
00:45In Home Assistant you can display the cell with the highest voltage and the cell with the lowest voltage.
00:52Well, there is also the average voltage, which is not very interesting from my point of view.
00:59As I told you, we have them here.
01:03We have three battery packs.
01:06Maximum voltage, minimum cell voltage.
01:10Maximum voltage, minimum voltage.
01:12Maximum voltage, minimum voltage.
01:15But cell deviation, that is, the difference in voltage between the two values cannot be displayed directly.
01:31In the next tutorial I will show you in a simple and efficient way.
01:37With which you can make a virtual sensor that will display this value.
01:46As I said here, all you have to do is create a sensor and display it in a card.
01:55You need the File Editor add-on.
02:00The add-on that I have here.
02:04Launch it.
02:08Yes.
02:10If you don't have it, install it.
02:16You need the ID of the sensors.
02:22I will show you how to do this.
02:26I recommend, as I wrote here on the site, to open two Home Assistant tabs.
02:34It's the simplest.
02:36Launch the File Editor, navigate to the configuration.yml file.
02:43You can find it in Home Assistant Configuration.
02:48You have to write a code at the end of the file.
02:52Yes.
02:53Launch.
02:57Yes.
02:58Configuration.
02:59You have it here.
03:01I added a line with the initial setup in front of it, so we don't walk on it, let's leave it that way.
03:07Yes.
03:10From here, click here and take all this.
03:21Copy it and put it here.
03:29Yes.
03:31It needs some changes in it, but for now we have it.
03:42As I said, it is recommended to have two Smart Homes open at the same time.
03:50Because we need some values.
03:53Yes.
03:57I closed this.
04:00Yes.
04:01Change the parameters.
04:03FriendlyName.
04:04Put the names you want to give to the sensor.
04:08And the ID of the sensors.
04:10That's all you have to do here.
04:13The thing I'm going to try to do.
04:17Yes.
04:18Here we will tell him.
04:23dev1
04:31dev2
04:38and dev3
04:41We will go here.
04:46And we will take the ID of the sensor.
04:51Yes.
04:52We copy it.
04:55And here we replace it with this one.
05:07Yes.
05:08After which we take the value of the minimum sensor.
05:14We copy it from here.
05:25And we solved the first sensor.
05:29After which we take the values from here.
05:52Yes.
05:54Minimum voltage.
06:00We also copy this sensor.
06:19Yes.
06:21Of course, to make it easier for me, I will replace it with 3, because I know the address of the sensors.
06:43So.
06:51Yes.
07:01Yes.
07:02We made these changes.
07:05And we save.
07:07Yes.
07:10Save and restart Home Assistant.
07:14Now we don't need this tab anymore.
07:20We go to Settings.
07:22Add-ons.
07:23New, sorry.
07:25System.
07:26And restart Home Assistant.
07:28We wait for it to restart.
07:31Now that Home Assistant has been restarted.
07:39We go here again.
07:41And.
07:43You will create a widget like this.
07:49It doesn't matter what.
07:51We add a card.
07:53And here we write DEV 1.
07:59And it displays the deviation.
08:02As you can see.
08:050.02 volts.
08:09This is the deviation of these two cells.
08:12The most charged cell.
08:13The most discharged cell.
08:17We can go further.
08:18Here we add the same type of card.
08:22Here we write DEV 2.
08:27And it displays the deviation.
08:29If we want to give it a name.
08:38Yes.
08:39We gave it a name.
08:40It displays the deviation.
08:41Let's give it a name here too.
08:51Yes.
08:52And let's do this too.
08:57And we want to include.
09:11It displays.
09:12In any type of card.
09:14It displays the deviation.
09:17Yes.
09:18As we see.
09:19We have the deviation.
09:22Displayed.
09:24It always does the calculation.
09:26Between this and this.
09:29And displays it here.
09:31The same thing.
09:32Between this and this.
09:33Displays it here.
09:34And displays it here.
09:36It's up to you how you personalize it.
09:41Here you can create.
09:43As you know in this card.
09:45Do it with graphics.
09:47What do you want.
09:48Yes.
09:50For example.
09:53We can activate.
09:56So.
09:57And let's say.
09:59Between 0 and.
10:010.1 volts.
10:06No.
10:08Let's put it.
10:09Yes.
10:10It's.
10:11No.
10:12Green.
10:13From 0.1 volts.
10:16It's yellow.
10:17And from 0.2 volts.
10:20It's red.
10:23Minimum.
10:240 volts.
10:25Maximum.
10:270.3.
10:31And.
10:33Done.
10:34You have it.
10:41Yes.
10:42As I said.
10:43It's nothing.
10:44Very.
10:45Very.
10:46Complicated.
10:47It can be solved in two.
10:48Three.
10:49Files.
10:50Of course.
10:51I showed you the deviation.
10:52To the cell.
10:53But.
10:54This thing can be done.
10:55Calculate.
10:56Between any.
10:57Other sense.
10:58If for example.
10:59You want to see the difference.
11:00Between.
11:01Between.
11:02Temperature.
11:03Between.
11:04Inside and outside.
11:05Put it.
11:06And displays it here.
11:07What you need.
11:08Yes.
11:09It's not.
11:10It's not.
11:11It's not a problem.
11:12I showed you the deviation.
11:13Cell.
11:14Cell.
11:15Cell.
11:16Cell.
11:17Cell.
11:18Cell.
11:19Cell.
11:20Cell.
11:21Cell.
11:22Cell.
11:23Cell.
11:24Cell.
11:25Cell.
11:26Cell.
11:27Cell.
11:28Cell.
11:29Cell.
11:30Cell.
11:31Cell.
11:32Cell.
11:33Cell.
11:34Cell.
11:35Cell.
11:36Cell.
11:37Cell.
11:38Cell.
11:39Cell.
11:40Cell.
11:41Cell.
11:42Cell.
11:43Cell.
11:44Cell.
11:45Cell.
11:46Cell.
11:47Cell.
11:48Cell.
11:49Cell.
11:50Cell.
11:51Cell.
11:52Cell.
11:53Cell.
11:54Cell.
11:55Cell.
11:56Cell.
11:57Cell.
11:58Cell.
11:59Cell.
12:00Cell.
12:01Cell.
12:02Cell.
12:03Cell.
12:04Cell.
12:05Cell.
12:06Cell.
12:07Cell.
12:08Cell.
12:09Cell.
12:10Cell.
12:11Cell.
Comments