Hello i'm just starting out and i'm a little completely lost need help thank you

Invalid config for [http]: [sensor] is an invalid option for [http]. Check: http->http->sensor. (See /config/configuration.yaml, line 21).

17:44:13 – (ERREUR) Home Assistant Supervisor

Unhandled exception

17:34:11 – (ERREUR) /usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py - message survenu pour la première fois à 4:17:07 et apparu 16 fois.

The ‘base_url’ option near /config/configuration.yaml:21 is deprecated, please remove it from your configuration

16:54:42 – (ATTENTION) HTTP - message survenu pour la première fois à 8:35:54 et apparu 46 fois.

Error reporting state - 5: Requested entity was not found.

7:18:14 – (ATTENTION) Home Assistant Cloud - message survenu pour la première fois à 4:24:10 et apparu 16 fois.

Failed to to call /network/interface/wlan0/update -

4:03:02 – (ERREUR) Home Assistant Supervisor

/network/interface/wlan0/update return code 500

4:03:02 – (ERREUR) Home Assistant Supervisor

Waiting for authorization…

3:52:10 – (ATTENTION) /usr/local/lib/python3.8/site-packages/samsungctl/remote_legacy.py

Ended unfinished session (id=3 from 2021-04-27 00:49:53.828441)

3:33:40 – (ATTENTION) Recorder

Validation de la configuration

Valider votre configuration si vous avez récemment apporté des modifications à votre configuration et que vous souhaitez vous assurer que celle-ci est entièrement valide

Configuration invalideVÉRIFIER LA CONFIGURATION

Invalid config for [http]: [sensor] is an invalid option for [http]. Check: http->http->sensor. (See /config/configuration.yaml, line 21).

Please post your configuration.yaml using the formatter </>


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml



switch:
  - platform: switchbot
    mac: FA:4D:8B:D1:89:3F
    
    
http:  
  ssl_certificate: /ssl/fullchain1.pem
  ssl_key: /ssl/privkey1.pem
 

  sensor:
  - platform: command_line
    name: CPU Temperature
    command: "cat /sys/class/thermal/thermal_zone0/temp"
    # If errors occur, make sure configuration file is encoded as UTF-8
    unit_of_measurement: "°C"
    value_template: "{{ value | multiply(0.001) | round(1) }}"
    
    sensor:
  - platform: command_line
    name: badlogin
    command: "grep -c 'Login attempt' /home/hass/.homeassistant/home-assistant.log"

Your first sensor: line should be in the first column (fully left); and you should remove the second sensor: line.

1 Like

It‘s a little bit to much about sensor. Use only once sensor and platform: xxx in the same file. Example:


sensor:
  - platform: template
    sensors:

      date: 
        friendly_name: Datum
        value_template: "{{ bla }}"
    
      lokalzeit:
        friendly_name: Lokalzeit
        value_template: "{{ bla }}"
       
#
      nextsunrise:
         friendly_name: Sonnenaufgang 
          ...
          ...

1 Like

thank you for the configuration it’s all good

I‘m sorry! Still commented while you already posted.

1 Like

``not without problem with pleasure it was 5-6 hours since it took my head finally settled thank you I have more than this error`

Logger: homeassistant.components.command_line
Source: components/command_line/init.py:41
Integration: command_line (documentation, issues)
First occurred: 18:33:08 (7 occurrences)
Last logged: 18:39:08

Command failed: grep -c ‘Login attempt’ /home/hass/.homeassistant/home-assistant.logstrong text

Source: /usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py:393
First occurred: 19:51:52 (2 occurrences)
Last logged: 20:03:05

Unhandled exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1152, in _sendfile_fallback
    read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 485, in start
    resp, reset = await task
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
    reset = await self.finish_response(request, resp, start_time)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
    await prepare_meth(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
    return await self._sendfile(request, fobj, offset, count)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
    await loop.sendfile(transport, fobj, offset, count)
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1131, in sendfile
    return await self._sendfile_fallback(transport, file,
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1161, in _sendfile_fallback
    await proto.restore()
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 263, in restore
    self._transport.resume_reading()
  File "/usr/local/lib/python3.8/asyncio/sslproto.py", line 344, in resume_reading
    self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'