Crewski / HANotify

Android actionable notifications for Home Assistant
63 stars 20 forks source link

Hassio issue when upgrading to 0.92 #11

Open goncalvespedro opened 5 years ago

goncalvespedro commented 5 years ago

Hi,

Are there any plans to upgrade the great notify app to HA 0.92?

it does not seem to be aligned to the new custom components config and I cannot seem to tweak it to get it working again.

Thanks in advance.

Regards pedro

rsteckler commented 5 years ago

To make it work: 1) Rename your folder structure from custom_components/notify/fcm-android.py to custom_components/fcm-android/notify.py 2) Add a new file: custom/components/fcm-android/manifest.json with the following contents:

{
    "domain": "https://github.com/Crewski/HANotify",
    "name": "HANotify",
    "documentation": "https://github.com/Crewski/HANotify",
    "dependencies": [],
    "codeowners": ["@Crewski"],
    "requirements": []
  }
goncalvespedro commented 5 years ago

Legend!! Great Thanks that worked

jerrychong25 commented 5 years ago

To make it work:

  1. Rename your folder structure from custom_components/notify/fcm-android.py to custom_components/fcm-android/notify.py
  2. Add a new file: custom/components/fcm-android/manifest.json with the following contents:
{
    "domain": "https://github.com/Crewski/HANotify",
    "name": "HANotify",
    "documentation": "https://github.com/Crewski/HANotify",
    "dependencies": [],
    "codeowners": ["@Crewski"],
    "requirements": []
  }

@rsteckler,

First time user here, using own FCM project.

Already installed all required components according to the guide and your file, but still not able to make it working.

Could I know what is possible issue for not working?

Thanks.

jojo416 commented 5 years ago

@jerrychong25 Just in case you still haven't found a solution, I found adding a blank file named __init__.py to the above fcm-android folder fixed it for me.