Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra Sensors not available #21

Open
knollpoi opened this issue Jan 9, 2022 · 9 comments
Open

Extra Sensors not available #21

knollpoi opened this issue Jan 9, 2022 · 9 comments
Labels
feature-request New feature or request

Comments

@knollpoi
Copy link

knollpoi commented Jan 9, 2022

I have three Davis Weather stations (one ISS, and two temperature stations) connected to a Weatherlink Live which is feeding meteobridge.

I have configured the Meteobridge integration setting for additional sensors to "2" and have also tried the maximum of "7". Also "Enable newly added entities" and "Enable polling for updates" are both enabled. My two additional two sensors do not get populated in Home Assistant.

Meteobridge version: Meteobridge 5.2 (Dec 5 2021, build 2460), FW 1.3

Running HASSOS. Version info below.

Meteobridge Datalogger Integration v3.2.4 installed via HACS

image

System Health

version core-2021.12.7
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.83
arch x86_64
timezone America/New_York
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4809
Installed Version 1.19.1
Stage running
Available Repositories 931
Downloaded Repositories 11
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud failed to load: timeout
Home Assistant Supervisor
host_os Home Assistant OS 7.0
update_channel stable
supervisor_version supervisor-2021.12.2
docker_version 20.10.9
disk_total 118.5 GB
disk_used 13.2 GB
healthy true
supported true
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.2.2), AdGuard Home (4.4.2), Grafana (7.4.0), InfluxDB (4.3.0), Mosquitto broker (6.0.1), Network UPS Tools (0.9.0), Node-RED (10.2.2), Studio Code Server (3.7.0), UniFi Network Application (1.1.3), Samba share (9.5.1), Dnsmasq with DHCP (1.0.1), Z-Wave JS (0.1.51), Check Home Assistant configuration (3.9.0), Samba Backup (5.0.0)
Lovelace
dashboards 8
resources 4
views 12
mode storage

2022-01-08 20:19:55 DEBUG (MainThread) [custom_components.meteobridge] Connected to Meteobridge Platform Davis-WLL
2022-01-08 20:19:59 DEBUG (MainThread) [custom_components.meteobridge] Finished fetching meteobridge data in 4.152 seconds (success: True)
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.binary_sensor] Adding binary sensor entity Is Freezing
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.binary_sensor] Adding binary sensor entity Is Raining
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Air Temperature
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Sea Level Pressure
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Station Pressure
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Relative Humidity
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Precipitation Rate
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Precipitation Today
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Precipitation Current Month
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Precipitation Current Year
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Wind Speed
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Wind Direction
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Wind Gust
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Beaufort
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Solar Radiation
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity UV Index
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Feels Like Temperature
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Heat Index
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Wind Chill
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Dewpoint
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Visibility
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Temperature Trend
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Pressure Trend
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity UV Description
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Wind Cardinal
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Beaufort Description
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Indoor Temperature
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Indoor Humidity
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Air Density
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Wet Bulb Temperature
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Air Temperature Day Min
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Air Temperature Day Max
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Air Temperature Month Min
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Air Temperature Month Max
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Air Temperature Year Min
2022-01-08 20:20:00 DEBUG (MainThread) [custom_components.meteobridge.sensor] Adding sensor entity Air Temperature Year Max

@briis
Copy link
Owner

briis commented Jan 9, 2022

With the way I can get data from the Meteobridge, it is very hard to make this fit all the HW configurations that are possible. I am pretty sure the issue for you is that you have logical sensors that contain a 1 and maybe a 2 in them as you have 3 Stations.

Could you try and go to the Meteobridge Device and click on Station and then Mapping and post that picture here. That will show me how Meteobridge creates the logical sensors for each station. (I only have 1 attached).

I have asked for a way to retrieve the list of logical sensors from Meteobridge, so that I could loop through those and built the right call to get data for all sensors attached, but so far this has not been implemented.

@knollpoi
Copy link
Author

knollpoi commented Jan 9, 2022

I didn't realize that a mapping was needed. After adding a mapping to th1temp and th2temp, I am seeing the new entities in Home Assistant.

I did notice that mapping to a "Temperature Only" sensor, didn't work with the integration. I left that in the screen shot output as t0temp and t1temp for your reference.

image

@briis
Copy link
Owner

briis commented Jan 10, 2022

I did some more digging and actually I do not need you to map to a logical sensor - so if you don't need it, you can remove it again.
I can read the physical sensor directly and you can anyway not map an additional Wind Sensor to a logical sensor, so it would not have fixed it anyway.

Issue now is still that the combination of Weather Stations and Extra sensors attached to 1 Meteobridge can be numerous, so it will require that I rewrite a lot of stuff to create a station per physical device, and then attached sensors to that station. This is a big re-write of the IO module, so it will not happen right now.

@knollpoi
Copy link
Author

Is it possible in the current code to read the physical sensor? Did I just miss a setting somewhere?

@briis
Copy link
Owner

briis commented Jan 12, 2022

No this is not possible. I will have to re-write some code before this can work.

@briis briis added the feature-request New feature or request label Jan 12, 2022
@knollpoi
Copy link
Author

Understood. I'll use it with the mappings for now. When you get around to adding the hardware sensor support I'll be glad to test it.

@briis
Copy link
Owner

briis commented Jan 13, 2022

As soon as I have time, I will have a look at converting this to the Physical sensors. The idea right now is to give you the option of multiple installs where you then select the Physical sensor number 1....x. That way I can also ensure that the sensors get different names, so that they do not override each other.

@sarahmva
Copy link

sarahmva commented Apr 6, 2022

One sensor I have been missing since the last major upgrade is the average wind. It was available in earlier versions. Would it be possible to add this back in? Thanks!

image

@briis
Copy link
Owner

briis commented Apr 6, 2022

The sensor sensor.meteobridge_wind_speed is actually equal to average wind speed. It takes the value from the field you see on top of your list.

sensor.meteobridge_wind_gust gets its value from wind0wind and then takes the highest value within the last minute.

You could have a Wind Speed sensor that shows the current wind speed value, but that updates every 2 seconds and would create too many entries in the HA History log. So that is why I decided to do it like this.

Any comments? Suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants