I can't communicate with my water level sensor the way I want

Hello there,
I have a problem
I bought a level sensor for my water tank, installed and demonstrated it.
Afterwards, when I enter the device, it works in the tuya mobile app with many data defined correctly.
I synchronized this device with the home assistant that I use in my home via tuya cloud and made it communicate.
The device is defined here as climate.xxxx, not sensor.
I wanted to define a graphics card for homeassitant but I could neither run the existing graphics card nor define a new one.
‘’‘-the codes I use’‘’

lovelace
  Views:
    - title: "Water Tank Graphics"
      cards:
        - type: history-graph
          entities
            - sensor.sudeposeviyesensoru
          hours_to_show: 24
          title: "Water Level Graph"
          refresh_interval: 0
          line_color: var(--accent-color)
          points_per_hour: 1
          line_width: 3
          show:
            fill: true
          color_thresholds:
            - value: 0
              color: 'var(--label-badge-red)'
              label: 'Empty'
            - value: 25
              color: 'var(--label-badge-yellow)'
              label: '25%'
            - value: 50
              color: 'var(--label-badge-green)'
              label: '50%'
            - value: 75
              color: 'var(--label-badge-yellow)'
              label: '75%'
            - value: 100
              color: 'var(--label-badge-red)'
              label: 'Full'

HACS is installed on my device, UI Lovelace is installed, but although I wrote many different codes, I could neither create a new card nor make progress, I want to learn from the beginning if necessary.
my water level sensor has 5 stages 0% 25% 50% 50% 75% 100%

In ha developer tools/states, does this sensor exist and what does it show?

hi, there was no such tool in the developer tools, I created a sensor like this but it has no function

I don’t know what you mean by that? The tool is here

Open your Home Assistant instance and show your state developer tools.

Or do you mean that sensor did not exist there.

If the latter, how did you create the sensor? You don’t create sensors in lovelace.

My device is defined this way


this is the name it is defined in the tuya app, with this device I normally measure the water level and it shows 5 levels.
‘’ No card type found ‘’
This is the problem I encounter when I want to define the codes manually

Quite how this device was seen as a climate entity is a mystery. What device exactly is it? A link would help. And the attributes of the climate entity.

image

`Preformatted text`entities:
  - entity: climate.sudeposuseviyesensoru
title: Direction
direction: up
height: 250px
stack: horizontal
type: custom:bar-card

code, but it doesn’t work because the graphics card I’m using can’t receive data.
link to the product I use ;

I define this device through the tuya app, it sees it like an air conditioner in homeasis, it is not enough, it transmits the results to me like heat, can we find a solution? :hot_face: :stuck_out_tongue_closed_eyes: :stuck_out_tongue_closed_eyes: :stuck_out_tongue_closed_eyes: :stuck_out_tongue_closed_eyes:

You still haven’t shown us the attributes of the climate entity. It is probably an error in the tuya integration, but your unwillingness to answer even simple questions is a barrier to helping you.

Please go to developer tools and copy/paste the attributes of the climate.sudeposuseviyesensoru entity.

solved my problem

Please share for the benefit of people who face the same issue.

What was the problem?

My problem was that when I defined a sensor integrated via tuya smart in home assistant, it appeared as climate. I solved this problem with the help of chatgpt;
firstly, in order for home assistant to see my sensor that appears as climate as a sensor
into the config.yaml file

sensor:
  - platform: template
    sensors
      sudeposuseviyesensor:
        friendly_name: "Water Tank Level"
        unit_of_measurement: "°C"
        value_template: "{{ state_attr('climate.sudeposuseviyesensoru', 'current_temperature') }}"

I wrote a code like this, wrote the code and restarted my device. after the device started, I had a data source in my devices that could show me the data of the same device as a sensor.
Then I created a sensor card in the form of a pool with the help of chatgpt in the channel I wanted to create from the dashboard, with the help of this card I was able to use my graphics file.
now I have another problem,
1stly, I should be able to find the lovelace application in the add on store on my homeassist server, but I can’t find it.
2. In fact, lovelace is installed on my device, but I can’t see this application installed in the add on store, or when I want to edit a dashboard, I can’t see it on this screen and I have many problems like this.
So I solved my problem only momentarily.

Well anyone could have told you that is you had answered what I asked.

Please don’t come and ask here if you prefer chatgpt.

Since I don’t know English very well, I looked for the solution from there, I somehow communicate from here, but I preferred it because I had difficulty understanding while reading.