[Z2M] Aqara TRV E1 link external temperature sensor

Depends, do those ones (and there’s dozens of models) support an external temperature sensor? If so is how to use that documented anywhere?

i have the problem that the external_temperature_input is unavailable in HA. I have this for all my 3 TRVs.

Any Idea?

Hello,
Thanks for this blueprint. I noticed that the battery live is shorter since I am using it compared to internal sensor. Therefore, I would suggest not to sync each time the external temp change, but only if the difference between the previous temperature and the one from the external sensor is higher that a value (which can be an option)

1 Like

Yep. I noticed the TRVs in my bedroom that are synced with temperature sensor on wifi air purifier have had pretty bad battery life, due to constant updates, because the air purifier measures temperature with 2 decimal places accuracy and updates its state rapidly.

Fixed by adding this condition to the blueprint.

{{ (trigger.to_state.state | float - state_attr('climate.' + device_attr(aqara_trv_device, 'name'), 'current_temperature')) | abs >= 0.066 }}

It should also fix issue with constant updates, when the temperature sensor state “oscillates” around x.x5 values.

Sorry, I’m not an expert home assistant user, could you give some more info on how to do this?

Thanks.

Hi,

I’m sometimes getting the error below. Could you help please?

z2m: Publish ‘set’ ‘sensor’ to ‘Office radiator valve’ failed: ‘Error: ZCL command 0x54ef4410006fd472/1 manuSpecificLumi.write({“65522”:{“value”:[170,113,52,68,19,90,2,65,49,102,160,255,0,61,5,84,239,68,16,0,111,212,114,0,21,141,0,1,157,27,152,8,0,7,253,22,10,2,10,201,232,177,184,212,218,207,223,192,235,0,0,0,0,0,1,61,4,101],“type”:65}}, {“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:true,“direction”:0,“srcEndpoint”:null,“reservedBits”:0,“manufacturerCode”:4447,“transactionSequenceNumber”:null,“writeUndiv”:false}) failed (SRSP - AF - dataRequest after 6000ms)’

Change in Home Assistant Core 2024.8.0

Line 85
„playload_template“ change only in „playload“

2 Likes

Thank you for the fix - I updated the blueprint

Hello,
First a big thank you for this awesome blueprint.
I‘ve installed it yesterday and everything seemed to go on fine.
But today it stopped working, throwing the following errors:

10000ms)))’
[2024-09-14 18:14:58] error: z2m: Publish ‘set’ ‘external_temperature_input’ to ‘Ventil Schlafzimmer’ failed: ‘Error: ZCL command 0x54ef4410009731fd/1 manuSpecificLumi.write({“65522”:{“value”:[170,113,19,68,18,124,5,65,16,0,21,141,0,1,157,27,152,0,1,0,85,69,2,160,0],“type”:65}}, {“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:true,“direction”:0,“reservedBits”:0,“manufacturerCode”:4447,“writeUndiv”:false}) failed (ZCL command 0x54ef4410009731fd/1 manuSpecificLumi.write({“65522”:{“value”:[170,113,19,68,18,124,5,65,16,0,21,141,0,1,157,27,152,0,1,0,85,69,2,160,0],“type”:65}}, {“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:true,“direction”:0,“reservedBits”:0,“manufacturerCode”:4447,“writeUndiv”:false}) failed (ZCL command 0x54ef4410009731fd/1 manuSpecificLumi.write({“65522”:{“value”:[170,113,19,68,18,124,5,65,16,0,21,141,0,1,157,27,152,0,1,0,85,69,2,160,0],“type”:65}}, {“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:true,“direction”:0,“reservedBits”:0,“manufacturerCode”:4447,“writeUndiv”:false}) failed (Timeout - 46277 - 1 - 221 - 64704 - 4 after 10000ms)))’

Any hints for me?

Best regards, Thorsten

Hello,

This blueprint was working like a dream with my Aqara E1 radiator valve to my SONOFF Temperature sensor. But since I updated the valves firmware to 0.0.0_1030 through ZigBee2mqtt OTA, the valve no longer uses the external sensors anymore even with it being set to external, I’ve rebooted HA just to be sure too.

I was just wondering if this is a known issue and if so, does anybody know how do I go about getting this resolved or if there’s any future fixes?

It doesn’t look like I downgrade the firmware either.

Thank you.

EDIT: My work around was to use better thermostat. This is still an issue people should be aware of if they run into it.

1 Like

I recently had to update the TRV’s Input sensor name to external_temperature_input. I did update all my devices recently so I think something must have changed in the latest firmware of the Aqara E1.

Hi guys.
I hope someone can help me.
perfect Blueprint, but I think its nor working for me.
the temperature is correct on the thermostat on external, but I always get the message: z2m: Publish ‘set’ ‘external_temperature_input’ to ‘Ankleidezimmer Thermostat’ failed: ‘Error: Value is not a number, got string ()’

I tried Ankleidezimmer_thermostat also, but the error Message is the same and Zigbee kills the whole net to work correctly. Had to disable it. I tried with manual payload and get the message: z2m: Publish ‘get’ ‘external_temperature_input’ to ‘Hobbyraum Thermostat’ failed: ‘Error: Value: ‘external_temperature_input’ not found in: [system_mode, preset, window_detection, valve_detection, child_lock, away_preset_temperature, calibrated, sensor, schedule, schedule_settings]’
have the SMLIGHT z06-M (working perfect so far) latest firmware from the thermostat (SRTS-A01) and Zigbee. Only Zigbee firmware is: 20241127.
Anyone able to help?
thx
Matthias

Maybe related to CharmedToast’s post:

This bit of the blueprint

aqara_trv_number_entity: >-
{% set device_entities = device_entities(aqara_trv_device) %}
{{ expand(states['number'])
| selectattr('entity_id','in', device_entities)
| selectattr('entity_id', 'contains', external_temperature_input_name)
| map(attribute='entity_id')
| first
}}

expects my device to have an entity like number.*external*

In the Zigbee2MQTT UI, I can see that my TRV exposes an external temperature input:

But if I go to the device’s page in Home Assistant, I can’t see any entities for the external temperature input.

How can I make that entity accessible?