Ease of use

Alright!

Go to settings → devices and integrations → new integration.
Type in Smappee

The the API.
What is the url for the API. We need to have a look at it I believe.

There are different “levels” of chargers. A level 1 charger can run off the normal home ac mains outlet, ther kind you woiuld plug your lamp into. I think HA could control a level one charger to charge only when rates are low today. You wouild not need anything but a “smart outlet” and some way to know when the rates are low.

I can buy a “smart plug” on Amazon for $15 and then plug ther level one charger into it. I know I could sert this up an an hour or so.

But level one chargers are so slow as to be not used very much. And I’ve not seen any 50 amp smart plugs. But I have seen 50 amp solid state relays. I could build a device to turn on and off the power to a dump level two charger.

If you have a level one charger, it might be a good education to set it up on a smart plug and let HA control it. Then you’d be in a better position to implemtn what you really need.

The thing about HA is that it is not a product, it is a framework for building a product. Just like lumber is not a house.

Use contactors instead when you are talking about these high loads.
Relays are more unreliable the more you load them, and they start getting unreliable very early.
Like phone charger can make them unreliable

It’s not a level 1 charger. It’s hooked up to the mains electricity board. Has a 30A limiter (max) and charges from our solar panels and/or the mains.

To get the API I’ve emailed the smappee company.

Do you need that API?
I thought the integration was enough.

But the API you need was Amber Electric? To get the prices?

Apparently the Smappee needs to have the API.

Amber electric I just logged in and generated an API and entered that which seemed simple enough.

So it’s a private API key for you.
Ok so do you manage to get the prices in to HA?

image

I think this is them in this partial screenshot - called “Sensor” in the HA app.

I have the Smappee “Connect” - not a smappee “Genius”. The table in the this link shows that the Connect does not have local discovery by HA. It needs to use the Cloud API. I have received the API from Smappee - but am unsure what I need to do next. It is something about a configuration.yaml file.

Documention says To use the Smappee cloud integration you need a personal client_id and client_secret and add these to your configuration.yaml file.

Correct.

#Example configuration.yaml entry
smappee:
  client_id: YOUR_CLIENT_ID
  client_secret: YOUR_CLIENT_SECRET

In order to do this you need to add the add-on (in settings) file editor.

So I added that and seem to have saved it successfully. But now I’m unsure of the next step(s). When I ‘Add integration’ and type in Smappee I receive a “Component not configured…” message. I assume I need to connect via the cloud and not local? If it is local is the Host* the device IP address?

image

Not sure what file you have opened in that screenshot.
There should be a lot more in your configuration.yaml file.
It should look like this:


The actual content varies but there should be at least a few lines of stuff.

And yours doesn’t seem to be correct.

Also keep in mind the spaces are important.
In the example the C in client_id should match up with the A in smappee.
If it doesn’t then it will not work

So is that all stuff you’ve typed in?

I have 1375 lines of yaml in there.
A lot of it is old stuff that I now could use GUI to add.
Helpers for instance was just added through yaml previously, same with zones.
The climate entities you see in the screenshot is something that is still configured in yaml, but it controls the heating in each room.
I have about 400 lines of template sensors. Also something you can do in the GUI since last year.
Then there is a few integrations that still need a few lines of yaml in the configureation.yaml in order to work.

I could move a lot over to GUI but just haven’t done it.
I don’t really see a reason.

I’m still confused about the Smappee integration. When I try to add it I use “Cloud”. This is because I have a Smappee Connect which from my understanding requires API connectivity. As it says in the documentation:

This is what I see when I select add integration:

Screenshot 2024-04-22 at 9.25.51 PM

And then when I click “submit” I receive the following message:

Screenshot 2024-04-22 at 9.26.05 PM

So I’m pretty stumped. Any suggestions to what I’m missing would be appreciated.

Did you fix the issue with indentation and adding it to the correct file as I wrote previously?

When you refer to “the correct file”, what do you mean by that?

In this post here:

It’s unclear where you typed this.
It’s most likely no in configuration.yaml file.

Open the file editor
Press the foder button:

Then open the configuration.yaml file.

Is the Smappee details in this file?

Okay, thanks for directing me to that. Yes, I have /homeassistant/configuration.yaml but there are only the three lines as follows

Screenshot 2024-04-23 at 6.18.59 PM

If I need to write the rest of the .yaml lines then I think I’m in this over my head.

Brent

I would say your HA shouldn’t function without the rest of the lines that should be there.
I’m really surprised about this.

What other files do you have in the folder?

Keep in mind that you can’t choose to use capital letters as you like, and the spaces between client and id should be an underscore.
I’m sorry to bother you about these things but it could brick your install.

If you save the file with a incorrect configuration as you posted picture of and then the power goes out then it will try to load with that configuration. And if you are unlucky then it will not boot at all.

1 Like