arifwn/homeassistant-whatspie-integration

Two devices/services on same Home Assistant

Opened this issue · 0 comments

Hi!

I have successfully been using WhatsPie for the past couple of months with ONE single device under my account. I recently decided to add a SECOND device under the same account, and I added a second notification service for that new device.

My configuration.yaml in Home Assistant looks something like this:

notify:

  • name: send_wa
    platform: whatspie
    api_token: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    from_number: "507xxxxxxxx"
    country_code: "507"
  • name: send_wa_personal
    platform: whatspie
    api_token: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    from_number: "507yyyyyyyy"
    country_code: "507"

I am using the SAME api token because both devices are under the same account. The service that says "send_wa" is working perfectly. But the service named "send_wa_personal" is not.

If I log into my WhatsPie account I can send messages from the new device from the website, but from Home Assistant it is throwing the following error, according to logs:

Logger: custom_components.whatspie.notify
Source: custom_components/whatspie/notify.py:51
integration: whatspie (documentation, issues)
First occurred: 4:20:54 PM (3 occurrences)
Last logged: 5:42:19 PM

WhatsPie HTTP API Response: 500 - {"status":500,"message":"Device Disconnected"}

Any lights on what could be causing this? Thank you!