HAOS troubles

Hi
Lately i’m having issues with my HA OS running.
Im’ running on a pi 4 and storage is on an usb stick, not an sd card
I ran HA OS for more than a year without troubles.

I think 2 releases ago it started that i need to delete the database of HA in order to work cause HA didnt restart
I have to manually unplug it then , and it gets back up

However its getting worse
Every update now i do from HA, i cant reboot HA or the systems is unreachable
If i unplug, its back up again
But as soon as i hit restart, it fails
Any idea how i troubleshoot this?
Log only says recorded ended unfinished session
Offcourse cause i unplugged it
Why doesnt it reboot?
NO errors in log

Did you look at the system log in the supervisor menu → system ?

Yes not sure if its related, the time looks strange
21-06-22 18:12:49 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /host/info

nobody???
Its annoying me a lot.
With every restart of the system, its unreachable
When i unplug and boot, theres no problem

I might start over from a backup but im afraid the issue will still be there
Why doesnt it restart normally, but when booting it does?

Ok after removing garmin connect and eufy integration, and moving to ssd, everything works normal again
phew

However, i’m seeing a bunch of errors, is anyone able to help me fix those errors please?

2021-07-06 13:35:23 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548122738800] Error handling message: Unknown error
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py”, line 100, in async_handle
handler(self.hass, self, schema(msg))
File “/config/custom_components/browser_mod/connection.py”, line 44, in handle_update
devices[deviceID].update(msg.get(“data”, None))
File “/config/custom_components/browser_mod/connection.py”, line 90, in update
self.sensor = self.sensor or create_entity(
File “/config/custom_components/browser_mod/helpers.py”, line 49, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: ‘sensor’
2021-07-06 13:35:24 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘None’ has no attribute ‘state’ when rendering ‘{{ states.sensor.date_short.state }}’
2021-07-06 13:35:24 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘None’ has no attribute ‘state’ when rendering ‘{{ states.sensor.temperature.state }}°C’
2021-07-06 13:35:24 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘None’ has no attribute ‘state’ when rendering ‘{{ states.sensor.date_short.state }}’
2021-07-06 13:35:24 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘None’ has no attribute ‘state’ when rendering ‘{{ states.sensor.temperature.state }}°C’
2021-07-06 13:35:25 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘None’ has no attribute ‘state’ when rendering ‘{{ states.sensor.date_short.state }}’
2021-07-06 13:35:25 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘None’ has no attribute ‘state’ when rendering ‘{{ states.sensor.temperature.state }}°C’
2021-07-06 13:35:25 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘None’ has no attribute ‘state’ when rendering ‘{{ states.sensor.date_short.state }}’
2021-07-06 13:35:25 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: ‘None’ has no attribute ‘state’ when rendering ‘{{ states.sensor.temperature.state }}°C’
2021-07-06 13:35:28 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548122738800] Error handling message: Unknown error
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py”, line 100, in async_handle
handler(self.hass, self, schema(msg))
File “/config/custom_components/browser_mod/connection.py”, line 44, in handle_update
devices[deviceID].update(msg.get(“data”, None))
File “/config/custom_components/browser_mod/connection.py”, line 90, in update
self.sensor = self.sensor or create_entity(
File “/config/custom_components/browser_mod/helpers.py”, line 49, in create_entity
adder = hass.data[DOMAIN][DATA_ADDERS][platform]
KeyError: ‘sensor’

‘{{ states.sensor.temperature.state }}°C’

i’m not sure but i think you need to remove .state from that

‘{{ states.sensor.temperature }}°C’
states('sensor.temperature')
1 Like

Thx some errors are gona now,
Any idea for the other?

  • Template variable warning: ‘dict object’ has no attribute ‘on’ when rendering ‘{{ value_json.on }}’
  • Template variable warning: ‘dict object’ has no attribute ‘parityCheckRunning’ when rendering ‘{{ value_json.parityCheckRunning }}’
  • Template variable warning: ‘dict object’ has no attribute ‘moverRunning’ when rendering ‘{{ value_json.moverRunning }}’
  • Template variable warning: ‘dict object’ has no attribute ‘arrayStatus’ when rendering ‘{{ value_json.arrayStatus }}’
  • Template variable warning: ‘dict object’ has no attribute ‘isScreenOn’ when rendering '{{ value_json.isScreenOn }}

well show us the config of this device
some screenshots from developers tab of that device

I would try for example for moverRunning like this?


{{ state_attr('value_json', 'moverRunning') }}

From states tab please that i can see attributes

euh that is from states no?

first show info from configuration.yaml how did you set it up the sensor or whatever it is.
Then make a screenshot of the states in developer tab states
Or show me something/anything more

where is the value_json setted up

Yeah i’m looking for that but cant find it
The mover and parity switch comes from mqtt device

But i dont see any value_sjon

For the error isscreenon

i have this:

cd download forum

{{ state_attr(‘table_living’, ‘isscreenon’) }}

Where do i put that?
Here?

sensor:
- platform: rest
  name: Tablet Living
  json_attributes:
    - isScreenOn
    - batteryLevel
    - kioskMode
    - screenBrightness
    - motionDetectorState
    - maintenanceMode
    - appFreeMemory
    - appUsedMemory
    - totalFreeMemory
    - totalUsedMemory
    - hostname4
    - ip4
    - mac
    - locationLatitude
    - locationLongitude
    - locationAltitude
    - startUrl
    - currentPage
  resource: !secret tablet_info
  value_template: '{{ value_json.isScreenOn }}'
  scan_interval: 10

- platform: rest
  name: Tablet Living Settings
  json_attributes:
    - timeToScreenOffV2
    - screenBrightness
    - motionSensitivity
    - motionDection
    - motionDetectionAcoustic
    - motionSensitivityAcoustic
    - screenOffInDarkness
    - darknessLevel
  resource: !secret tablet_settings
  value_template: '{{ value_json.motionSensitivity }}'
  scan_interval: 10

And what about the mover one?v and parity?

Check this, this serms to work

Step by step. Lets confirm that tablet living is working. then proceed