当你有多个黑豆时,对于BlackBeanControl.ini的写法:
代码: 全选
[General]
;默认设备为BBDiningRoom
IPAddress = 192.168.1.52
Port = 80
MACAddress = B4:43:0D:D5:47:23
Timeout = 5
[BBDiningRoom]
IPAddress = 192.168.1.52
Port = 80
MACAddress = B4:43:0D:D5:47:23
Timeout = 5
[BBBedRoom]
IPAddress = 192.168.1.59
Port = 80
MACAddress = B4:43:0D:D5:45:45
Timeout = 5
[BBGuoRoom]
IPAddress = 192.168.1.48
Port = 80
MACAddress = B4:43:0D:D5:7C:A8
Timeout = 5
[Commands]
学习好命令,在命令行下测试正常后。修改ini文件的权限。在domoticz建立虚拟开关,填入相应命令。
用nano或vi将BlackBeanControl.py文件的第一行 #!python2 改成#!/usr/bin/python
好了。可以了。
感谢达达和DT27在过程中的帮助!!!