diff --git a/IT/domotique/homeassistant.md b/IT/domotique/homeassistant.md index 35ee017..24227e1 100644 --- a/IT/domotique/homeassistant.md +++ b/IT/domotique/homeassistant.md @@ -13,4 +13,9 @@ ## event -- cube xiaomi xiaomi_aqara.cube_action \ No newline at end of file +- cube xiaomi xiaomi_aqara.cube_action + +## SQL request + +- get most use entity: + ```SELECT entity_id, COUNT(*) as count FROM hass.states GROUP BY entity_id ORDER BY count DESC LIMIT 20``` \ No newline at end of file