Closed indigo-jay closed 2 years ago
I should note - there are no other debug lines in the event log after the ones above. Nothing when a message is added to the selected channel, etc.
Hmm. I thought I tested that. I'll check.
Correction, I just noticed these two lines from the event log:
Jun 1, 2022 at 10:42:40 AM
Slack 2 Debug get_channel_list, targetId=293900836, typeId=messageEvent, valuesDict = UiValuesDict : (dict)
slackChannel : C01M8H4TCG2 (string)
slackDevice : 1694834566 (string)
Jun 1, 2022 at 10:46:30 AM
Slack 2 Debug get_channel_list, targetId=293900836, typeId=messageEvent, valuesDict = UiValuesDict : (dict)
slackChannel : C01M8H4TCG2 (string)
slackDevice : 1694834566 (string)
SAF has gone down significantly since we no longer get flashing Inovelli LEDs when the washing machine or dryer is done...
Can't have that...
What brand are they again? LG?
GE - last time I looked no API. So I'm using their IFTTT integration to post updates to the slack channel. The posts are going through to slack, just not from there into the plugin/Indigo.
We just got an LG laundry pair. Might look into the ThinQ API.
The plugin doesn't use websocket. Did you check that you have the right URL in the Slack API dashboard?
Ah, I think I see the problem. The description in the store is incorrect: https://www.indigodomo.com/pluginstore/192/
I didn't do these:
sudo /usr/bin/pip3 install slack-sdk
sudo /usr/bin/pip3 install aiohttp
sudo /usr/bin/pip3 install aiofiles
But only the two websocket ones in the description on the store. I'll uninstall the two websocket ones listed there and install the above.
Wait. That's the old one. The new Readme didn't get pushed.
BTW, your wiki install instructions are wrong also - they point to the wrong pip3...
I just updated the wiki. Feel free to suggest edits.
So, did this configuration stuff change significantly from the python 2 plugin? I have an Installed App that I created in that workspace called Indigo Plugin, but I don't see any tokens. Do I need to just trash everything from before and start over?
Ok, so uninstalled websockets and websockets-client, installed the 3 in the wiki.
I found the info on the slack site (it's a pita with multiple workspaces), and everything looks like it's configured correctly. The wiki says this:
Just enter that App Token and Bot Token in the device configuration dialog.
But the device config only has a field for the Bot Token (which is the correct token). Is that the problem? I'm still not getting anything when new messages are added to the channel (coming from a different account, so that's not the problem).
I should note that it's getting the correct list of channels for that workspace, so at least that part of the communication is working correctly.
Yes it changed a bunch from the version that used websocket. They deprecated that in favor of webhooks.
I'll review the instructions again and see where it's misleading.
We could avoid all of this if we can get the url rewrite in the reflector. If we can do that we can use Oauth and not need to do any of this per user setup.
Gah. The correct directions for the new version are at https://github.com/FlyingDiver/Indigo-Slack2/wiki/Setup
I forgot to edit the main page to point there when I released the new version. Can you try those instructions and see if everything works?
So, you do or don't need those pip installs? In any event, they are installed.
Just walked through the steps, everything looks right. Still no go.
Fixed install instructions.
Since the upgrade to Python 3, Message events aren't firing, but nothing in the log is particularly useful. On startup:
The Laundry Finished trigger isn't firing. Definition:
pip3 installs:
I do note that the websocket library is extremely old - the latest version (0.2.1) is from 2010, so I wonder if that just doesn't work with Python 3.10.
All of this was working nicely in Python 2/API 2.x.