MARIADB: Automatically delete the data of a single sensor ...
community.home-assistant.io › t › mariadbNov 08, 2020 · MARIADB: Automatically delete the data of a single sensor - Configuration - Home Assistant Community. Hi, through phpadmin, I can connect to the MariaDB database and delete the data of a sensor with this command: DELETE FROM homeassistant.states WHERE ʻentity_id` LIKE ‘% sensor.cputemperature%’ LIMIT 250 Would it be po… Hi, through phpadmin, I can connect to the MariaDB database and delete the data of a sensor with this command: DELETE FROM homeassistant.states WHERE ʻentity_id ...
Recorder - Home Assistant
www.home-assistant.io › integrations › recorderDuring the startup, Home Assistant will look for the database specified in the db_url. If the database doesn’t exist, it will not automatically create it for you. Once Home Assistant finds the database, with the right level of permissions, all the required tables will then be automatically created and the data will be populated accordingly.