I have some entities with state attributes like hvac_mode and current_temperature that I will like to store in InfluxDB when they change, in the same way as the state itself.
Any ideas on how to do that.
I have some entities with state attributes like hvac_mode and current_temperature that I will like to store in InfluxDB when they change, in the same way as the state itself.
Any ideas on how to do that.
Tell us what you have.
AFAIK, attributes are stored in Influxdb as well when using the integration
Hi . Yes it was - i just had to understand where to find it - And now I see it. Thanks
and how did you find the attributes in influx?
funny enough this is the top google result when looking for this.
Can you explain how you were able to find the attributes?
figured it out, so posting here in case it comes in handy to someone else.
to get the “hvac action” attribute from my climate.t6_thermostat entity
This is the influxdb v1 query
SELECT last("hvac_action_str") AS "last_hvac_action_str" FROM "homeassistant"."autogen"."state" WHERE time > :dashboardTime: AND time < :upperDashboardTime: AND "entity_id"='t6_thermostat' GROUP BY time(:interval:) FILL(none)
this is the grafana query on the same influxdb