Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107756

Sql sensor in configuration.yaml not working

$
0
0

Hi There,

Inside my configuration.yaml I have…

sensor:
    - platform: sql
      name: tester counter
      db_url: !secret maria_URL
      query: SELECT COUNT(*) AS state FROM states WHERE metadata_id = 1198
      column: "state"
      unit_of_measurement: "rows"

I restart HA 2025.4.1 nothing shows up in the developer states section under the name tester
I searched with phpMyAdmin also nothing
There is nothing mentioned in the logs
The maria_URL is used for the recorder and that works.

I tried some variations '," and no quotes helas
I tried to get info from here

can somebody throw me a bone?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>