Integrate y-Cam noificaticaton into Home Assistance

After chatting to y-Cam support they confirmed they have no intention on releasing any api so we can integrate into HA. So I decided to do a work around and share it.

  1. Enable y-Cam email notification.

  2. Add the below to your configuration.yaml

    sensor:

    • platform: imap_email_content
      name: Y-Cam Notification
      server: imap.gmail.com
      port: 993
      username: {your.username}
      password: {your.password}
      senders:
      - [email protected]

    automation:
    - alias: Y-Cam Status Notification
    trigger:
    platform: state
    entity_id: sensor.ycam_notification
    # Example below of what action you want eg send a push notification
    action:
    - service: notify.mypushbullet
    data_template:
    message: ‘{{ states.sensor.ycam_notification.attributes.subject }} at {{ states.sensor.ycam_notification.attributes.date }}’
    title: ‘Home Assistant’

2 Likes