Solar Dashboard Project

Projects related to Solar Power
Post Reply
amente
Posts: 31
Joined: Sat Dec 14, 2019 3:32 pm

Re: Solar Dashboard to Home Assistant

Post by amente »

xion2000 wrote:
Wed Jan 29, 2020 9:23 pm
@xion2000, that is an interesting use case. We are looking into adding a feature to the snektek wifi dashboard which enables it to send data to home assistant via MQTT broker. That way you should be able to use the data from the dashboard in Home Assistant. Stay tuned.
That's great news, I will be waiting with bated breath.
[/quote]

@xion2000, I also looked more into Home Assistant and noticed that there is also a Restful API integration (https://www.home-assistant.io/integrations/rest/), you should be able to get data from solar dashboard to use in Home Assistant by sending a request to http://<SOLAR-DASHBOARD-IP>/cur_data , this gives you the current data in JSON format.
xion2000
Posts: 71
Joined: Fri Jan 24, 2020 6:02 am

Re: Remote Access

Post by xion2000 »

@xion2000 You should be able to connect to the solar dashboard remotely if you have enabled port forwarding on your router for port 80 and the IP address of the solar dashboard assigned by your router. If you can let me know the type of your router, I can look into it for you.
[/quote]

Unfortunately I already have port 80 forwarded for something else on my system which I don't think I can change, can I use any other port?
I've tried a few but without any luck
xion2000
Posts: 71
Joined: Fri Jan 24, 2020 6:02 am

Re: Solar Dashboard to Home Assistant

Post by xion2000 »

@xion2000, I also looked more into Home Assistant and noticed that there is also a Restful API integration (https://www.home-assistant.io/integrations/rest/), you should be able to get data from solar dashboard to use in Home Assistant by sending a request to http://<SOLAR-DASHBOARD-IP>/cur_data , this gives you the current data in JSON format.
[/quote]

Hi Amente, thanks for the help with this. I've entered the data into my config.yaml file as you suggested but I do not know what I do next, are you able to offer any further assistance?
amente
Posts: 31
Joined: Sat Dec 14, 2019 3:32 pm

Re: Remote Access

Post by amente »

xion2000 wrote:
Thu Jan 30, 2020 2:19 am
@xion2000 You should be able to connect to the solar dashboard remotely if you have enabled port forwarding on your router for port 80 and the IP address of the solar dashboard assigned by your router. If you can let me know the type of your router, I can look into it for you.
Unfortunately I already have port 80 forwarded for something else on my system which I don't think I can change, can I use any other port?
I've tried a few but without any luck
[/quote]

@xion2000, it is currently not possible to change the port. We will add this feature in future firmware versions.
amente
Posts: 31
Joined: Sat Dec 14, 2019 3:32 pm

Re: Solar Dashboard to Home Assistant

Post by amente »

xion2000 wrote:
Thu Jan 30, 2020 3:11 am
@xion2000, I also looked more into Home Assistant and noticed that there is also a Restful API integration (https://www.home-assistant.io/integrations/rest/), you should be able to get data from solar dashboard to use in Home Assistant by sending a request to http://<SOLAR-DASHBOARD-IP>/cur_data , this gives you the current data in JSON format.
Hi Amente, thanks for the help with this. I've entered the data into my config.yaml file as you suggested but I do not know what I do next, are you able to offer any further assistance?
[/quote]

@xion2000 I am not super familiar with home assistant myself. But, the response from the solar dashboard should have the following JSON format:

Code: Select all

{"t":1580450571,"pv.v":0.28,"pv.c":0,"pv.p":0,"bt.v":13.07,"bt.c":0,"bt.t":0,"genToday":0,"genMonth":0.08,"genYear":20.94,"genTotal":20.94}
The battery voltage is "bt.v" value. I would then expect the config.yaml to be like this:

Code: Select all

sensor:
  - platform: rest
    resource: http://<SOLAR-DASHBOARD-IP>/cur_data
    name: SolarDashboard_BatteryVoltage
    value_template: '{{ value_json["bt.v"] }}'
Now, you should have the battery voltage sensor in Home Assistant and the reading comes from the solar dashboard.
xion2000
Posts: 71
Joined: Fri Jan 24, 2020 6:02 am

Re: Solar Dashboard Project

Post by xion2000 »

sensor:
- platform: rest
resource: http://192.168.1.146/cur_data
name: SolarDashboard_BatteryVoltage
value_template: '{{ value_json["bt.v"] }}'

This is my entry into my config.yaml but I'm not getting any data from it, it creates a sensor but it does not give any data
I've tried changing the IP Address to my external address including port 80 but still no joy
I took a screen grad of the sensor it creates but I don't appear to be able to attach a picture
simbav
Posts: 1
Joined: Fri Jan 31, 2020 6:06 am

Re: Solar Dashboard Project

Post by simbav »

Hi, What power consumption for Solar Dashboard? Thanks.
amente
Posts: 31
Joined: Sat Dec 14, 2019 3:32 pm

Re: Solar Dashboard Project

Post by amente »

xion2000 wrote:
Fri Jan 31, 2020 5:15 am
sensor:
- platform: rest
resource: http://192.168.1.146/cur_data
name: SolarDashboard_BatteryVoltage
value_template: '{{ value_json["bt.v"] }}'

This is my entry into my config.yaml but I'm not getting any data from it, it creates a sensor but it does not give any data
I've tried changing the IP Address to my external address including port 80 but still no joy
I took a screen grad of the sensor it creates but I don't appear to be able to attach a picture
@xion2000, that is a bit odd. What happens when you open the "http://192.168.1.146/cur_data", do you see the data? Are you able to SSH to your raspberry PI and then see the output of `curl http://192.168.1.146/cur_data` from the command line?

To add a picture to your post here, you may upload the image to https://imgur.com/ and put the link here.
amente
Posts: 31
Joined: Sat Dec 14, 2019 3:32 pm

Re: Solar Dashboard Project

Post by amente »

simbav wrote:
Fri Jan 31, 2020 6:10 am
Hi, What power consumption for Solar Dashboard? Thanks.
@simbav We haven't done a more specific power measurement for the solar dashboard but, its power consumption has similar profile to ESP8266, since it is the MCU for the board. This post here has a good analysis of the power consumption depending on the WiFi usage: https://jeelabs.org/book/1526f/. I hope this helps.
xion2000
Posts: 71
Joined: Fri Jan 24, 2020 6:02 am

Re: Solar Dashboard Project

Post by xion2000 »

@xion2000, that is a bit odd. What happens when you open the "http://192.168.1.146/cur_data", do you see the data?
NO, I get "Not found"



Are you able to SSH to your raspberry PI and then see the output of `curl http://192.168.1.146/cur_data` from the command line?

I've never used SSH so that's a bit out of my depth.

I spend several hours yesterday talking through this issue with a friend of mine who isn't actually using either Home assistant of Solar Dashboad but He is pretty tech savvy and so we talked through the issue and later I tried changing the config.yaml numerous times (only slight changes each time) but never got any data returned.
when we interegated the web browser displaying my solar dashboard we never found a "bt.v" so I presumed that you were running an earlier or later version of the Snektek software than Iam (I'm on version 2) what we did find for the 5 data feeds were, g_voltage, g_bvoltage, g_power, g_current, g_bcurrent & pv_v, b_v, pv_p, pv_c, b_c. This was by opening the Solar Dashboard in Google Chrome then "view page source". so I've tried substituting the bt.v you put in your suggestion with g_bvoltage then b_v but no success with either. I've tried internal & external IP Address, with & without port 80. I've tried leaving of the /cur_data.
Thanks again Amente for your patience, I'm sure this is just as frustrating for you as it is me
Post Reply