klaasnicolaas / home-assistant-glow

⚡ The power of energy measurements in your house
https://glow-energy.io/
MIT License
1.07k stars 159 forks source link

SSH into glow? #615

Closed acollien closed 1 week ago

acollien commented 2 weeks ago

Had a google, but can't find it - don't know what I don't know with the board (ESP32) and the glow OS.

How do I ssh into the glow over wifi?

I assumed it might be similar to the various raspberryPis re: remote access, but I can't find any documentation to walk a newbie, like me, though getting it setup.

I gather there's no server running by default? or maybe the port is blocked - my attempts to ssh in have come back with connection refused.

Much appreciated

klaasnicolaas commented 2 weeks ago

You don't find it because this is not possible at all 😅 What were you planning?

./Klaas

acollien commented 2 weeks ago

You don't find it because this is not possible at all 😅 What were you planning?

./Klaas

That would be why then! 😅

I was planning to edit the code directly so I don't have to manually upload config files. Unless there is a way through the UI?

I am just getting some weird readings from Glow - like today, it's about 4PM, I have been out since 9AM, so nothing using power really - additionally, I have solar, so any power passively used by the house would be covered by the solar 10 times over - yet I am seeing an energy usage of 10,000KWh+... and I know the pulse rate is right (1000) because I've used different pulse meters and they gave accurate readings with 1000/rate) - so figured I'd try and play around with the config files via ssh.

I'm also unsure of how to setup dashboard re: what sensors/readings do where - I had a hunt for a guide or definitions of the sensors (e.g. what exactly 'Home Assistant Glow - Daily Energy' means/measures) but no luck. I can guess, but I thought since my reading for daily energy is so far off (it's up to 17,768Kwh now) that maybe I was misinterpreting what each sensor really means?

sensors values

klaasnicolaas commented 1 week ago

Where things go wrong right away is that you use both the daily and total energy entities, while you only use 1 of these 2 in the energy dashboard. You also need to remove the PV generation entities on return to grid and only use 1 of those 2 entities in Solar production.

Also keep in mind that the pulse LED may behave differently in combination with solar panels and this will affect the glow measurements.

./Klaas

acollien commented 1 week ago

Apologies - I only added daily and total for the screenshots, so you could see the kind of values I'm getting on the sensors.

The solar sensors are coming straight from my GoodWe inverter, so are independent of the meter/Glow and they appear to be giving accurate values for generation.

But the Daily Energy reading, coming from glow, is still very far off - I might use 10kwh in a day, so the numbers I am seeing (in the thousands) can't be right.

And re: removing solar from the return-to-grid: Don't I need the daily solar sensor here, so that it can calculate my net solar usage and net energy used?

klaasnicolaas commented 1 week ago

Apologies - I only added daily and total for the screenshots, so you could see the kind of values I'm getting on the sensors.

Don't do it because you are ruining your energy dashboard and it doesn't make it any clearer for me or others what exactly the problem is. Except that I now see that your Daily sensor has a very high value.

But the Daily Energy reading, coming from glow, is still very far off

You may need to set an internal_filter or adjust the calculation method.

removing solar from the return-to-grid

Those entities do not belong there because you do not feed your generated energy directly back into the grid, your house first consumes the necessary energy and the remainder goes into the grid.

As I have already indicated, the pulse LED reacts differently if you also have solar panels, for example by not giving any pulse at all or with huge intermediate poses. You cannot measure with the Glow how much energy you give back to the grid, only how much energy your house uses that runs through the meter.

./Klaas

acollien commented 1 week ago

Apologies - I only added daily and total for the screenshots, so you could see the kind of values I'm getting on the sensors.

Don't do it because ........... much energy your house uses that runs through the meter.

./Klaas

OK, thank you for the advice. I'll take a look at the filter and calculation method.

I note that I don't have any 'Edit' button in the ESPHome dashboard, as this page indicates - is this potentially because I am running HA in a docker environment on unraid (and not the OS version of HA)? - so I gather I need to edit the YAML files directly on the SD card? re: not being able to SSH

klaasnicolaas commented 1 week ago

Can you make a screenshot where the "Edit" button be missing? I can hardly imagine that you don't have it when using ESPHome dashboard.

./Klaas

acollien commented 1 week ago

No problem - quite possible I am looking in the wrong place, but I've not been able to find any editing options that allow me to edit code/config files.

On the ESPHome page, clicking the 'Configuration' link only gives me one check-box (to toggle "Allow the device to perform Home Assistant actions.")

On the ESPHome device page, the edit pencil in the top right-hand corner, just lets me edit the area, name, and label etc. for the device.

And on the ESPHome entity page, I can't see anything that can be edited.

ESPHome ESPHome device

klaasnicolaas commented 1 week ago

This is not the ESPHome dashboard but an overview page of the ESPHome integration.

If you are running Home Assistant OS then you should use the add-on, but since you are running everything in separate Docker containers you will need to run an ESPHome container alongside it. I would advise you to delve a little further into how ESPHome works 😉

./Klaas

acollien commented 1 week ago

I would advise you to delve a little further into how ESPHome works 😉

Sound good - can you point me in the direction of where I can learn more re: docker version etc? as I couldn't find the info I needed here: https://glow-energy.io/

The other other dash I couldn't find is the frontend for glow, but that doesn't have any edit buttons either.

(noticed the time sync is a hour forward too - but that's not so important)

Screenshot 2024-10-15 121640

klaasnicolaas commented 1 week ago

There is plenty of information available on the ESPHome website and community forum. This information is not on the Glow website, because I assume that someone already has a working ESPHome and if not, consults the official docs.

The other other dash I couldn't find is the frontend for glow

You must have found it, considering you took a screenshot of it 😉

./Klaas