Using Apple Watch/Phone with MQTT and ESPresense

Trying to add my Apple watch as an MQTT sensor. I installed ESPresense onto a ESP32 board. I enrolled my device. I use MQTT Explorer and see my device, but when I create the custom sensor in mqtt.yaml and reload “Manually Configured MQTT Enties” I get an error to check my logs - in my logs I’m getting the below error

  • [546897579312] Invalid config for ‘sensor’ at mqtt.yaml, line 2: ‘device_id’ is an invalid option for ‘sensor’, check: device_id, please check the docs at MQTT - Home Assistant

My mqtt.yaml is below

sensor:
  - name: "Apple Watch Josh"
    device_id: "watch:apple-joshua"
    state_topic: "espresense/devices/watch:apple-joshua"

Any help would greatly be appreciated

The sensors shouldn’t be MQTT, they should be mqtt_room

MQTT room presence - Home Assistant

Home Assistant | ESPresense

Also, this has nothing to do with ESPHome.

Thanks Martin - about 30 minutes ago I figured it all out. Thanks again for your comment and support

1 Like