[REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Python and python framework

Moderator: leecollings

Cyroq
Posts: 30
Joined: Monday 10 December 2018 13:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by Cyroq »

The wiki states this:
When using a CWS (color) bulb, a CWS color selector device is created. Due to a known limitation when setting levels in Domoticz scenes, it's only possible to specify the first half of the available colors in a scene. Selecting a color from the last half, gives the color for level 100 (lime) when the scene is activated. A workaround for this is planned, but currently not implemented.
Has anyone found a workaround to automate or group the lights with the second half of the colours?
I'd like to automate them, but for now it seems impossible to either:
- create a master dummy switch to control the colours of the second half of multiple lights
- create a scene with colours of the second half
moroen
Posts: 408
Joined: Sunday 15 January 2017 11:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen »

Cyroq wrote: Monday 19 July 2021 14:45 The wiki states this:
When using a CWS (color) bulb, a CWS color selector device is created. Due to a known limitation when setting levels in Domoticz scenes, it's only possible to specify the first half of the available colors in a scene. Selecting a color from the last half, gives the color for level 100 (lime) when the scene is activated. A workaround for this is planned, but currently not implemented.
Has anyone found a workaround to automate or group the lights with the second half of the colours?
I'd like to automate them, but for now it seems impossible to either:
- create a master dummy switch to control the colours of the second half of multiple lights
- create a scene with colours of the second half
It's on my "to do" list, but unfortunately I dont't have all that much time to work on the plugin at the moment. It's solved in the new version of the plugin, but that version is still not ready for release... I hope to be able to pick up work on the plugin again soon!

Regards,
M
RedEarth
Posts: 23
Joined: Monday 31 October 2016 11:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Tradfri plugin memory issues

Post by RedEarth »

I've noticed what appears to be a possible memory leak in the Tradfri plugin. I have the 'motherboard sensors' hardware item set up in Domoticz, to get the various devices in the utilities page to monitor various parameters on the host environment (an original first generation raspberry Pi model B, still going strong!) and the process usage graph is showing a steady increase of around 5MB per day, which drops back each time I reboot the Pi. I tried disabling the Tradfri plugin for about a week and the graph flattened out, so I'm pretty sure the Tradfri plugin was the cause of it. I then updated the plugin, re-enabled it (and also did an apt upgrade at the same time), and the process usage started climbing again.

@moroen, I didn't report it initially because I saw you were working on a completely new plugin anyway which I'm happy to wait for to try out when it's ready, but then I decided I should mention it anyway, just in case. Are you (or anyone) aware of any memory leak issues in the existing version of the plugin, and if so is there any easy fix, or should I just wait for the new plugin to see if that fixes it?

thanks in advance... :)
moroen
Posts: 408
Joined: Sunday 15 January 2017 11:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: Tradfri plugin memory issues

Post by moroen »

RedEarth wrote: Monday 26 July 2021 19:23 @moroen, I didn't report it initially because I saw you were working on a completely new plugin anyway which I'm happy to wait for to try out when it's ready, but then I decided I should mention it anyway, just in case. Are you (or anyone) aware of any memory leak issues in the existing version of the plugin, and if so is there any easy fix, or should I just wait for the new plugin to see if that fixes it?
I'm aware of the memory leak, and have a pretty good idea of where it is, but I have no current plans to fix it. The new version, which has taken far longer than anticipated, is getting near alpha status. It was actually almost done, when gizmocuz started implementing mqtt auto discovery in domoticz, which made the python plugin part of the new version "obsolete" over night...

It's not ready for genereal release, but if anyone would like to help me test the new version, please send a PM. Please note that the new version currently requires domoticz beta, since it relies on mqtt auto discovery, which currently only is available in the betas...

Regards,
M
Ketting
Posts: 3
Joined: Tuesday 11 February 2020 19:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Webinterface not available after Tradfri hardware installed

Post by Ketting »

Hi all!

I did a clean install of Domoticz on a Pi4 and installed the Moroen Plugin (https://github.com/moroen/IKEA-Tradfri-plugin.git IKEA-Tradfri)
to control my Tradfri stuff.

In the test (python3 plugin.py list ) I see all the bulbs and switches.

But from the moment I create the hardware in Domoticz I cannot access Domoticz anymore.
The status is active, but when I try to enter the webinterface I get the offline page.

Is there anyone who has had this before?

Regards,
Niels
AvdWerfhorst
Posts: 3
Joined: Wednesday 18 August 2021 14:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by AvdWerfhorst »

It seems like some IKEA stores in the Netherlands have the new ÅSKVÄDER products now in stock (but not on their website yet). Does anyone know if the power switch from this is recognized by Moeron's plugin?
moroen
Posts: 408
Joined: Sunday 15 January 2017 11:06
Target OS: Linux
Domoticz version: beta
Location: Norway
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by moroen »

AvdWerfhorst wrote: Tuesday 25 January 2022 15:05 It seems like some IKEA stores in the Netherlands have the new ÅSKVÄDER products now in stock (but not on their website yet). Does anyone know if the power switch from this is recognized by Moeron's plugin?
From the little information I have been able to find, I would hazard that there is a good chance it will work "out of the box", probably recognized as a plug/adapter. If not, it should not be to much of a hassle to add support...Looks like it's available in Norway as well, I'll see if I can get my hands on a couple and check them out..

Regards,
M
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by Vomera »

Is the plugin still in development ?
The lights are very slow with responding when i activate a scene in domoticz. Feels like they are being queued and go in order on/off.
When i press a button in my living room, sometimes it doesnt respond at all or like 10/15 seconds later. In the mean time i pressed the button again because i think it hasnt recieved by domoticz.

Does other people this issue too ?

Here some logging when i activate a scene with 6 lights (takes 15 seconds):

Code: Select all

2023-01-06 13:19:40.994 Ikea: Ikea Level: 254
2023-01-06 13:19:40.994 Ikea: Finnished command
2023-01-06 13:19:40.994 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:40.995 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:40.995 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:40.995 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:40.995 Ikea: onCommand called for Unit 26: Parameter 'Set Level', Level: 20
2023-01-06 13:19:40.995 Ikea: Command Level: 20
2023-01-06 13:19:41.004 Ikea: Ikea Level: 254
2023-01-06 13:19:41.004 Ikea: Finnished command
2023-01-06 13:19:41.004 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:41.005 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:41.005 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:41.005 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:41.005 Ikea: onCommand called for Unit 28: Parameter 'Set Level', Level: 20
2023-01-06 13:19:41.005 Ikea: Command Level: 20
2023-01-06 13:19:43.016 Ikea: Ikea Level: 191
2023-01-06 13:19:43.016 Ikea: Finnished command
2023-01-06 13:19:43.016 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:43.017 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:43.017 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:43.017 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:43.017 Ikea: onCommand called for Unit 38: Parameter 'Set Level', Level: 20
2023-01-06 13:19:43.017 Ikea: Command Level: 20
2023-01-06 13:19:45.027 Ikea: Ikea Level: 191
2023-01-06 13:19:45.027 Ikea: Finnished command
2023-01-06 13:19:45.027 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:45.027 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:45.027 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:45.027 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:45.027 Ikea: onCommand called for Unit 8: Parameter 'Set Level', Level: 20
2023-01-06 13:19:45.027 Ikea: Command Level: 20
2023-01-06 13:19:45.036 Ikea: Ikea Level: 191
2023-01-06 13:19:45.036 Ikea: Finnished command
2023-01-06 13:19:45.036 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:45.036 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:45.036 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:45.036 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:45.036 Ikea: onCommand called for Unit 34: Parameter 'Set Level', Level: 20
2023-01-06 13:19:45.036 Ikea: Command Level: 20
2023-01-06 13:19:47.095 Ikea: Ikea Level: 50
2023-01-06 13:19:47.095 Ikea: Finnished command
2023-01-06 13:19:47.095 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:47.095 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:47.095 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:47.095 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:47.095 Ikea: onCommand called for Unit 37: Parameter 'Set Level', Level: 20
2023-01-06 13:19:47.095 Ikea: Command Level: 20
2023-01-06 13:19:49.105 Ikea: Ikea Level: 102
2023-01-06 13:19:49.105 Ikea: Finnished command
2023-01-06 13:19:49.105 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:49.107 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:49.107 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:49.107 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:49.107 Ikea: onCommand called for Unit 29: Parameter 'Set Level', Level: 100
2023-01-06 13:19:49.107 Ikea: Command Level: 100
2023-01-06 13:19:49.145 Ikea: Ikea Level: 254
2023-01-06 13:19:49.145 Ikea: Finnished command
2023-01-06 13:19:49.145 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:49.145 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:49.145 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:49.145 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:49.145 Ikea: onCommand called for Unit 25: Parameter 'Set Level', Level: 100
2023-01-06 13:19:49.145 Ikea: Command Level: 100
2023-01-06 13:19:51.195 Ikea: Ikea Level: 254
2023-01-06 13:19:51.195 Ikea: Finnished command
2023-01-06 13:19:51.195 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:51.195 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:51.195 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:51.195 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:51.195 Ikea: onCommand called for Unit 27: Parameter 'Set Level', Level: 75
2023-01-06 13:19:51.195 Ikea: Command Level: 75
2023-01-06 13:19:53.249 Ikea: Ikea Level: 191
2023-01-06 13:19:53.249 Ikea: Finnished command
2023-01-06 13:19:53.249 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:53.249 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:53.249 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:53.249 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:53.249 Ikea: onCommand called for Unit 35: Parameter 'Set Level', Level: 75
2023-01-06 13:19:53.249 Ikea: Command Level: 75
2023-01-06 13:19:55.372 Ikea: Ikea Level: 214
2023-01-06 13:19:55.372 Ikea: Finnished command
2023-01-06 13:19:55.372 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:55.372 Ikea: Processing 'onCommandCallback' message
2023-01-06 13:19:55.372 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 13:19:55.372 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 13:19:55.372 Ikea: onCommand called for Unit 36: Parameter 'Set Level', Level: 40
2023-01-06 13:19:55.372 Ikea: Command Level: 40
2023-01-06 13:19:55.411 Ikea: Ikea Level: 102
2023-01-06 13:19:55.411 Ikea: Finnished command
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by waltervl »

As we see only the Ikea logging we cannot see if there are other actions/scripts running that use the same network to perform network/URL actions. If these actions are slow, ikea will also be slow.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by Vomera »

Here some more logging, the logging before i only filtered at ikea plugin.

The scene is activated and dzvents will run, i use dzvents because i need to change the color as well.

Code: Select all


return {
	on = {
	    
	scenes = { 'Woonkamer Aan' }
    },
	logging = {
		level = domoticz.LOG_INFO,
		marker = 'template',
	},
	execute = function(domoticz, scene)
	    
    if (domoticz.scenes("Woonkamer Aan").state == 'On') then
	     
	    
	    
	     domoticz.devices('Lamp Achter Links - Color').dimTo(20)
	     domoticz.devices('Lamp Achter Rechts - Color').dimTo(20)
	     
	     domoticz.devices('Lamp Voor Links - Color').dimTo(20)
	     domoticz.devices('Lamp Voor Rechts - Color').dimTo(20)
	     
	     domoticz.devices('Lamp Roze - Color').dimTo(20)
	     domoticz.devices('Lamp Bank - Color').dimTo(20)
	     domoticz.devices('Lamp Eetkamertafel - Color').dimTo(20)
	     
	     
	     
	     domoticz.devices('Lamp Achter Links').dimTo(100)
	     domoticz.devices('Lamp Achter Rechts').dimTo(100)
	     
	     domoticz.devices('Lamp Voor Links').dimTo(75)
	     domoticz.devices('Lamp Voor Rechts').dimTo(75)
	     
	     domoticz.devices('Lamp Roze').dimTo(75)
	     domoticz.devices('Lamp Bank').dimTo(95)
	     domoticz.devices('Lamp Eetkamertafel').dimTo(40)
	     domoticz.log('Woonkamer AAN')
    end


end

}


Code: Select all

Domoticz2022.2 (build 14905)
 Dashboard
 Switches
 Scenes
 Temperature
 Weather
 Utility
 Setup 
All
Status
Error
Debug
Filter: 
 X
2023-01-06 14:00:55.438 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:00:55.438 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:00:55.438 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:00:55.438 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.438 Ikea: onCommand called for Unit 30: Parameter 'Set Level', Level: 20
2023-01-06 14:00:55.438 Ikea: Command Level: 20
2023-01-06 14:00:55.438 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.439 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.440 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.440 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.440 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.440 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.440 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.440 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.440 Ikea: Pushing 'onCommandCallback' on to queue
2023-01-06 14:00:55.447 Activating Scene/Group Device: Xiaomi RGB (On)
2023-01-06 14:00:55.548 Xiaomi Woonkamer: Color Switch (Xiaomi RGB)
2023-01-06 14:00:55.560 Xiaomi Woonkamer: Lux (Xiaomi Gateway Lux)
2023-01-06 14:00:55.602 Xiaomi Woonkamer: Color Switch (Xiaomi RGB)
2023-01-06 14:00:55.659 Activating Scene/Group Device: Led Vakkenkast (On)
2023-01-06 14:00:55.692 DUMMY: Color Switch (Led Vakkenkast)
2023-01-06 14:00:55.776 P1 smartmeter: P1 Smart Meter (Stroom)
2023-01-06 14:00:55.786 P1 smartmeter: Usage (Usage L1)
2023-01-06 14:00:55.800 P1 smartmeter: Usage (StroomTerug)
2023-01-06 14:00:55.357 Status: User: Vomera (IP: 192.168.0.104) initiated a scene/group command
2023-01-06 14:00:55.415 Status: dzVents: Info: template: ------ Start internal script: 5a Scene Woonkamer aan: Scene: "Woonkamer Aan", Index: 3
2023-01-06 14:00:55.421 Status: dzVents: Info: template: Woonkamer AAN
2023-01-06 14:00:55.421 Status: dzVents: Info: template: ------ Finished 5a Scene Woonkamer aan
2023-01-06 14:00:55.426 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:00:55.845 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:00:55.447 Debug: Xiaomi Woonkamer: message: '{"cmd":"write","model":"gateway","sid":"7811dcb7d9c5","short_id":0,"data":"{\"rgb\":1694494798,\"key\":\"@gatewaykey\"}" }'
2023-01-06 14:00:55.891 Debug: MQTT1: Topic: domoticz/in, Message: {"idx":13986,"nvalue":1,"svalue":"100","Battery":100,"RSSI":10}
2023-01-06 14:00:56.074 Xiaomi Woonkamer: Lux (Xiaomi Gateway Lux)
2023-01-06 14:00:56.340 Motherboard: General/Percentage (CPU Usage)
2023-01-06 14:00:56.358 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:00:57.447 Led Gang Boven: Heartbeating...
2023-01-06 14:00:57.448 Led Gang Boven: MqttClient::Ping
2023-01-06 14:00:57.457 Ikea: Ikea Level: 254
2023-01-06 14:00:57.457 Ikea: Finnished command
2023-01-06 14:00:57.457 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:00:57.457 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:00:57.457 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:00:57.457 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:00:57.457 Ikea: onCommand called for Unit 26: Parameter 'Set Level', Level: 20
2023-01-06 14:00:57.457 Ikea: Command Level: 20
2023-01-06 14:00:59.467 Led Keuken: Heartbeating...
2023-01-06 14:00:59.467 Led Keuken: MqttClient::Ping
2023-01-06 14:00:59.470 Ikea: Ikea Level: 254
2023-01-06 14:00:59.470 Ikea: Finnished command
2023-01-06 14:00:59.470 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:00:59.470 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:00:59.470 Led Douche: Heartbeating...
2023-01-06 14:00:59.470 Led Douche: MqttClient::Ping
2023-01-06 14:00:59.471 Led Keukenkast: Heartbeating...
2023-01-06 14:00:59.471 Led Keukenkast: MqttClient::Ping
2023-01-06 14:00:59.470 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:00:59.472 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:00:59.472 Ikea: onCommand called for Unit 28: Parameter 'Set Level', Level: 20
2023-01-06 14:00:59.472 Ikea: Command Level: 20
2023-01-06 14:00:59.482 Ikea: Ikea Level: 191
2023-01-06 14:00:59.482 Ikea: Finnished command
2023-01-06 14:00:59.482 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:00:59.482 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:00:59.482 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:00:59.482 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:00:59.482 Ikea: onCommand called for Unit 38: Parameter 'Set Level', Level: 20
2023-01-06 14:00:59.482 Ikea: Command Level: 20
2023-01-06 14:00:59.745 Debug: MQTT1: Topic: domoticz/in, Message: {"idx":7344,"nvalue":0,"svalue":"0;388000.0","Battery":88,"RSSI":10}
2023-01-06 14:01:00.432 Status: LUA: 1140.0
2023-01-06 14:01:00.432 Status: LUA: Rain in timerange: 0 linetime:14:25 Line:000|14:25
2023-01-06 14:01:00.432 Status: LUA: 1440.0
2023-01-06 14:01:00.432 Status: LUA: Rain in timerange: 0 linetime:14:30 Line:000|14:30
2023-01-06 14:01:00.432 Status: LUA: 1740.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:14:35 Line:000|14:35
2023-01-06 14:01:00.433 Status: LUA: 2040.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:14:40 Line:000|14:40
2023-01-06 14:01:00.433 Status: LUA: 2340.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:14:45 Line:000|14:45
2023-01-06 14:01:00.433 Status: LUA: 2640.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:14:50 Line:000|14:50
2023-01-06 14:01:00.433 Status: LUA: 2940.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:14:55 Line:000|14:55
2023-01-06 14:01:00.433 Status: LUA: 3240.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:15:00 Line:000|15:00
2023-01-06 14:01:00.433 Status: LUA: 3540.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:15:05 Line:000|15:05
2023-01-06 14:01:00.433 Status: LUA: 3840.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:15:10 Line:000|15:10
2023-01-06 14:01:00.433 Status: LUA: 4140.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:15:15 Line:000|15:15
2023-01-06 14:01:00.433 Status: LUA: 4440.0
2023-01-06 14:01:00.433 Status: LUA: Rain in timerange: 0 linetime:15:20 Line:000|15:20
2023-01-06 14:01:00.433 Status: LUA: 4740.0
2023-01-06 14:01:00.434 Status: LUA: Rain in timerange: 0 linetime:15:25 Line:000|15:25
2023-01-06 14:01:00.434 Status: LUA: 5040.0
2023-01-06 14:01:00.434 Status: LUA: Rain in timerange: 0 linetime:15:30 Line:000|15:30
2023-01-06 14:01:00.434 Status: LUA: 5340.0
2023-01-06 14:01:00.434 Status: LUA: Rain in timerange: 0 linetime:15:35 Line:000|15:35
2023-01-06 14:01:00.434 Status: LUA: 5640.0
2023-01-06 14:01:00.434 Status: LUA: Rain in timerange: 0 linetime:15:40 Line:000|15:40
2023-01-06 14:01:00.434 Status: LUA: 5940.0
2023-01-06 14:01:00.434 Status: LUA: Rain in timerange: 0 linetime:15:45 Line:000|15:45
2023-01-06 14:01:00.434 Status: LUA: 6240.0
2023-01-06 14:01:00.434 Status: LUA: Rain in timerange: 0 linetime:15:50 Line:000|15:50
2023-01-06 14:01:00.434 Status: LUA: 6540.0
2023-01-06 14:01:00.434 Status: LUA: Rain in timerange: 0 linetime:15:55 Line:000|15:55
2023-01-06 14:01:00.434 Status: LUA: 6840.0
2023-01-06 14:01:00.434 Status: LUA: Rain in timerange: 0 linetime:16:00 Line:000|16:00
2023-01-06 14:01:00.434 Status: LUA: 7140.0
2023-01-06 14:01:00.434 Status: LUA: Regen verwacht: 0.0 mm binnen 15 minuten.
2023-01-06 14:01:00.434 Status: LUA: http://192.168.0.5/scripts/radar.txt
2023-01-06 14:01:00.459 Status: LUA: Rain in timerange: 0 linetime:14:05 Line:000|14:05
2023-01-06 14:01:00.459 Status: LUA: 240.0
2023-01-06 14:01:00.459 Status: LUA: Line in time range found
2023-01-06 14:01:00.459 Status: LUA: Rain in timerange: 0
2023-01-06 14:01:00.459 Status: LUA: Total rain now: 0
2023-01-06 14:01:00.459 Status: LUA: Rain in timerange: 0 linetime:14:10 Line:000|14:10
2023-01-06 14:01:00.459 Status: LUA: 540.0
2023-01-06 14:01:00.459 Status: LUA: Rain in timerange: 0 linetime:14:15 Line:000|14:15
2023-01-06 14:01:00.459 Status: LUA: 840.0
2023-01-06 14:01:00.459 Status: LUA: Rain in timerange: 0 linetime:14:20 Line:000|14:20
2023-01-06 14:01:00.459 Status: LUA: 1140.0
2023-01-06 14:01:00.459 Status: LUA: Rain in timerange: 0 linetime:14:25 Line:000|14:25
2023-01-06 14:01:00.459 Status: LUA: 1440.0
2023-01-06 14:01:00.459 Status: LUA: Rain in timerange: 0 linetime:14:30 Line:000|14:30
2023-01-06 14:01:00.459 Status: LUA: 1740.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:14:35 Line:000|14:35
2023-01-06 14:01:00.460 Status: LUA: 2040.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:14:40 Line:000|14:40
2023-01-06 14:01:00.460 Status: LUA: 2340.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:14:45 Line:000|14:45
2023-01-06 14:01:00.460 Status: LUA: 2640.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:14:50 Line:000|14:50
2023-01-06 14:01:00.460 Status: LUA: 2940.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:14:55 Line:000|14:55
2023-01-06 14:01:00.460 Status: LUA: 3240.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:15:00 Line:000|15:00
2023-01-06 14:01:00.460 Status: LUA: 3540.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:15:05 Line:000|15:05
2023-01-06 14:01:00.460 Status: LUA: 3840.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:15:10 Line:000|15:10
2023-01-06 14:01:00.460 Status: LUA: 4140.0
2023-01-06 14:01:00.460 Status: LUA: Rain in timerange: 0 linetime:15:15 Line:000|15:15
2023-01-06 14:01:00.460 Status: LUA: 4440.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:15:20 Line:000|15:20
2023-01-06 14:01:00.461 Status: LUA: 4740.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:15:25 Line:000|15:25
2023-01-06 14:01:00.461 Status: LUA: 5040.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:15:30 Line:000|15:30
2023-01-06 14:01:00.461 Status: LUA: 5340.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:15:35 Line:000|15:35
2023-01-06 14:01:00.461 Status: LUA: 5640.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:15:40 Line:000|15:40
2023-01-06 14:01:00.461 Status: LUA: 5940.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:15:45 Line:000|15:45
2023-01-06 14:01:00.461 Status: LUA: 6240.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:15:50 Line:000|15:50
2023-01-06 14:01:00.461 Status: LUA: 6540.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:15:55 Line:000|15:55
2023-01-06 14:01:00.461 Status: LUA: 6840.0
2023-01-06 14:01:00.461 Status: LUA: Rain in timerange: 0 linetime:16:00 Line:000|16:00
2023-01-06 14:01:00.461 Status: LUA: 7140.0
2023-01-06 14:01:00.488 Status: EventSystem: Script event triggered: RainNieuw
2023-01-06 14:01:00.495 Status: LUA: BuienRadar module
2023-01-06 14:01:00.539 Status: EventSystem: Script event triggered: Regentest
2023-01-06 14:01:00.597 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:01.557 Ikea: Ikea Level: 191
2023-01-06 14:01:01.558 Ikea: Finnished command
2023-01-06 14:01:01.558 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:01.558 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:01.558 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:01.558 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:01.558 Ikea: onCommand called for Unit 8: Parameter 'Set Level', Level: 20
2023-01-06 14:01:01.558 Ikea: Command Level: 20
2023-01-06 14:01:02.287 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:02.605 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:02.235 Debug: MQTT1: Topic: domoticz/in, Message: {"idx":13325,"nvalue":0,"svalue":"0"}
2023-01-06 14:01:03.581 Ikea: Ikea Level: 191
2023-01-06 14:01:03.581 Ikea: Finnished command
2023-01-06 14:01:03.581 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:03.581 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:03.581 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:03.581 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:03.581 Ikea: onCommand called for Unit 34: Parameter 'Set Level', Level: 20
2023-01-06 14:01:03.581 Ikea: Command Level: 20
2023-01-06 14:01:04.745 Domoticz: Temp + Humidity (Temp Zolder)
2023-01-06 14:01:05.592 Led trappenkast: Heartbeating...
2023-01-06 14:01:05.592 Led trappenkast: MqttClient::Ping
2023-01-06 14:01:05.593 Ikea: Ikea Level: 241
2023-01-06 14:01:05.593 Ikea: Finnished command
2023-01-06 14:01:05.593 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:05.593 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:05.593 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:05.593 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:05.593 Ikea: onCommand called for Unit 37: Parameter 'Set Level', Level: 20
2023-01-06 14:01:05.594 Ikea: Command Level: 20
2023-01-06 14:01:05.603 Ikea: Ikea Level: 102
2023-01-06 14:01:05.603 Ikea: Finnished command
2023-01-06 14:01:05.603 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:05.603 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:05.603 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:05.603 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:05.603 Ikea: onCommand called for Unit 29: Parameter 'Set Level', Level: 100
2023-01-06 14:01:05.603 Ikea: Command Level: 100
2023-01-06 14:01:05.616 (Lamp Achter Links) Updating device from 0:'100' to have values 2:'100'.
2023-01-06 14:01:05.634 Ikea: Ikea Level: 254
2023-01-06 14:01:05.634 Ikea: Finnished command
2023-01-06 14:01:05.634 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:05.634 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:05.634 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:05.634 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:05.634 Ikea: onCommand called for Unit 25: Parameter 'Set Level', Level: 100
2023-01-06 14:01:05.634 Ikea: Command Level: 100
2023-01-06 14:01:05.799 P1 smartmeter: P1 Smart Meter (Stroom)
2023-01-06 14:01:05.806 P1 smartmeter: Usage (Usage L1)
2023-01-06 14:01:05.814 P1 smartmeter: Usage (StroomTerug)
2023-01-06 14:01:05.850 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:06.303 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:07.645 Led Douche: Heartbeating...
2023-01-06 14:01:07.645 Led Douche: MqttClient::Ping
2023-01-06 14:01:07.646 (Lamp Achter Rechts) Updating device from 0:'100' to have values 2:'100'.
2023-01-06 14:01:07.646 Led Gang Boven: Heartbeating...
2023-01-06 14:01:07.646 Led Gang Boven: MqttClient::Ping
2023-01-06 14:01:07.661 Ikea: Ikea Level: 254
2023-01-06 14:01:07.661 Ikea: Finnished command
2023-01-06 14:01:07.661 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:07.661 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:07.661 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:07.661 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:07.661 Ikea: onCommand called for Unit 27: Parameter 'Set Level', Level: 75
2023-01-06 14:01:07.661 Ikea: Command Level: 75
2023-01-06 14:01:07.673 (Lamp Voor Links) Updating device from 0:'75' to have values 2:'75'.
2023-01-06 14:01:07.691 Ikea: Ikea Level: 191
2023-01-06 14:01:07.692 Ikea: Finnished command
2023-01-06 14:01:07.692 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:07.692 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:07.692 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:07.692 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:07.692 Ikea: onCommand called for Unit 35: Parameter 'Set Level', Level: 75
2023-01-06 14:01:07.692 Ikea: Command Level: 75
2023-01-06 14:01:09.702 Led Keuken: Heartbeating...
2023-01-06 14:01:09.702 Led Keuken: MqttClient::Ping
2023-01-06 14:01:09.703 (Lamp Voor Rechts) Updating device from 0:'75' to have values 2:'75'.
2023-01-06 14:01:09.704 Led Keukenkast: Heartbeating...
2023-01-06 14:01:09.704 Led Keukenkast: MqttClient::Ping
2023-01-06 14:01:09.720 Ikea: Ikea Level: 191
2023-01-06 14:01:09.720 Ikea: Finnished command
2023-01-06 14:01:09.720 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:09.720 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:09.720 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:09.720 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:09.720 Ikea: onCommand called for Unit 7: Parameter 'Set Level', Level: 75
2023-01-06 14:01:09.720 Ikea: Command Level: 75
2023-01-06 14:01:09.731 (Lamp Roze) Updating device from 0:'75' to have values 2:'75'.
2023-01-06 14:01:09.744 Ikea: Ikea Level: 191
2023-01-06 14:01:09.744 Ikea: Finnished command
2023-01-06 14:01:09.744 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:09.744 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:09.744 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:09.744 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:09.744 Ikea: onCommand called for Unit 31: Parameter 'Set Level', Level: 95
2023-01-06 14:01:09.744 Ikea: Command Level: 95
2023-01-06 14:01:09.758 (Lamp Bank) Updating device from 0:'95' to have values 2:'95'.
2023-01-06 14:01:09.778 Ikea: Ikea Level: 241
2023-01-06 14:01:09.778 Ikea: Finnished command
2023-01-06 14:01:09.778 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:09.778 Ikea: Processing 'onCommandCallback' message
2023-01-06 14:01:09.778 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:09.779 Ikea: Calling message handler 'onCommand' on 'module' type object.
2023-01-06 14:01:09.779 Ikea: onCommand called for Unit 36: Parameter 'Set Level', Level: 40
2023-01-06 14:01:09.779 Ikea: Command Level: 40
2023-01-06 14:01:09.809 Debug: MQTT1: Topic: domoticz/in, Message: {"idx":7344,"nvalue":0,"svalue":"0;388000.0","Battery":88,"RSSI":10}
2023-01-06 14:01:11.790 (Lamp Eetkamertafel) Updating device from 0:'40' to have values 2:'40'.
2023-01-06 14:01:11.803 Ikea: Ikea Level: 102
2023-01-06 14:01:11.803 Ikea: Finnished command
2023-01-06 14:01:11.803 Ikea: Acquiring GIL for 'onCommandCallback'
2023-01-06 14:01:11.853 Ikea: Pushing 'onHeartbeatCallback' on to queue
2023-01-06 14:01:11.903 Ikea: Processing 'onHeartbeatCallback' message
2023-01-06 14:01:11.904 Ikea: Acquiring GIL for 'onHeartbeatCallback'
2023-01-06 14:01:11.904 Ikea: Calling message handler 'onHeartbeat' on 'module' type object.
2023-01-06 14:01:11.904 Ikea: Acquiring GIL for 'onHeartbeatCallback'
2023-01-06 14:01:12.228 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:12.487 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:12.166 Debug: MQTT1: Topic: domoticz/in, Message: {"idx":13325,"nvalue":0,"svalue":"0"}
2023-01-06 14:01:15.063 Led trappenkast: Heartbeating...
2023-01-06 14:01:15.063 Led trappenkast: MqttClient::Ping
2023-01-06 14:01:15.824 P1 smartmeter: P1 Smart Meter (Stroom)
2023-01-06 14:01:15.832 P1 smartmeter: Usage (Usage L1)
2023-01-06 14:01:15.840 P1 smartmeter: Usage (StroomTerug)
2023-01-06 14:01:15.874 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:16.065 Led Gang Boven: Heartbeating...
2023-01-06 14:01:16.065 Led Gang Boven: MqttClient::Ping
2023-01-06 14:01:16.344 Motherboard: General/Percentage (Memory Usage)
2023-01-06 14:01:16.354 Motherboard: General/Custom Sensor (Process Usage)
2023-01-06 14:01:16.305 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:17.067 Led Douche: Heartbeating...
2023-01-06 14:01:17.067 Led Douche: MqttClient::Ping
2023-01-06 14:01:17.540 Zonnepanelen: General/kWh (Zonnepanelen)
2023-01-06 14:01:17.590 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2023-01-06 14:01:17.888 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
© 2012-2023 Domoticz | WWW: Domoticz.com
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by waltervl »

I do not see anything strange here...
Only for a scene you can also use the normal Domoticz scene function as you should be able to change the color of individual devices too...
Perhaps it speeds things up...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: [REQUEST] Ikea Trådfri Gateway (smart lights hub controller) plugin?

Post by Vomera »

waltervl wrote: Friday 06 January 2023 14:19 I do not see anything strange here...
Only for a scene you can also use the normal Domoticz scene function as you should be able to change the color of individual devices too...
Perhaps it speeds things up...
Yeah thats the thing, it is not a strange behavour, but slow, to activate all lights it takes more then 15 second.
I try that with the scene of domoticz, but the candle light function cannot been activated with the plugin. That is also mentioned in the plugin on github

Code: Select all

A note about colors
When using a CWS (color) bulb, a CWS color selector device is created. Due to a known limitation when setting levels in Domoticz scenes, it's only possible to specify the first half of the available colors in a scene. Selecting a color from the last half, gives the color for level 100 (lime) when the scene is activated. A workaround for this is planned, but currently not implemented.
Maybe thinking to get a zigbee stick for domoticz and connect directly the lights to domticz, or maybe get the buttons for ikea to connect to the hub. Because i use now the buttons from xiaomi to activate the lights scenes.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest