skank
June 22, 2021, 5:42pm
1
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
browetd
(Browet Didier)
June 22, 2021, 5:53pm
2
Did you look at the system log in the supervisor menu → system ?
skank
June 22, 2021, 6:20pm
3
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
skank
July 4, 2021, 9:23am
4
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?
skank
July 6, 2021, 11:39am
5
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’
ukro
July 6, 2021, 1:02pm
6
‘{{ 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
skank
July 6, 2021, 2:25pm
7
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 }}
ukro
July 6, 2021, 2:27pm
8
well show us the config of this device
some screenshots from developers tab of that device
ukro
July 6, 2021, 2:29pm
9
I would try for example for moverRunning like this?
{{ state_attr('value_json', 'moverRunning') }}
ukro
July 6, 2021, 2:35pm
11
From states tab please that i can see attributes
skank
July 6, 2021, 2:36pm
12
euh that is from states no?
ukro
July 6, 2021, 2:37pm
13
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
ukro
July 6, 2021, 2:37pm
14
where is the value_json setted up
skank
July 6, 2021, 3:03pm
15
skank:
value_json
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
ukro
July 6, 2021, 3:05pm
16
{{ state_attr(‘table_living’, ‘isscreenon’) }}
skank
July 6, 2021, 3:08pm
17
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?
ukro
July 6, 2021, 4:36pm
18
Check this, this serms to work
great!
It seems to work.
- platform: rest
resource: https://fahrplan.search.ch/api/route.json?from=Einsiedeln&to=Z%C3%BCrich,+F%C3%B6rrlibuckstr.+60
name: blabla
json_attributes:
- connections
value_template: '{{ value_json.connections[0].duration }}'
scan_interval: 60
- platform: template
sensors:
connections_departure:
value_template: >
{{ state_attr('sensor.blabla', 'connections')
[0]['departure'] }}
connect…
ukro
July 6, 2021, 6:38pm
19
Step by step. Lets confirm that tablet living is working. then proceed