tuya-home-assistant icon indicating copy to clipboard operation
tuya-home-assistant copied to clipboard

Bresser "ClimateConnect Tuya" (Smart 7-in-1 weather station) is reported as unsupported in HA with no entities found

Open Masadido opened this issue 2 years ago • 36 comments

Describe the bug

I am trying to integrate the Bresser "ClimateConnect Tuya" (Smart 7-in-1 weather station) - which is branded as a tuya compatible device - into Home Assistant through the tuya integration.

The device is recognized in the tuya IoT platform and in the tuya integration but information on the device give the following "Device info: Smart 7-in-1 weather station (unsupported) by Tuya " "Controls: This device has no entities"

Device info

Bresser Smart 7-in-1 weather station https://www.bresser.de/en/Weather-Time/BRESSER-7-in-1-ClimateConnect-Tuya-Smart-Home-Weather-Station.html

Expected behavior

I am supposed to have access to all sensors of the device through the tuya integation but got none.

Diagnostics for integrations and devices

tuya-bbb6fff01ac39a7445edf904e4f16229-Smart 7-in-1 weather station-1f9eaa7c161614a9cbab07d9e68750e8.json (3).txt

tuya

Happy new year and thanks a lot for your support !

Masadido avatar Jan 15 '23 11:01 Masadido

Same issue

Sthev61800 avatar Feb 13 '23 00:02 Sthev61800

Issue duplicated, let me share the original issue requested in october... https://github.com/home-assistant/core/issues/79942

mcortinas avatar Feb 26 '23 18:02 mcortinas

Just use Tuya Local. Config info can be obtained from iot.tuya.com after creating a project and pairing the app

superaum3 avatar Mar 16 '23 17:03 superaum3

sorry, was this sorted out anyhow? I' interested in this weather station, but only if cleanly integrable in HA thanks

MassiPi avatar Jul 21 '23 10:07 MassiPi

Same issue

liouma avatar Aug 12 '23 04:08 liouma

Same issue here

wizu avatar Aug 17 '23 19:08 wizu

Hi, did anyone of you try local tuya? I think that might be a way to go, however I don't have this weather station to test

bono122b avatar Aug 18 '23 08:08 bono122b

Just use Tuya Local. Config info can be obtained from iot.tuya.com after creating a project and pairing the app

Can you confirm it is working for you with local tuya?

bono122b avatar Aug 18 '23 08:08 bono122b

Yep. Has been running for 6 months or so. There is a guide on youtube on how to set local tuya up. It takes 1 hr or so to do but then everything is reported. Remember to buy the bresser station with tuya. The have some that do not have tuya.See screenshot from my home assistant. https://ibb.co/vst902M

Even bought the bresser pool termometer and added that. No problems.

https://www.youtube.com/results?search_query=tuya+local

superaum3 avatar Aug 18 '23 10:08 superaum3

Thank you! I have local tuya already configured for another device (tuya power socket was showing only one entity in HA for 'normal' tuya, with local tuya it was showing more) so I was curious if it is going to be similar for weather station. On screenshot attached by you I can see that there is no entity for wind speed - is it not available?

BR

Yep. Has been running for 6 months or so. There is a guide on youtube on how to set local tuya up. It takes 1 hr or so to do but then everything is reported. Remember to buy the bresser station with tuya. The have some that do not have tuya.See screenshot from my home assistant. https://ibb.co/vst902M

Even bought the bresser pool termometer and added that. No problems.

https://www.youtube.com/results?search_query=tuya+local

bono122b avatar Aug 18 '23 10:08 bono122b

@superaum3 Did you setup your locan instanse anew? Because i allready had it running as "local" but the weather station is only listed under devices, same as for Masadido

Yep. Has been running for 6 months or so. There is a guide on youtube on how to set local tuya up. It takes 1 hr or so to do but then everything is reported. Remember to buy the bresser station with tuya. The have some that do not have tuya.See screenshot from my home assistant. https://ibb.co/vst902M

Even bought the bresser pool termometer and added that. No problems.

https://www.youtube.com/results?search_query=tuya+local

JudgeFredd avatar Aug 19 '23 13:08 JudgeFredd

Remove old integration. Follow the youtube videos. Remember first to add the item on the phone app and at the Tuya website to get all the keys ect and then add tuya local https://ibb.co/y0yPsHj

superaum3 avatar Aug 19 '23 15:08 superaum3

Allright.. So.. I had in fact NOT installed the Tuya Local from HACS, only the std. one from integrations..

I have now corrected this, and have the weather station setup, i do however have a small problem the temperatures in/out are wrong or rather there is a comma og puntuation missing, for example it gives me the result of 206 degrees celsius when in fact the correct temperature is 20,6 degrees (yes in Denmark, we use . and , differently).. The same is for the Barometer it states 10089 when the pressure is 1008.. I can see from the debug menu in dev at Tuya, that the results are the same there, so it's not as such an error with the tuya local addon.. On my Android phone the results are correct..

JudgeFredd avatar Aug 19 '23 18:08 JudgeFredd

I am also a dane, but running my HA in english with regional settings that is european. You can just make a template sensor to correct this and divide by 10. Template sensors are easy to make once you understand them. Here are some I made for the Bresser weatherstation to change some of its standard outputs I wanted in a different format. First calculates the cardinal direction (N, S, E, W ect.) from the degress that the bresser station reports. Second one looks at the wind speed to give a descriptive windspeed which is my version of the Beaufort scale

superaum3 avatar Aug 19 '23 19:08 superaum3


- platform: template
  sensors:
     bresser_wind:
       unique_id: '5601b1fc-d3e1-11ed-afa1-0242ac120002'
       friendly_name: Wind direction
       value_template: >
         {% set direction = ['(N)','(NE)','(E)','(SE)','(S)','(SW)','(W)','(NW)'] %}
         {% set degree = states('sensor.bresser_weather_station_wind_bearing')|float %}
         {{ direction[((degree+11.25)/45)|int] }}
       icon_template: mdi:weather-windy

- platform: template
  sensors:
     wind_speed_name:
       unique_id: '7ee84bda-d3e1-11ed-afa1-0242ac120002'
       friendly_name: Beaufort Wind speed 
       value_template: >
         {% set wind = state_attr('weather.my_weather_station', 'wind_speed')|float %}
         {% if wind <= 1 %}Calm
         {% elif wind <= 1.5 %}Light air
         {% elif wind <= 3.3 %}Light 
         {% elif wind <= 5.5 %}Gentle 
         {% elif wind <= 7.9 %}Moderate 
         {% elif wind <= 10.7 %}Fresh 
         {% elif wind <= 13.8 %}Strong 
         {% elif wind <= 17.1 %}Windy
         {% elif wind <= 20.7 %}Fresh wind
         {% elif wind <= 24.4 %}Strong wind
         {% elif wind <= 28.4 %}Storm
         {% elif wind <= 32.6 %}Violent
         {% else %} > 32.7 %}Hurricane
         {%- endif %}
       icon_template: mdi:weather-windy

superaum3 avatar Aug 19 '23 19:08 superaum3

and if you use mushroom template cards you can also get the icon to change according to the direction from the Wind direction template with the below code

superaum3 avatar Aug 19 '23 19:08 superaum3

        {% if is_state("sensor.bresser_wind", "(N)") %}
          mdi:arrow-down-thick
        {% elif is_state("sensor.bresser_wind", "(NE)") %}
          mdi:arrow-bottom-right-thick
        {% elif is_state("sensor.bresser_wind", "(E)") %}
           mdi:arrow-left-thick
        {% elif is_state("sensor.bresser_wind", "(SE)") %}
           mdi:arrow-top-right-thick
        {% elif is_state("sensor.bresser_wind", "(S)") %}
           mdi:arrow-up-thick
        {% elif is_state("sensor.bresser_wind", "(SW)") %}
           mdi:arrow-top-left-thick
        {% elif is_state("sensor.bresser_wind", "(W)") %}
           mdi:arrow-right-thick
        {% elif is_state("sensor.bresser_wind", "(NW)") %}
           mdi:arrow-bottom-left-thick
        {% else %}
          mdi:home
        {% endif %}

superaum3 avatar Aug 19 '23 19:08 superaum3

Thank you! I have local tuya already configured for another device (tuya power socket was showing only one entity in HA for 'normal' tuya, with local tuya it was showing more) so I was curious if it is going to be similar for weather station. On screenshot attached by you I can see that there is no entity for wind speed - is it not available?

BR

Yep. Has been running for 6 months or so. There is a guide on youtube on how to set local tuya up. It takes 1 hr or so to do but then everything is reported. Remember to buy the bresser station with tuya. The have some that do not have tuya.See screenshot from my home assistant. https://ibb.co/vst902M Even bought the bresser pool termometer and added that. No problems. https://www.youtube.com/results?search_query=tuya+local

Thank you! I have local tuya already configured for another device (tuya power socket was showing only one entity in HA for 'normal' tuya, with local tuya it was showing more) so I was curious if it is going to be similar for weather station. On screenshot attached by you I can see that there is no entity for wind speed - is it not available?

BR

Yep. Has been running for 6 months or so. There is a guide on youtube on how to set local tuya up. It takes 1 hr or so to do but then everything is reported. Remember to buy the bresser station with tuya. The have some that do not have tuya.See screenshot from my home assistant. https://ibb.co/vst902M Even bought the bresser pool termometer and added that. No problems. https://www.youtube.com/results?search_query=tuya+local

since you get so many entities there was not room in the screenshot. here is another with wind direction ect.. https://ibb.co/mN3W8Rd

superaum3 avatar Aug 19 '23 21:08 superaum3

Thx! I will loook into that, and probably check out the mushroom template cards also!

JudgeFredd avatar Aug 20 '23 09:08 JudgeFredd

My bresser 7 in 1 weatherstation just arrived and I can confirm it works perfectly fine with local tuya in home assistant! @superaum3 how did you figure out which IDs are which sensors when adding them one by one? I have few showing some values but I have no idea what that is as I don't find these values on a screen nor on app (like Pressure drop in your case).

bono122b avatar Aug 23 '23 12:08 bono122b

@bono122b I am guessing that you are running local tuya and not tuya local. Look at my screenshots. Tuya Local is a HACS component. All my entities where imported automatically as far as I remember. If you need to rename then just look at the display that is part of the bresser station and compare values to find out what is what. :-)

superaum3 avatar Aug 23 '23 22:08 superaum3

@superaum3 ; hello, what kind of entity do you use for the wind direction ? number, switch, sensor (in local tuya)..... ;)

Totche5962 avatar Aug 24 '23 15:08 Totche5962

@Totche5962 The wind direction from the station is just a number, and as I wrote I use Tuya Local not Local Tuya. I am pretty sure that Tuya Local just imports them correctly. If you are referring to the Beaufort wind scale you need to define a weather template, which will also help you easily setup a standard or custom weather card with the data from the bresser weather station. Look below

superaum3 avatar Aug 25 '23 06:08 superaum3

  • platform: template sensors: bresser_wind: unique_id: '5601b1fc-d3e1-11ed-afa1-0242ac120002' friendly_name: Wind direction value_template: > {% set direction = ['(N)','(NE)','(E)','(SE)','(S)','(SW)','(W)','(NW)'] %} {% set degree = states('sensor.bresser_weather_station_wind_bearing')|float %} {{ direction[((degree+11.25)/45)|int] }} icon_template: mdi:weather-windy

  • platform: template sensors: wind_speed_name: unique_id: '7ee84bda-d3e1-11ed-afa1-0242ac120002' friendly_name: Beaufort Wind speed value_template: > {% set wind = state_attr('weather.my_weather_station', 'wind_speed')|float %} {% if wind <= 1 %}Calm {% elif wind <= 1.5 %}Light air {% elif wind <= 3.3 %}Light {% elif wind <= 5.5 %}Gentle {% elif wind <= 7.9 %}Moderate {% elif wind <= 10.7 %}Fresh {% elif wind <= 13.8 %}Strong {% elif wind <= 17.1 %}Windy {% elif wind <= 20.7 %}Fresh wind {% elif wind <= 24.4 %}Strong wind {% elif wind <= 28.4 %}Storm {% elif wind <= 32.6 %}Violent {% else %} > 32.7 %}Hurricane {%- endif %} icon_template: mdi:weather-windy

Hello, i am new into the templates. I have the Bresser climate connect integrated too, but I am trying to use your template and its sending me unavailable. My doubts are, ( the wind_speed_name, and weather.my_weather_station and wind_speed, that I don't know how to adapt those on my ha.

Thanks for your help.

isa12345678 avatar Sep 20 '23 19:09 isa12345678

@isa12345678 I suggest that you readup on templates on the home assistant website and maybe also look at some youtube videos. This will help you to understand. Templating has in the last 3 months become even easier as it is now part of the helpers in home assistant. See

The above will work if you get the right entities. Unavailable is likely because your entity is not named the same as mine sensor.bresser_weather_station_wind_bearing

It may be bresser_wind_bearing or something similar. To see what entites the integration makes available you either go under developer and search for bresser or go to integrations and find the names of these under Local Tuya. See the previously posted link to a screenshot from my Home Assistant with 32 entities under integrations https://imgbb.com/y0yPsHj

superaum3 avatar Sep 21 '23 10:09 superaum3

@isa12345678 I suggest that you readup on templates on the home assistant website and maybe also look at some youtube videos. This will help you to understand. Templating has in the last 3 months become even easier as it is now part of the helpers in home assistant. See

The above will work if you get the right entities. Unavailable is likely because your entity is not named the same as mine sensor.bresser_weather_station_wind_bearing

It may be bresser_wind_bearing or something similar. To see what entites the integration makes available you either go under developer and search for bresser or go to integrations and find the names of these under Local Tuya. See the previously posted link to a screenshot from my Home Assistant with 32 entities under integrations https://imgbb.com/y0yPsHj

Thank you for your fast response. I have the integration now with tuya local instead of local tuya that I had before and I have got the same identities discovered. I will check YouTube videos to understand better the templates.

Thank you for your help.

isa12345678 avatar Oct 05 '23 17:10 isa12345678

After messing around with local tuya for ages without being able to get it to work with my Bresser weather station, it finally dawned on me what was wrong when I read @superaum3 post. There are at least TWO different versions of local tuya and I used the wrong one - doh.

I had used "local tuya" which can certainly show the values, but all sensors have to be created manually and since there are many it is not the right way to go.

But @superaum3's post showed that there is also a local tuya called "tuya local" and it doesn't exactly make things easier that they have almost the same name. When I searched for integrations in my HACS, only "local tuya" came up and not "tuya local", so I assumed I had the right one.

The correct one for my Bresser 7i1 weather station is tuya local

And voila - all the sensors are detected automatically in HA

kbubandt avatar Oct 16 '23 15:10 kbubandt

Used Tuya Local to get all sensors but did someone managed to block Tuya from accessing internet ? Try blocking the client via my UDM Pro and block the DNS request in Pihole without sucess. Any idea ?

lennvilardi avatar Oct 18 '23 16:10 lennvilardi

@JudgeFredd I Just migrated platform and had to setup it again and in fact you need to add the sensors individually and to your question on it missing comma og punctuation. There is each time you add a sensor to add a factor at the bottom. Add 0.1 if you get 206, then you get 20.6 or 20,6 degress depending on your regional setup. You can also add on addtional zero by stating 10. As mentioned before templating which now can be done from the UI can also fix this issue when you want to change one input to another - either from numeric or strings.

superaum3 avatar Nov 05 '23 09:11 superaum3

For those still interested (or willing to go further)n here is what I am using for the local tuya setup of the weather station

        "bfd1270378c5907972ix6r": {
          "friendly_name": "Smart 7-in-1 weather station",
          "host": "192.168.1.xxx",
          "local_key": "06efbc551caa24d9",
          "protocol_version": "3.3",
          "enable_debug": false,
          "entities": [
            {
              "friendly_name": "In Temperature",
              "unit_of_measurement": "°C",
              "device_class": "temperature",
              "scaling": 0.1,
              "id": 1,
              "platform": "sensor"
            },
            {
              "friendly_name": "In Humidity",
              "unit_of_measurement": "%",
              "device_class": "humidity",
              "scaling": 0.1,
              "id": 2,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor3",
              "id": 3,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor9",
              "id": 9,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor10",
              "id": 10,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor11",
              "id": 11,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor12",
              "id": 12,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor13",
              "id": 13,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor30",
              "id": 30,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor31",
              "id": 31,
              "platform": "sensor"
            },
            {
              "friendly_name": "Out Temperature",
              "unit_of_measurement": "°C",
              "device_class": "temperature",
              "scaling": 0.1,
              "id": 38,
              "platform": "sensor"
            },
            {
              "friendly_name": "Out Humidity",
              "unit_of_measurement": "%",
              "device_class": "humidity",
              "scaling": 1.0,
              "id": 39,
              "platform": "sensor"
            },
            {
              "friendly_name": "Air Pressure",
              "unit_of_measurement": "hPa",
              "device_class": "pressure",
              "scaling": 0.1,
              "id": 54,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor55",
              "id": 55,
              "platform": "sensor"
            },
            {
              "friendly_name": "Wind Speed",
              "unit_of_measurement": "m/s",
              "scaling": 0.1,
              "id": 56,
              "platform": "sensor"
            },
            {
              "friendly_name": "Gust",
              "unit_of_measurement": "m/s",
              "scaling": 0.1,
              "id": 57,
              "platform": "sensor"
            },
            {
              "friendly_name": "Wind Direction",
              "id": 58,
              "platform": "sensor"
            },
            {
              "friendly_name": "Daily Rain Fall",
              "unit_of_measurement": "mm",
              "scaling": 0.001,
              "id": 60,
              "platform": "sensor"
            },
            {
              "friendly_name": "Rain Rate",
              "unit_of_measurement": "mm/h",
              "scaling": 0.001,
              "id": 61,
              "platform": "sensor"
            },
            {
              "friendly_name": "UV index",
              "scaling": 0.1,
              "id": 62,
              "platform": "sensor"
            },
            {
              "friendly_name": "Light Intensity",
              "unit_of_measurement": "lux",
              "scaling": 1.0,
              "id": 63,
              "platform": "sensor"
            },
            {
              "friendly_name": "Dew Point",
              "unit_of_measurement": "°C",
              "device_class": "temperature",
              "scaling": 0.1,
              "id": 64,
              "platform": "sensor"
            },
            {
              "friendly_name": "Feels Like",
              "unit_of_measurement": "°C",
              "device_class": "temperature",
              "scaling": 0.1,
              "id": 65,
              "platform": "sensor"
            },
            {
              "friendly_name": "Heat Index",
              "unit_of_measurement": "°C",
              "device_class": "temperature",
              "scaling": 0.1,
              "id": 66,
              "platform": "sensor"
            },
            {
              "friendly_name": "Windchill",
              "unit_of_measurement": "°C",
              "device_class": "temperature",
              "scaling": 0.1,
              "id": 67,
              "platform": "sensor"
            },
            {
              "friendly_name": "Sensor68",
              "id": 68,
              "platform": "sensor"
            },
            {
              "friendly_name": "Wind Direction Deg",
              "unit_of_measurement": "Deg",
              "id": 101,
              "platform": "sensor"
            }

Masadido avatar Jan 21 '24 16:01 Masadido