Questions about telldus-core

Moderator: Telldus

Post Reply
bibi21000
Posts: 8
Joined: Fri Mar 17, 2023 9:45 am

Questions about telldus-core

Post by bibi21000 »

Hello,
I'm trying to developp a plugin to manage my tellstick duo using the domogik project : http://www.domogik.org/.
It's written in python.

In the web interface, I use the tdTurnOn or tdTurnOff function of the telldus-core to manage swith and dimmer.
I've defined a callback function to catch the deviceEvent (ie buttons, doors detectors, night detectors, ...)
But this function is also called when I use the web Interface.
Is there a way to deactivate this feature.
I only want to catch RF event, those done by a physical button or detector. State and other stuff are directly managed by domogik.
TIA
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Questions about telldus-core

Post by micke.prag »

That is unfortunately not possible. Doesn't domogit want to update the status if some other application uses the TellStick?
Micke Prag
Software
Telldus Technologies
johe71
Posts: 23
Joined: Fri Mar 17, 2023 9:45 am

Re: Questions about telldus-core

Post by johe71 »

not sure if it's always true... but from what i have seen in my experiments with deviceEvent
typedef void (WINAPI *TDDeviceEvent)(int deviceId, int method, const char *data, int callbackId, void *context);

is that when i change something with TelldusCenter or tdtool data is 0,
when i press a remote or trigger my movement sensor data is empty

i have not tried with so many devices or remotes that i can say that it's always true... so perhaps Micke or someone else from Telldus can tell us what the const char *data really contains :)
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Questions about telldus-core

Post by micke.prag »

From http://developer.telldus.com/doxygen/ under "Callbacks" -> "DeviceEvent":
const char *data - For some methods this contains data. For TELLSTICK_DIM this hold the current value.
This value is currently only implemented for dimmed devices.
Micke Prag
Software
Telldus Technologies
Post Reply