Hello there,
I am a beginner with both the Moroen plugin and Domoticz.
I installed Domoticz on Windows 10 20H2 (x64) as a test.
Version :
Domoticz: Version: 2021.1
Python (32b): 3.9.6
Git and Go installed and updated
I installed the plugin as follows:
- From GIT: git clone
https://github.com/moroen/IKEA-Tradfri-plugin.git IKEA-Tradfri
- Update tools:
Code: Select all
pip3 install -U pip
pip3 install -U setuptools
- Tradfricoap
-Coapcmd :
- Config to use copacmd (note on my machine it is Python instead Python3)
Code: Select all
python plugin.py config api coapcmd
- Check the version:
Code: Select all
python plugin.py version:
IKEA Tradfri Plugin: 0.10.7
Tradfricoap: 0.1.0
Py3coap: Not found
coapcmd: (C:\Program Files (x86)\Domoticz\plugins\IKEA-Tradfri/bin/coapcmd.exe) 0.1.7
- Add gateway:
Code: Select all
python plugin.py config gw <IP> < KEY>
- Check the gtw config
Code: Select all
python plugin.py config
{
"Gateway": "192.168.1.69",
"Identity": "somecharacters",
"Passkey": "somecharacters",
"Verbosity": 0,
}
python plugin.py list
Lights:
65539: pregnant (State: 0 - Level: 55 - Hex: f1e0b5)
65543: Saint Raphael (State: 1 - Level: 254 - Hex: f1e0b5)
65544: Charlie Parker (State: 0 - Level: 55 - Hex: f1e0b5)
Groups:
131073: SuperGroup
131075: SleepingAndEatingRoom
Batteries:
65538: TRADFRI remote control (State: None - Level: None - Hex: None)
Other:
65538: TRADFRI remote control (State: None - Level: None - Hex: None)
- From the Domoticz page, add the hardware as 'IKEA Tradfri Plugin - version 0.10.7' type with this parameters:
Add groups as devices: yes
Monitor change: Poll
polling interval: 20 (just for dbg)
Monitor batteries : On value
Transition time: 10
Debug : true
-> from devices tab, devices are not created.
From the logs, all wotks fine (i assume):
Code: Select all
2021-07-17 15:04:40.379 IkeaGateway hardware started.
2021-07-17 15:04:40.628 IkeaGateway: (IkeaGateway) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2021-07-17 15:04:40.628 IkeaGateway: (IkeaGateway) Monitor changes method: poll
2021-07-17 15:04:40.379 Status: IkeaGateway: (IkeaGateway) Entering work loop.
2021-07-17 15:04:40.379 Status: IkeaGateway: (IkeaGateway) Started.
2021-07-17 15:04:40.627 Status: IkeaGateway: (IkeaGateway) Initialized version 0.10.7, author 'moroen'
Not sure where i need to investigate and some help would much appreciated.