CestLaGalere / mobilealerts

Retrieves sensor data for Mobile Alerts sensors for Home Assistant
Apache License 2.0
15 stars 6 forks source link

Trouble installing #6

Closed lenhoy closed 1 year ago

lenhoy commented 1 year ago

New to HA, appreciate the integration! I am trying to integrate the MA sensors and have tried to follow the instructions, however I can't seem to find any new entities or anything after a restart.

Running curl with the phone and device ids returns a json response as expected. in configuration.yaml I have added sensor: !include_dir_merge_list sensors/ and added a 'sensors' folder containing a 'mobilealerts.yaml' file with the following:

sensor:
  - platform: mobile_alerts
    phone_id: XXXXXX
    devices:
      - device_id: XXXXX
        name: mobilealertsSensor temp
        type: t1
      - device_id: XXXXX
        name: mobilealertsSensor humidity
        type: h

The mobile_alerts integration does show up in HACS, but under Devices & Services I can't find anything.

Hope this is the right place to ask, I'd appreciate any help :)

petrleocompel commented 1 year ago

Change platform to mobilealerts

petrleocompel commented 1 year ago

I see it is wrong in readme

lenhoy commented 1 year ago

Thank you for the quick reply! I moved the separate .yaml config of MA into the configuration.yaml to remove another step which might have caused the problem.

However now checking configuration with platform: mobilealerts gives the error 'Platform error sensor.mobilealerts - Integration 'mobilealerts' not found.' Using platform: mobile_alerts passes the configuration check. The integration shows up in HACS as 'mobile_alerts'. Is there anything in the installation process which has changed from the readme?

petrleocompel commented 1 year ago

Okay, my fault it is really mobile_alerts i did not remember what is the correct one.

Then can you try to look for your entitites in "entities tab" ?

lenhoy commented 1 year ago

It works now! Perhaps after a few restarts, just waiting for a bit was needed. So "platform: mobile_alerts" is correct, I guess the separation of the yaml into its own file caused some problems.

Thank you for the help, looking forward to finally using MA in HA :)

lenhoy commented 1 year ago

It still doesn't show under Integrations though, I don't know if it is supposed to either

petrleocompel commented 1 year ago

@lenhoy Do you see entities ? or not ? Well the integration does not have any devices in older HA version it was not shown in "integrations" tab.