Missing binary sensor(s)

Evening

I’ve missed the last couple of releases and have only just got around to upgrading.

I seem to now be missing my binary sensors though. I have 2 x Fibaro multi-sensors, one is the old version with its own built in binary sensor on the other is the zwave+ device for which I wrote my own binary sensor template:

binary_sensor:
  - platform: template
    sensors:
      fibaro_4_motion:
        value_template: "{{ is_state('sensor.fibaro_system_fgms001_motion_sensor_burglar_4', '8') }}"
        sensor_class: motion
        icon: mdi:bell-ring-outline

Neither of these are appearing in my UI, they’ve disappeared from the groups they used to belong to and I don’t see them in the entities dev panel.

I’ve tried totally wiping my customize.yaml and groups.yaml and still don’t see them.

Anyone able to help?

Have you checked your home-assistant.log file for any possible errors after restarting HASS?

…shit.

16-10-07 18:24:40 homeassistant.loader: Loaded binary_sensor.template from homeassistant.components.binary_sensor.template
16-10-07 18:24:40 homeassistant.bootstrap: Invalid config for [binary_sensor.template]: [icon] is an invalid option for [binary_sensor.template]. Check: binary_sensor.template->sensors->fibaro_4_motion->icon. Please check the docs at https://home-assistant.io/components/binary_sensor.template/

When did that change? I’ve always had an icon on there…

Confirmed removing that row now causes both of my sensors to show (even though the one mentioned in the log above was only one of the two missing sensors)

The invalid config for your template binary sensor ‘fibaro_4_motion’ caused the entire binary sensor component to not load. That is why neither of the two sensors were showing up.

You could try customizing your binary sensor as follows (in your configuration.yaml file):

homeassistant:
  customize:
    binary_sensor.fibaro_4_motion:
      icon: mdi:bell-ring-outline