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
Questions about telldus-core
Moderator: Telldus
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: Questions about telldus-core
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
Software
Telldus Technologies
Re: Questions about telldus-core
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
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
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: Questions about telldus-core
From http://developer.telldus.com/doxygen/ under "Callbacks" -> "DeviceEvent":
This value is currently only implemented for dimmed devices.const char *data - For some methods this contains data. For TELLSTICK_DIM this hold the current value.
Micke Prag
Software
Telldus Technologies
Software
Telldus Technologies