thejeffreystone / hassio_addons

Apache License 2.0
48 stars 29 forks source link

Solar radiation from Bresser Weather Center 7-in-1 is not recognized, even though transfered from the station to the WU API #15

Open convicte opened 3 years ago

convicte commented 3 years ago

All but the abovementioned metric are pulled into HA without any issues.

https://www.bresser.de/en/Weather-Time/BRESSER-WIFI-ClearView-Weather-Center-with-7-in-1-Sensor.html

image

exeljb commented 3 years ago

I wonder if updating the supported protocols from the original repo for the rtl-433 would resolve the issue. I’ve noticed there’s about 20 new devices in the list and that they do update/correct issues from existing protocols.

https://github.com/merbanan/rtl_433

thejeffreystone commented 3 years ago

It could be. That should get update the next version that gets push. But I suspect we need it defined in the rtf_433_mqtt_hass.py file, and I am not sure what the config would be. I suspect its getting added to MQTT but the auto discovery is ignoring it.

thejeffreystone commented 3 years ago

ok, yep, looks like the rtf_433 team has been working on the 7n1.

Let me make some quick changes.

thejeffreystone commented 3 years ago

Ok, added a definition for the light_klx sensor. Update the add-on and see if the Lux sensor shows up. Sorry, I dont have a way to test.

So we will test in production.

convicte commented 3 years ago

Hi, thank you so very much for looking into it:

A few comments: 1) Your changes added the klx sensor just fine! The issue is the solar radiation reported by the device is given in Watts/m2 as opposed to light intensity given in Lux. Furthermore, the reported value of 25 does not seem to relate to the watt/m2 directly image image 2) Furthermore, the 25 klux, which I assume would be 25.000 lux or 25lux (if we ignore the K), has an over 1-3 order of magnitude mismatch against another lux sensor I have in the garden. The other sensors image The klux sensor readout image

3) While addind the 7-in-1 sensor, I cannot get the old 6-in-1 sensor entities removed. Even though it's not listed in the add-on for pooling, nor did it update for hours, since I disabled it, it still cannot be deleted from HA. image

I did restart HA and the add-on twice since, also change the MQTT retain to false, to make sure the last state is not rebroadcasted to HA, but this didn't help: image

Any additional help will be greatly appreciated.

thejeffreystone commented 3 years ago

Hmm.. Based on this (https://github.com/merbanan/rtl_433/issues/1492#issuecomment-693456112) it made it sound like the value was in klux from the sensor so I assumed the weather display is converting that to watts/m2 which looks like its just lux multiplied by .0079, so I left it as is. But we could update the definition to do the conversion.

I'm more worried that it appears that lux sensor doesn't align with your other one, although 25000 * .0079 is close to your reported watts/m2 in the screen shot so maybe its right in terms of converting to watts/m2.

And you know, I recently ran into that phantom entity issue too where the button to delete an entity was greyed out recently.

I was able to delete the whole device which Took care of it using delete from the device page:

Screen Shot 2021-09-17 at 9 20 59 AM

Which may work, and the others that should be there should rebuild. But you may have to remove the MQTT topic as well to get it to re-add to HA which I am not sure you can do from inside HA. Still a noob on this auto discovery stuff.

I'll have to see if there is a better way than that.

convicte commented 3 years ago

Thank you for the response, and my apologies for the long delay in getting back to you.

I've created a small test dashboard and honestly there doesn't seem to be much correlation at all. image At least one should be able to calculate the Solar Radiation (which I see on the station's display and the Wunderground portal) from the sensor klux, but it's not the case.

Thous on this would be greatly appreciated. Thanks!!

P.S. I was able to delete the ghost entities the way you described - thank you!