版主,我试图用树莓派运行的时候,出现了正常添加设备,但是控制提示智能家居出了问题的故障。
日志如下
[size=0.85em]2018/11/06 00:39:41 [error] 295#295: *44 FastCGI sent in stderr: "PHP message: aa02d7558ea0a762b437bae88c6c54034d3b2ec2
[size=0.85em]PHP message: user001
[size=0.85em]PHP message: -------
[size=0.85em]PHP message: ----get-request---
[size=0.85em]PHP message: {"header":{"messageId":"98585961-866d-45f9-bd32-00b27a7ac5b4","name":"TurnOn","namespace":"AliGenie.Iot.Device.Control","payLoadVersion":1},"payload":{"accessToken":"aa02d7558ea0a762b437bae88c6c54034d3b2ec2","attribute":"powerstate","deviceId":"switch.tv_led","deviceType":"light","extensions":{"extension1":"","extension2":""},"value":"on"}}
[size=0.85em]PHP message: user001
[size=0.85em]
[size=0.85em]
[size=0.85em] in /data/tmall-bot-x1/aligenies_request.php on line 623
[size=0.85em]PHP message: ----reseponse---
[size=0.85em]PHP message: {
[size=0.85em] "header":{
[size=0.85em] "namespace":"AliGenie.Iot.Device.Control",
[size=0.85em] "name":"TurnOnResponse",
[size=0.85em] "messageId":"b4ac-711b-550b-e900ed8f9f5b",
[size=0.85em] "payLoadVersion":1
[size=0.85em] },
[size=0.85em] "payload":{
[size=0.85em] "deviceId":"switch.tv_led"
[size=0.85em] }
[size=0.85em] }" while reading response header from upstream, client: 203.119.135.198, server: _, request: "POST /gate.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "home.hassio.tech:4443"
[size=0.85em]另外,树莓派安装的命令是
docker pull neroxps/armhf-tmall-bot-x1-addon:latest
docker run -d -it -p 4443:443 -p 4480:80 --restart=always --name tmallbot -v /home/pi/tmall/ssl:/ssl -v /home/pi/tmall/data:/data -e "HA_URL=http://192.168.2.3:8888" -e "HA_PASSWD=123456qq" neroxps/armhf-tmall-bot-x1-addon:latest
data跟ssl文件夹我放在home/pi/tmall里面了。tmall容器网络是桥接模式,不是host。环境变量看了下正常。我用portainer做的docker UI
请问是哪里出问题了呢。谢谢!
|