Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Tradfri) No transport, write directive to 'Main' ignored. #62

Closed
azvero opened this issue Jan 13, 2019 · 4 comments
Closed

(Tradfri) No transport, write directive to 'Main' ignored. #62

azvero opened this issue Jan 13, 2019 · 4 comments

Comments

@azvero
Copy link

azvero commented Jan 13, 2019

Several times a day my Domoticz instance loses its ability to talk to the TRÅDFRI gateway.

In the Domoticz log I see lots of the following:

2019-01-13 09:00:09.696 Error: (Tradfri) No transport, write directive to 'Main' ignored.
2019-01-13 09:05:03.951 Error: (Tradfri) No transport, write directive to 'Main' ignored.
2019-01-13 09:14:13.215 Error: (Tradfri) No transport, write directive to 'Main' ignored.
2019-01-13 09:20:03.149 Error: (Tradfri) No transport, write directive to 'Main' ignored.

often accompanied by

2019-01-13 11:19:28.845 (Tradfri) Connected successfully to: 127.0.0.1
2019-01-13 11:19:39.095 (Tradfri) Device has disconnected
2019-01-13 11:19:53.979 (Tradfri) Connected successfully to: 127.0.0.1
2019-01-13 11:20:04.063 (Tradfri) Device has disconnected
2019-01-13 11:20:18.853 (Tradfri) Connected successfully to: 127.0.0.1
2019-01-13 11:20:29.081 (Tradfri) Device has disconnected

and then more of "(Tradfri) No transport, write directive to 'Main' ignored."

When this happens, I found that the only way to recover is by rebooting the TRÅDFRI gateway.

On its own (i.e. before integration into Domoticz) the gateway was very stable, running for weeks on end controlling the lights on a schedule etc.

Domoticz Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 15:24:51
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
(Tradfri) Initialized version 1.1.0, author 'moroen'

@moroen
Copy link
Owner

moroen commented Jan 15, 2019

Are you polling for changes? And if so, what are the polling-interval?

Experience shows that polling the gateway will make it freeze, and freezing seems more frequent when using shorter intervals. If you don't really need to observe changes, I would recommend disabling "observe changes".

Using real resource observations (i.e. not polling for changes) are downright impossible to implement using the current api (coap-client). I'm working on a aiocoap version of the plugin that hopefully will be more stable, but it's still some way off...

Take a look at issue #59

@basrieter
Copy link
Contributor

Polling at 300 seconds seems to be fine for me and does not freeze. Shorter will.

@azvero
Copy link
Author

azvero commented Jan 15, 2019

Thanks for the suggestion (and for the great plugin).

I was using the default polling interval, which I have now increased to 300s.

@moroen moroen closed this as completed Jan 16, 2019
@MHagreis
Copy link

MHagreis commented May 4, 2019

same problem here but can't fix it and the 300s dusn't help me rebooted all systems multiple times
and changed to an interval of 300s but still not posible to recover

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants