Home Assistant Integration using MakerAPI

I have loaded Home Assistant (HA) onto an old Intel PC with a view to better visualising temperature and humidity data collected from many Zigbee temperature/humidity sensors around the house. All has gone well and the integration works well with everything I want appearing in Home Assistant.
One feature of HA is to easily provide statistics, such as maximum and minimum, on things like temperature.
Does anyone know how I can send these generated values back to HE, I have tried setting up virtual temperature sensors but can't fathom how to return the values created in HA.
Any advice welcome.

Have you looked at InfluxDB and Grafana with HE.

What is HE doing for you in this setup?

I just want to make sure i am reading that right. You are asking how to get the Min/Max values in HE right? Not that you want the device values in HE.

1 Like

The only thing that springs to mind is to create variables and connectors on Hubitat and share the connectors with HA and let HA put the values in the variables.

Why send it to HA to have it calculate something that could be done directly in HE?
Context of what you are trying to do would be most helpful.

I can think of 3 options

  • Create a min/max hub variable for every sensor, then you need a RM rule for each sensor that triggers on every temp change to populate the variables with the min/max values
  • Create a custom virtual temp driver with min/max values, create a virtual device for every real device, use RM again with a similar rule but have it update the virtual sensor.
  • Create a custom app where you can select temp sensors and it will track the min/max values in the app and display them in a table.

As for sending it from HA back to HE. Do you know if HA even stores the values anywhere or does it just show them on the fly when you view the device history?

If those sensors use a custom driver, woudn't be even easier to modify it to make it store these values as attributes?

1 Like

Yes good point, that would be very easy if there is a custom driver that already works for the sensors. It could be easily modified to store the min/max in additional attributes. Would only be a few lines of code to add to the driver.

Yes, I have looked at InfluxDB and Grafana but was seduced by the many integrations that HA offers, e.g. Drayton Wiser heating controls and Givenergy with graphs as standard.

I am still sticking with HE for Zigbee network and automations.

I have some variables but lack the knowledge, at present , to update them, I will ask in the HA forums for some help.

I have done the max/min bit in RM but it is custom and perhaps loading on the system.'

Creating custom drivers is beyond my skill set.

In HA the Statistics integration creates and updates a new entity which are then available to graph etc.

I thank everybody for the feedback.

The general context of what is driving me to HA is the need to be able to analyse temperature data in advance of having a heat pump installed. I want to know how well the heat pump is doing in maintaining an even temperature in the house and spotting any issues. HA will also have an integration to the heat pump controls so that I can see even more data.

Unlikely.

Ok so why are you trying to get the data back to HE?

1 Like

I suspect the expectation is that the data will be needed in HE for automations though I am honestly not sure how.

I would still look at getting the data from HA and putting it in Influx and then using Grafana for the graphing. It is probably a better tool for that long term for data analysis since that is what it is created to do. I am not taking anything away from HA or HE with that statement as they aren't really designed as graphing/visualization engines. I know HA can do much of it though.

Just one example of a HVAC dashboard that can be used in the way like you are asking about. That was created by @jtp10181.

Also keep in mind that having balanced temps throughout a house is just as much about how well the HVAC ductwork is designed as it is about how much it is circulating as well. Poor duct work can make a huge impact. Also you not all sensors are created equal so some may swing wildly while others are more stable. You may need to trim down the sensors used for the analysis. Lastly remember humidity effects comfort levels allot so keep that in mind. A room that tends to get humid may have a much lower comfort from one that regulates well.

I use the Sensors Group+ app available in HPM to calculate min, max, and averages that are used in Rules and it could not be any easier to setup all in Hubitat. You can still use HA for the analysis if that is working for you.

I wasn't aware of that app, thanks for pointing it out, I will investigate.

Just to finalise this question. After much YouTube watching and reading I finally game to a satisfactory solution, which is use the Hubitat integration send command function to get Hubitat to change the variable.

Pardon my Yaml but this the HA Automation that sorted it for me,

1 Like