Page 1 of 1

iMessage Plugin not working via python

PostPosted: Sat Sep 26, 2020 4:06 am
by zoff
iMessage Plugin is working via Indigo action but not via python script.

I've been using the following code for months and its been working great, thank you Glenn, but it stopped working today.

Code: Select all
imsgPlugin = indigo.server.getPlugin('com.GlennNZ.indigoplugin.iMessage')
question = "irrigation is not running "
imsgPlugin.executeAction('sendMessage',   props={'message':question,'buddyId':'joef@mac.com'})
return;

No error message, it just doesn't do anything.

Re: iMessage Plugin not working via python

PostPosted: Sat Sep 26, 2020 5:08 am
by zoff
zoff wrote:
iMessage Plugin is working via Indigo action but not via python script.

I've been using the following code for months and its been working great, thank you Glenn, but it stopped working today.

Code: Select all
imsgPlugin = indigo.server.getPlugin('com.GlennNZ.indigoplugin.iMessage')
question = "irrigation is not running "
imsgPlugin.executeAction('sendMessage',   props={'message':question,'buddyId':'joef@mac.com'})
return;

No error message, it just doesn't do anything.



The problem was solved by changing the buddyId from mac.com to iCloud.com.
My script was using mac.com and Indigo is using iCloud.com.