#Connect Aqara W100 with T1 Temp & Hum sensor

1 messages · Page 1 of 1 (latest)

hoary ore
#

Hello together,
Can some tell how to show the temperature and humidity measured by Aqara T1 on the secondary display of Aqara W100?
Both connected via z2m (using HA green if that matters).
I've tried the blueprint https://community.home-assistant.io/t/aqara-w100-blueprint-for-thermostat-mode/948502
But it doesnt work properly and brings failures into log (I think because I'm not using a "thermostat to control" which is mandatory in the blueprint).

I'm quite new to HA and would really appreciate your help.
Thank you in advance

amber panther
#

what are you using the blueprint for then?

hoary ore
#

Thought it would work. In the blueprint you can select a secondary sensor to be shown on the display. That is what I wanted.
I just don’t have the thermostat on the heating radiator.
And my feeling is that it doesn’t work and I get the failure because of the missing thermostat.

Makes sense?

amber panther
#

Ah gotcha. Well it looks pretty simple to handle - I would just make it as a simple automation though rather than trying to edit the blueprint though
Trigger on the temp/humidity sensors changing and then set the w100 external sensor numbers to match them

hoary ore
#

I understand your point but i cant find the right thing to do with the W100 when for example the temperature changes.
building the automation i can set the trigger with the temp sensor.
Then i choose what to do with the W100 and there are the following options regarding "Temp report":

  • change ... temp report mode to first option [nothing else to set or give a value]
  • change ... temp report mode to last option [nothing else to set or give a value]
  • change ... temp report mode to next option [offers me a check box to do it "circular"]
  • change ... temp report mode to previous option [offers me a check box to do it "circular"]
    OR
  • set the value for ... temperature [there i need to type a value]

Don't have a clue on how to continue

amber panther
#

well - according to the blueprint you have at least - this should be close to working

triggers:
  - trigger: state
    entity_id:
      - sensor.external_temperature_sensor
    id: ext_temp
    not_to:
      - unavailable
      - unknown
  - trigger: state
    entity_id: sensor.external_humidity_sensor
    id: ext_hum
    not_to:
      - unknown
      - unavailable
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - ext_temp
        sequence:
          - action: number.set_value
            target:
              entity_id: number.my_aqara_w100_external_temperature
            data:
              value: |
                {{ states(sensor.external_temperature_sensor) | float }}
          - delay:
              seconds: 2
      - conditions:
          - condition: trigger
            id:
              - ext_hum
        sequence:
          - action: number.set_value
            target:
              entity_id: number.my_aqara_w100_external_humidity
            data:
              value: |
                {{ states(sensor.external_humidity_sensor) | float }}
          - delay:
              seconds: 2
mode: queued
max: 10
#

obviously replace my_aqara_w100... and the t1 temp/humidity sensors with the right entities

hoary ore
#

Thank you a lot.
I used it and seems that it works.
How important is the "mode: queued, max: 10"
Because i was not able to safe unless i deleted that part.

Unfortunately it still doesnt work.
Now I'm not sure, if there is a problem with the setting of w100 in z2m

Do you have an idea on how to continue?

amber panther
#

If you modify those external temperature/humidity sliders in the 2nd picture, does it update properly on the device?

#

The mode thing is important as it stops the automation missing updates, leave it in and check for another "mode: single" or something that you can delete

#

"unfortunately it still doesn't work" what exactly isn't working?

The automation only runs when the temperature/humidity changes, so it won't update instantly, you might have to wait a little bit until it runs to be sure it isn't working

hoary ore
#

when i move the slider it updates during 1-4 sec. on the screen

it is in mode single. Guess it did it on its own.

Its not working because it doesnt show any difference on the screen. even dont sets the value when i look in z2m (where i did these screenshots)

I'm aware of that. Thats why i placed it from outside to inside the house.

amber panther
#

OK, so then it's not a z2m issue. What happens if you manually change them within home assistant?
Does it update then?

hoary ore
#

yes

#

so you mean for example over the dashboard?

amber panther
#

In the dashboard, or the device page

hoary ore
#

yes it updates on the screen

amber panther
#

OK so it's a problem with the automation

#

Can you have a look at the traces and take a screenshot of what it says?

hoary ore
#

could you explain what you mean with traces.
I'm not sure what to do

#

ah got it

amber panther
#

To right corner of the screen, should show a little flowchart thing

hoary ore
#

you mean that?

amber panther
#

Yeah

#

Can you click on the bell that has the exclamation mark, that's where it's failing

hoary ore
#

Error rendering data template: UndefinedError: 'sensor' is undefined

amber panther
#

Oh doh, you need you put ' around the entity id in states()

#

states('sensor.blah_blah')

#

My bad

hoary ore
#

but it is, isn't it?

amber panther
#

On the green lines

hoary ore
#

like that?

amber panther
#

You want states('sensor.blah_blah'), not states(sensor.blah_blah)

#

Yes

#

And you'll want to change it back to queued at some point

hoary ore
#

what does it "queued and single?
and in queued what is the max:10 for?

amber panther
#

Single means if it's running, it won't run again - this means if temp and humidity update at the same time only one will get updated

#

Queued means that if it tries to run while it's already running, it'll queue it and do it later

hoary ore
#

i see.

Wanted to tell you that its working now.

Then i realized its only working on the temp not the hum.

amber panther
#

Max 10 just means it'll queue a maximum of 10 things

#

That's probably the mode thing, it misses the humidity update

hoary ore
#

working now also.
I dont understand why before it forbit me to type mode: queued
But now it works

#

THANK YOU SO MUCH!!!
Made my day, really

amber panther
#

Grand

#

No worries 🙂

hoary ore
#

do you teach this yaml stuff? 🤣

amber panther
#

Heh, all I did was pull the important bits out of that blueprint and rejig it slightly, nothing clever. It comes with a bit of practice and playing with templates 🙂

hoary ore
#

additinal question:
Do you also know if and where i can set how often the sensor should communicate its value?
For example a frequency?
because now its stuck for like 5min with no changes.
Not in HA or in z2m

amber panther
#

No, generally you can't on those kinds of sensors. It's a battery life thing

hoary ore
#

what could have happened that it worked so well and now the sensor seems to be broken

amber panther
#

What do you mean?

#

Nothing in the automation should affect the sensor, it's only reading it