Inkbird ITC-308 Wifi not updating

Hi,

I’m just having starting with home assistant so am very new to this. I have a inkbird ITC-308 Wifi which I use to turn on a fan in my polytunnel. I registered the device with the tuya app and it bring in the temperature reading fine except it is missing a float. It’s 8.4 degrees Celsius but home assistant shows 84 degrees. I found the below code online which fixes the problem so it is now reading correctly.

The issue now is the sensor does not update. If i restart home assistant i get the latest reading but it does not change after that. I thought that sensor.time should get a reading every minute.

I’ve very new to this any help would be great

Thanks
CJ

 tuya:
  username: xxxxxx
  password: xxxxxx
  country_code: 353
  platform: smart_life

sensor: 
  - platform: template
    sensors:
    
      poly_set_temp:
        friendly_name: 'poly_set_temp'
        entity_id: sensor.time
        device_class: temperature
        unit_of_measurement: "°C"
        value_template: >
            {{ state_attr('climate.42820828ecfabc9a56', 'temperature') /10 }}

      poly_temp:
        friendly_name: 'poly_temp'
        entity_id: sensor.time
        device_class: temperature
        unit_of_measurement: "°C"
        value_template: >
            {{ state_attr('climate.42820828ecfabc9a56', 'current_temperature') /10 }}

Hi,

I worked out how to get the sensor to update.

 sensor:
  - platform: time_date
    display_options:
      - time
      - date
      - date_time
      - time_date
2 Likes

what does this mean? is the code you provided earlier already corrected? please help a noob.

do you need to flash the firmware in order to get this into home-assistant?