Closed pdwonline closed 4 months ago
I used this to add a simple SQL statement, but get 'unknown' as a result. I can see that something goes wrong, because the attribute last_update does not appear. Also I wonder how I could get this thing to update every minute..
`` db_sql: friendly_name: "db sql query" query: 'SELECT state_id FROM hass_db.states LIMIT 1;' column: 'state_id' attributes: last_update: '{{ now() }}' tracked_entity_id:
``
Likely the same cause as #96.
I used this to add a simple SQL statement, but get 'unknown' as a result. I can see that something goes wrong, because the attribute last_update does not appear. Also I wonder how I could get this thing to update every minute..
`` db_sql: friendly_name: "db sql query" query: 'SELECT state_id FROM hass_db.states LIMIT 1;' column: 'state_id' attributes: last_update: '{{ now() }}' tracked_entity_id:
``