After running
./sqlite3 ../home-assistant_v2.db ".recover" | ./sqlite3 ../fixed.db
I’ve got the data recovered in lost and found
, mayb someone can help to find the right collums:
rootpgno,pgno,nfield,id,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10
516,17,8,341447,,state_changed,{"entity_id": "sensor.fritz_netmonitor", "old_state": {"entity_id": "sensor.fritz_netmonitor", "state": "online", "attributes": {"is_linked": true, "is_connected": true, "wan_access_type": "DSL", "external_ip": "84.130.77.36", "uptime": 53278, "bytes_sent": 558903106, "bytes_received": 2938360443, "transmission_rate_up": 312, "transmission_rate_down": 490, "max_byte_rate_up": 139500.0, "max_byte_rate_down": 1953000.0, "friendly_name": "fritz_netmonitor", "icon": "mdi:web"}, "last_changed": "2020-01-22T01:53:06.304451+00:00", "last_updated": "2020-01-25T16:37:04.274810+00:00", "context": {"id": "41836d280b0d4a72bb45143c55a99b33", "parent_id": null, "user_id": null}}, "new_state": {"entity_id": "sensor.fritz_netmonitor", "state": "online", "attributes": {"is_linked": true, "is_connected": true, "wan_access_type": "DSL", "external_ip": "84.130.77.36", "uptime": 53309, "bytes_sent": 558940715, "bytes_received": 2938487099, "transmission_rate_up": 1212, "transmission_rate_down": 4083, "max_byte_rate_up": 139500.0, "max_byte_rate_down": 1953000.0, "friendly_name": "fritz_netmonitor", "icon": "mdi:web"}, "last_changed": "2020-01-22T01:53:06.304451+00:00", "last_updated": "2020-01-25T16:37:35.287940+00:00", "context": {"id": "8a35782cb7ee4db98e953e15436a4a00", "parent_id": null, "user_id": null}}},LOCAL,2020-01-25 16:37:35.288113,2020-01-25 16:37:35.313568,8a35782cb7ee4db98e953e15436a4a00,,,,