Hi all, I have set up a few SQL - Home Assistant sensors that connects to another MYSQL database on my LAN to pull info, and am running into issues such as “Can’t reconnect until invalid transaction is rolled back” errors and I believe it to be because by default the SQL sensor polls every 30 seconds. Is there a way to change this poll interval for all my sensors or even turn it off altogether and just call the updates myself using the Home Assistant Core Integration: Update entity?
Yes, go to the configuration options in the SQL integration and turn off polling. But you’ll have to manually poll the device using an automation with the homeassistant.update_entity service.
Petro, is there any way to disable polling on all sql sensors en-masse ? I have hundreds of sql sensors, which makes manually clicking each one impractical.
Either I misspoke, or you misunderstood. Spook can disable polling for a single instance of an integration, not an entire integration. So would still be manual for each entry. Which doesn’t make much sense. I went the script road instead. So now its a PY script with database calls. Much more efficient.