leonxis 发表于 2019-11-13 10:31:07

回去后就试试。为了方糖一直停留在0.88,然后出现了各种莫名奇妙的问题。感谢楼主

miniknife 发表于 2019-11-25 23:24:14

发纯文字正常,发送带图片的消息一直提示错误

2019-11-25 23:21:53 ERROR (SyncWorker_12) Message failed to send. Error code 41015. missing content, hint: , from ip: 222.82.24.152, more info at https://open.work.weixin.qq.com/devtool/query?e=41015

hugh_jie 发表于 2019-11-26 19:57:39

升级到0.102.2出问题了。。图片发不出去。下面是日志:
2019-11-26 19:53:03 ERROR (MainThread) No such file or directory: '/config/local/tv.jpg'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
    connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service
    await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 120, in async_notify_message
    await notify_service.async_send_message(**kwargs)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wechatwork/notify.py", line 92, in send_message
    files = {media_type: open(path, 'rb')}
FileNotFoundError: No such file or directory: '/config/local/tv.jpg'
大佬有空搞一下么

chiunownow 发表于 2019-11-27 15:55:26

hugh_jie 发表于 2019-11-26 19:57
升级到0.102.2出问题了。。图片发不出去。下面是日志:
2019-11-26 19:53:03 ERROR (MainThread)

No such file or directory: '/config/local/tv.jpg'

请检查文件是否存在,以及目录是否在白名单内
https://www.home-assistant.io/docs/configuration/basic/

hugh_jie 发表于 2019-11-27 21:57:02

chiunownow 发表于 2019-11-27 15:55
No such file or directory: '/config/local/tv.jpg'

请检查文件是否存在,以及目录是否在白名单内

换了个错误...
Message failed to send. Error code 41015. missing content, hint: , from ip: 125.70.20.230, more info at https://open.work.weixin.qq.com/devtool/query?e=41015
跟楼上一样了

chiunownow 发表于 2019-11-28 13:51:30

hugh_jie 发表于 2019-11-27 21:57
换了个错误...
Message failed to send. Error code 41015. missing content, hint:

https://github.com/Chiunownow/home-assistant-wechatwork-notify/releases/
已修复(大概是企业微信偷偷改了接口?我应该之前测试都是OK的)

hugh_jie 发表于 2019-11-28 14:07:52

chiunownow 发表于 2019-11-28 13:51
https://github.com/Chiunownow/home-assistant-wechatwork-notify/releases/
已修复(大概是企业微信偷 ...

:lol非常感谢,能用了

yinghu183 发表于 2019-12-3 21:06:21

@all也只能有一个人能收到,是不是不能一对多了

白云纷飞 发表于 2020-2-12 16:43:33

这么好的文章必须顶起来!感谢大神分享

wcjxacjt 发表于 2020-4-5 09:32:32

这个推送方便,马一下先
页: 1 [2] 3
查看完整版本: 企业微信改版,使用方法更加接近官方notify