Hi everyone,
first of all sorry if this has been asked a hundred times. i am very new to all this and really struggle to get my head around some of the different bits especially the configuring the yaml file after trying to add something.
i am trying to add a binary sensor for my front door using this code
but no matter how much i try and sort this i get the same message time after time.
Configuration invalid
CHECK CONFIG
Invalid config for [binary_sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 52). Please check the docs at https://home-assistant.io/components/binary_sensor/
Integration not found: switches
if anyone could help me it would be greatly appreciated.
when you tried to post your entry did you get a warning that said something like “you are trying to post code that isn’t formatted correctly” and it asked you to check it again?
The reason I ask is that there is supposed to be a new feature to warn new people to make sure they post their code correctly formatted. Either feature isn’t working or you clicked to ignore it.
Either way you will need to edit your post to properly format your code. We can’t see syntax errors if you don’t and we can’t help you.
the log says something about “switches” integration not being found.
I believe you have some other indentation or spelling error in your config related to the “switch:” entry. Check that first. It should be “switch:” not “switches:”. If you can’t locate it then you should probably post your entire configuration.yaml file with all of your personal/sensitive info removed.
Finity
i have made the changes and restarted, i have a notification popping up saying.
your confg contains extra keys that platform does not support (but were silently accepted before 0.88).
please find and remove the following this will become a breaking change.
The only thing the validation tool checks for is syntax.
Your issue is with the use of “optimistic” in the config as it’s not longer acceptable to have attributes assigned that don’t work. That’s what it’s telling you. Remove the optimistic from the binary sensor
flamingm0e,
i have been through and removed the optimistic line and from what you have said i removed the retain line as well. i rebooted and there’s no more issues. i just need to figure out how to make it visual on the front end now so it shows up.
i assume i can just create a card to do this?
Sorry i can only apologise for my spelling AGAIN.
OK any thoughts on what its wanting me to provided then? as i have managed to get 3 of the switches up on a card but cant get the newest hall light up there and working as far as i can see there all the same so stumped as to why this would be???