https://github.com/riemers/home-assistant-config
Just my home assistant configuration, like many others, but this is mine..
https://github.com/riemers/home-assistant-config
hass hassbian homeassistant homeassistant-config
Last synced: 3 months ago
JSON representation
Just my home assistant configuration, like many others, but this is mine..
- Host: GitHub
- URL: https://github.com/riemers/home-assistant-config
- Owner: riemers
- Created: 2017-07-23T20:45:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-04T19:46:34.000Z (about 4 years ago)
- Last Synced: 2025-03-18T06:49:03.487Z (3 months ago)
- Topics: hass, hassbian, homeassistant, homeassistant-config
- Language: JavaScript
- Homepage:
- Size: 968 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Just my home assistant configuration, like many others, but this is mine..
I have placed readme's on the sections. So hop over there to see if its of value for you too!
* [Automations](https://github.com/riemers/home-assistant-config/tree/master/extraconfig/automation)
* [Packages](https://github.com/riemers/home-assistant-config/tree/master/extraconfig/packages)***
How to see all ip's from all containers (needed it sometimes)
```bash
docker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
```
Make a secrets file for travis, will replace _url screts with dummy urls.
```bash
for i in `cut -f1 -d":" secrets.yaml`;do;echo $i: $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1);done | sed 's/_url:.*/_url: https:\/\/www.some.url.com/' > travis_secrets.yaml
```
Recorder purging by hand if the db gets too big:
In dev page do a `recorder.purge` with:
```
{
"keep_days":"1",
"repack":"true"
}
```
Then wait for some time, last time it was 3.5gb for me. After this it was 2.5gb (still too much) but after a restart it was down to 300mb!```
SELECT entity_id, SUM(LENGTH(attributes)) size, COUNT(*) count, SUM(LENGTH(attributes))/COUNT(*) avg
FROM states
GROUP BY entity_id
ORDER BY size DESC;
```
If you run this on the database you can see which entity id's is spamming the logs.