Changing Hue Motion Sensors from Occupany to Motion in Homekit

Good Morning,

I am attempting to take the Hue Motion Sensor and customize the “Occupancy” entity to change it to a “Motion” Entity.

Being that it triggers on motion and doesn’t truly measure occupancy, I want to pass along the motion even to HomeKit and will then build a binary sensor to apply logic for actual occupancy.

I have integrated customize.yaml into my configuration.yaml and have the following:

binary_sensor.kitchen_huemotion_motion:
  device_class: motion
binary_sensor.livingroom_huemotion_motion:
  device_class: motion
binary_sensor.masterbedroom_huemotion_motion:
  device_class: motion
binary_sensor.sunroom_huemotion_motion:
  device_class: motion

The entities show up as “Motion” vs “Occupancy” in Developer Tools > States such as below :

friendly_name: Kitchen
device_class: motion

I have deleted all of my Bridges from Homekit and from the Integrations section in HA. I have also called HomeKit.reset_accessory via the following in the Developer Tools on all 4 Hue Motion sensor entities.

service: homekit.reset_accessory
target:
  entity_id: binary_sensor.masterbedroom_huemotion_motion

Homekit.yaml is as follows:

#######################################
#
# Motion Sensors
#
#######################################

- name: HA Motion
  port: 56332
  filter:
    include_entities:
      # Hue Motion Sensors
      - binary_sensor.kitchen_huemotion_motion
      - binary_sensor.livingroom_huemotion_motion
      - binary_sensor.masterbedroom_huemotion_motion
      - binary_sensor.sunroom_huemotion_motion
      # Sonoff Motion
      - binary_sensor.hallway_motion
      - binary_sensor.office_motion

  entity_config:
    # Hue Motion Sensor Config
    binary_sensor.kitchen_huemotion_motion:
      linked_battery_sensor: sensor.kitchen_huemotion_battery
    binary_sensor.livingroom_huemotion_motion:
      linked_battery_sensor: sensor.livingroom_huemotion_battery
    binary_sensor.masterbedroom_huemotion_motion:
      linked_battery_sensor: sensor.masterbedroom_huemotion_battery
    binary_sensor.sunroom_huemotion_motion:
      linked_battery_sensor: sensor.sunroom_huemotion_battery
    # Sonoff Motion
    binary_sensor.hallway_motion:
      linked_battery_sensor: sensor.hallway_motion_battery
    binary_sensor.office_motion:
      linked_battery_sensor: sensor.office_motion_battery

Everytime I add the bridge back into Homekit, it shows the Hue Motion as “Occupancy” and not “Motion”. I’ve beating my head against the wall here. I did originally add them into Homekit as “Occupancy” and then changed them to Motion via the customize function. I thought I had successfully completed all the steps as outlined here to reset, but I can’t get them to come into HomeKit as a Motion sensor. The Sonoff Motion sensors import with not issue as motion.