Hi @Danielhiversen
Today I tried this again. In the systemd log I can see this error. Maybe there is something wrong with the last line?
Nov 25 02:44:16 raspberrypi hass[5043]: File "/home/hass/.homeassistant/custom_components/restore_states.py", line 98
Nov 25 02:44:16 raspberrypi hass[5043]: return True
Nov 25 02:44:16 raspberrypi hass[5043]: ^
Nov 25 02:44:16 raspberrypi hass[5043]: SyntaxError: 'return' outside function
Nov 25 02:44:17 raspberrypi systemd[1]: home-assistant.service: main process exited, code=exited, status=1/FAILURE
Nov 25 02:44:17 raspberrypi systemd[1]: Unit home-assistant.service entered failed state.
Ok found the error. 4 missing blanks^^ dont know what happened, I copied the hole file 10 times:-)
The component is now loading correct but my pilight stats are not restored 
I found this in the log. Hope this helps.
Nov 25 04:31:03 raspberrypi hass[5236]: INFO:homeassistant.bootstrap:Setting up restore_states
Nov 25 04:31:03 raspberrypi hass[5236]: INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=restore_states>
Nov 25 04:31:04 raspberrypi hass[5236]: INFO:homeassistant.bootstrap:Setting up group
Nov 25 04:31:04 raspberrypi hass[5236]: INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=group.default_view, old_state=None, new_state=<state group.default_view=off; entity_id=('group.wohnzimmer', 'group.jalousien', 'group.jalousie_hwr', 'sun.sun', 'sensor.time', 'camera.kamera_einfahrt', 'scene.aktiviere_alarm', 'scene.deaktiviere_alarm', 'sensor.mac_mini_tv', 'switch.brunnenpumpe', 'switch.drucker', 'switch.lichterkette', 'switch.fibaro_system_fgs212_switch_3kw_switch_3_0'), order=3, hidden=True, friendly_name=default_view, view=True @ 2016-11-25T05:31:04.011279+01:00>>
Nov 25 04:31:04 raspberrypi hass[5236]: INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=group.media_player, old_state=None, new_state=<state group.media_player=unknown; entity_id=('media_player.rasplex', 'media_player.mobil', 'media_player.wohnzimmer'), order=4, hidden=True, friendly_name=Mediaplayer, view=True @ 2016-11-25T05:31:04.015258+01:00>>
Nov 25 04:31:04 raspberrypi hass[5236]: INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=group.wohnzimmer_view, old_state=None, new_state=<state group.wohnzimmer_view=unknown; entity_id=('group.wohnzimmer',), order=5, hidden=True, friendly_name=Wohnzimmer, view=True @ 2016-11-25T05:31:04.019102+01:00>>