Mehli12
(André)
1
hi all, I know this topic was discussed before several times. but I still have no glue why its not working.
Here my configuration.yaml:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensor.yaml
## knx:
and here my sensor.yaml:
sensor.yaml
sensor:
- platform: knx
name: "Außentemperatur"
state_address: "31/2/1"
type: temperature
Would be great if anyone can help. Thank you.
Delete the line with “sensor:” in the sensor.yaml
Mehli12
(André)
3
Thx. I did it.
as an additional information. I have the KNX intigration via the UI up and running.
after some other failures I changed my configuration.yaml to this: (enable knx:)
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensor.yaml
knx:
my sensor.yaml looks like this:
- platform: knx
name: "Außentemperatur"
address: "31/2/1"
type: temperature
Now I got this error:
“The knx platform for the sensor integration does not support platform setup. Please remove it from your config.”
after removing from configuration.yaml I got this:
still this error:
“The knx platform for the sensor integration does not support platform setup. Please remove it from your config.”
and:
“No knx:
key found in configuration.yaml. See KNX - Home Assistant for KNX entity configuration documentation”
Any other idea?
farmio
(Matthias Alphart)
4
Knx doesn’t support
sensor:
- platform: knx
...
as this config style is long deprecated in HA.
The correct config schema is
knx:
sensor:
- ...
See KNX - Home Assistant
Mehli12
(André)
5
Thx.
I will try Monday and and give feedback.
Mehli12
(André)
6
okay. now I got it:
just to post the solution if anyone is interested:
my configuration.yaml:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
###sensor: !include sensor.yaml
knx:
sensor: !include knx_sensor.yaml
and my knx_sensor.yaml:
# knx_sensor.yaml
- name: "Außentemperatur"
state_address: "31/2/1"
type: temperature
thx all for your help!