This code displays the temperature and humidity, but tried different terms to read the pressure with no luck.
sensor.outdoor_temperature_humidity_temperature
sensor.outdoor_temperature_humidity_humidity
Thanks
Chas
This code displays the temperature and humidity, but tried different terms to read the pressure with no luck.
sensor.outdoor_temperature_humidity_temperature
sensor.outdoor_temperature_humidity_humidity
Thanks
Chas
Which sensors are you talking about? My Aqara temp/humidity sensors don’t have barometric pressure.
It depends on which ones you have. There are the square ones and the round ones. One is Mijia the other Aqara. I can never remember which is which haha.
The square one is I believe the one with pressure sensor as well. If you can’t see it you probably have the round ones then I assume
I can see the barometric pressure from the sensors in my Aqara android app, so obviously its there…
The sensors are square…
I assume I just need the correct line of code
I asked Aqara support… answer… “We don’t support homeassistant”, to ask in the forums
Chas
go to the states tab of the developers tools section and in the filter box under “Entity” type in “pressure” (without quotes) and see if it’s listed there.
you should also have a “power” entity for the battery data.
The only “pressure” I found was in the weather forecast
weather.home_assistant_hourly
I don’t know what you mean by “power” and why it matters ?
Thanks for the reply
Chas
as in the battery of the device is what he meant
how are you integrating these into HA? If you are seeing them on the android APP then you are not directly integrating them with a Zigbee stick but indirectly through the gateway then. Perhaps pressure isn’t supported by the integration.
Power ok
I’m running a Virtual Box on My Windows 10 Desktop
Also have integrated into homeassistant the Aqara Hub Aqara Window/Door Contacts, Aqara Plug and Aqara Motion Sensors (and more… SONOFF Plug, WYZE Contact and Motion Sensors)
Thanks
Chas
I have 3 square aqara temp/humidity/pressure sensors, this is the entities I see in HA from them:
Note that pressure works I just don’t care to track it so I disabled the entity. They also report voltage as an attribute of the entities if you care, not sure what that info could be used for.
As @drthanwho said though, I don’t use the app or even own an aqara hub. I have a zigbee stick and integrated them into HA using zigbee2mqtt
OK Great…
So it is possible.
I’ll try more lines of code in the entity based on your screenshot.
Chas
For me it sounds like that this won’t help and your only way to get pressure in HA is to usr a ZigBee stick instead of the Xiaomi hub.
OK,
You’re probably right.
It was just something to play around with. Not essential.
I do have a ConBee II plug I’ve never used.
If I run of things to do I can try it.
Thanks
Chas
I’m not sure what this means. But to echo what others are telling you on this thread, this isn’t about the device, its about how you are choosing to talk to the device. You and I are both using the same device so our devices have the same raw capabilities.
But you are choosing to communicate with the device via a different integration. You have set up an Aqara hub, told your device to talk to that and told HA to talk to that hub by way of the xiaomi aqara integration. This means regardless of what the device actually does HA can only see what the hub actually exposes to it (and what the integration has implemented of what the hub exposes).
The relevant code from that integration is right here. I’m like 99% sure you aren’t going to be able to get to the pressure readings in HA because it only creates pressure entities when the device model is weather
or weather.v1
. If the device model is sensor_ht
(which sounds a lot more like the Temp/Humidity sensor device) then it just makes temp/humidity entities. I don’t have a clue why this is. Perhaps the hub doesn’t expose it, perhaps it does and HA just hasn’t incorporated it yet. You’ll have to submit a feature request asking for it and see what the code owner of the integration says. Or you can dig in yourself and create a PR to add that capability if its there and just unexposed.
Alternatively you can remove the hub and buy a zigbee stick and have the device talk directly to HA. There are a few options for this like Zigbee2MQTT, Deconz or ZHA. I use Zigbee2MQTT so here’s what it says about the device. Each of those other integrations will have their own guide on it if they support it.
Fwiw that’s exactly the stick I use with Zigbee2MQTT so if you go down that route I can confirm that definitely works and you’ll see pressure readings
Ok,
Well to confuse the issue, I also have an Echo Generation 4 (which has Zigbee capabilities) .
My SONOFF Plug was not recognized by the Aqara Hub, so I assume it’s available to me in homeassistant because of the Echo dot (gen 4).
I’m wondering if there a way to have the Echo Dot pair with the Aqara Temperature / Humidity sensor instead of the Aqara Hub and then maybe see the Barometric Pressure?
Chas
What would expose the device to HA in this setup? Does HA have an integration option for echo generation 4 where it can see and control the devices connected to the echo dot via zigbee? Or would the echo dot be exposing those devices to the aqara hub and then HA would still talk to the aqara hub?
If its the latter then I don’t really think anything will change unless that causes the model being reported by the aqara hub to switch from sensor_ht
to weather
or weather.v1
. If it’s the first one then that could work, all depends on what the integration exposes to HA. I’m not very familiar with the Alexa and Echo’s since I use google assistant and google homes.
Btw when you say sonoff plugs do you mean these or something in this list? If so looks like Z2M would cover all your stuff. I also tracked down the list of supported devices for zha and deconz and I see plenty of sonoff and aqara devices so I think you could take your pick, whichever addon/integration makes you feel more comfortable.
Something else to think about, how is your Aqara hub talking to the Echo dot? You said the generation 4 dot has zigbee capabilities, does it report state of the devices talking to it over zigbee or does it only let devices talk to it via zigbee? I don’t see the Echo Dot 4 on any of these lists so I’m suspicious that your aqara hub isn’t actually talking to your echo dot. Instead your echo dot may be reporting everything to an AWS cloud service and your aqara talking to that service to find out the state of your sonoff switch.
Something to think about. Before leaning all in to the echo dot here I’d recommend looking into that. The Aqara integration says it uses local push which is great but Google and Amazon are notorious for doing everything through cloud services instead of local access. You might be sacrificing privacy and performance without realizing it running everything through the echo.
The SONOFF Plug Model is S31.
I don’t know much about the Echo Hub…
I rely on Alexa routines to do all the work.
I’m coming to homeassistant from WYZE, because my of WYZE Contact sensor issues.
I plan to eventually replace all my WYZE Brand Contact and Motion Sensors with Zigbee devices.
I started with the Aqara hub kit to experiment.
Since all went well, I bought more Aqara Contact and Motion Sensors.
I couldn’t find inexpensive Aqara plugs, so I went with the SONOFF.
All are working fine in homeassistant.
I was pleasantly surprised when I discovered someone had written a WYZE integration.
Installed it, and it is working great.
I can see and control all my WYZE Plugs, Bulbs and Sensors in homeassistant.
Checking the ConBee II compatibility list… it’s very impressive.
It includes the Aqara (including the Temp/Humidity Sensor) and SONOFF devices.
I’m going to research how easy it would be to remove the Aqara Hub, and install the ConBee Stick instead.
Hoping I don’t have to start from scratch.
Interesting how a simple question about the barometric pressure might lead to a complete overhaul of my system !
Thanks
Chas
Given that you have a Conbee II I would definitely recommend that route. I also have the same stick but use the deconz addon instead of Zigbee2MQTT. But that is just an individual preference.
I certainly prefer the direct router of my devices talking directly to HA (plus knowing it’s 100% local). I know the integration for the gateway uses local push to talk to it but you still have the gateway itself talk to the xiaomi cloud.
Also I have several temp/hum sensors (not the ones with pressure) and sonoff temp/hum sensors which are connected through the Conbee II stick and they are working perfectly. I never even bought the gateway. This way you can have all your Zigbee devices directly communicating with your HA rather than trying to expose them some through the Aqara gateway others through Alexa etc.
Of course I should mention that if you migrate the devices to your Conbee stick it means the app you are currently using will no longer work as the devices have to be paired with the Conbee II and not the gateway.
Great…
I like what I’m hearing more and more.
I’m going to read about it more this afternoon.
Any ConBee II installation links you find helpful would be appreciated.
Thanks Thanasis !