#Integration of sensor version

1 messages · Page 1 of 1 (latest)

ancient arch
#

Hello, I have a little problem to integrate the version of home assistant (and incidentally home_assistant_db_v2 but I think it's the same problem) see first screen

I tried to integrate the sensor separately (see 2nd screen) while basically it is in a file where there are all the other sensors, which work (see 3rd screen)

I read that it could be because of the access to the directory of these files so I tried to add to my config:

homeassistant:
  whitelist_external_dirs:
    
/config

PS: I'm in a docker container

Well thank you in advance 🙂

slender fossil
#

Please don't share images of text, share text as text

ancient arch
#

sorry i cant post screen

wind coyoteBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

ancient arch
#

okay

#

2 min

#

I am under docker, I have:

homeassistant:
  whitelist_external_dirs:
    - /config


sensor:
  - platform: version

in my config file,
but impossible to get sensor.version
in home assistant

wind coyoteBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

slender fossil
#

The version integration is set up in the UI, not YAML

wind coyoteBOT
ancient arch
#

I look at the page

#

Thats a new feature ? Because on Github I've seen people use :

  ###  SYSTEME  ###   
sensor.version:
  friendly_name: Version installée
  icon: mdi:home-assistant  
sensor.processor_use:
  friendly_name: CPU Load
  icon: mdi:chip
sensor.memory_use_percent:
  friendly_name: Memory Use
sensor.disk_free:
  friendly_name: Disk Free
sensor.memory_free:
  friendly_name: Memory Free 
sensor.cpu_temp:
  friendly_name: Température CPU
sensor.since_last_boot_template:
  friendly_name: Temps d'activité
  icon: mdi:av-timer
sensor.disk_use_percent: 
  friendly_name: Disque 
  icon: mdi:chart-pie 
sensor.home_assistant_v2_db:
  friendly_name: Database
  icon: mdi:database
slender fossil
#

That's from customize.yaml

#

That's not for configuring anything

ancient arch
#

yes thats in this file
and I have

homeassistant :
  name: Home
  whitelist_external_dirs:
    /config
  customize: !include_dir_merge_named customize/

in my configuration.yaml
but it also doesn't work

slender fossil
#

None of that sets up the version integration

#

Have you actually set up the version integration?

ancient arch
#

I thought adding it in customize.yaml
allowed to read the .HA_VERSION file
But it doesn't seem to work anymore

#

I wanted to make it as simple as possible (without UI integration)

#

I don't know if its more "clean" or no

#

I guess it's the same for home-assistant_v2.db
with integration with "File Size"

slender fossil
#

Customize is for changing the name or icon (or device class) of an existing entity. It is not for setting anything up.

If you want to configure an integration you have to do that.