Philips TV turning AVR off randomly

Hey all.

I successfully added my pioneer AVR (VSX-930 K) to Hass and my Philip’s TV.

But after about 11/12 minutes of playing something on the TV it stops by itself. It seems to be fine when it is on, but not being used (no sound sent to it). The TV stays on though.

I first tried removing both components to be sure that the issue came from HAss, and yeah: no problem.

I then tried removing the pionner component (as I thought it was the offender) and keeping the philips one from my configuration, but it didn’t change.

And then I put the pioneer back in and removed the philips one: and no more issue.

I turned on the logger and this is what I get:

2017-12-29 20:44:16 DEBUG (SyncWorker_3) [haphilipsjs] Connfail: 5
2017-12-29 20:44:16 DEBUG (SyncWorker_3) [haphilipsjs] Connfail: 4
2017-12-29 20:44:16 DEBUG (SyncWorker_3) [haphilipsjs] Connfail: 3
2017-12-29 20:44:16 DEBUG (SyncWorker_3) [haphilipsjs] Connfail: 2
2017-12-29 20:44:16 DEBUG (SyncWorker_3) [haphilipsjs] Connfail: 1
2017-12-29 20:44:21 INFO (MainThread) [homeassistant.components.http] Serving /api/websocket to 127.0.0.1 (auth: True)
_2017-12-29 20:44:21 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 140073776242928: Connected _
_2017-12-29 20:44:21 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 140073776242928: Connection closed by client _
_2017-12-29 20:44:21 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 140073776242928: Closed connection _
2017-12-29 20:44:21 DEBUG (SyncWorker_3) [haphilipsjs] Exception: HTTPConnectionPool(host=‘192.168.1.24’, port=1925): Max retries exceeded with url: /1/channels (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6577ace7b8>, ‘Connection to 192.168.1.24 timed out. (connect timeout=5.0)’))

The ip adress is my TV’s one.

2017-12-29 20:44:24 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=media_player.ampli, old_state=<state media_player.ampli=on; source_list=[‘PHONO’, ‘CD’, ‘TUNER’, ‘DVD’, ‘TV’, ‘SAT/CBL’, ‘MULTI CH IN’, ‘USB-DAC’, ‘DVR/BDR’, ‘iPod/USB’, ‘HDMI 1’, ‘HDMI 2’, ‘HDMI 3’, ‘HDMI 4’, ‘HDMI 5’, ‘HDMI 6/MHL’, ‘BD’, ‘BT AUDIO’, ‘HDMI 7’, ‘INTERNET RADIO’, ‘PANDORA’, ‘MEDIA SERVER’, ‘FAVORITES’, ‘Spotify’], friendly_name=Ampli, supported_features=18829 @ 2017-12-29T20:32:41.782820+01:00>, new_state=<state media_player.ampli=off; friendly_name=Ampli, supported_features=18829 @ 2017-12-29T20:44:24.234028+01:00>>

2017-12-29 20:44:24 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 140073777960832: Sending {‘id’: 2, ‘type’: ‘event’, ‘event’: {‘event_type’: ‘state_changed’, ‘data’: {‘entity_id’: ‘media_player.ampli’, ‘old_state’: <state media_player.ampli=on; source_list=[‘PHONO’, ‘CD’, ‘TUNER’, ‘DVD’, ‘TV’, ‘SAT/CBL’, ‘MULTI CH IN’, ‘USB-DAC’, ‘DVR/BDR’, ‘iPod/USB’, ‘HDMI 1’, ‘HDMI 2’, ‘HDMI 3’, ‘HDMI 4’, ‘HDMI 5’, ‘HDMI 6/MHL’, ‘BD’, ‘BT AUDIO’, ‘HDMI 7’, ‘INTERNET RADIO’, ‘PANDORA’, ‘MEDIA SERVER’, ‘FAVORITES’, ‘Spotify’], friendly_name=Ampli, supported_features=18829 @ 2017-12-29T20:32:41.782820+01:00>, ‘new_state’: <state media_player.ampli=off; friendly_name=Ampli, supported_features=18829 @ 2017-12-29T20:44:24.234028+01:00>}, ‘origin’: ‘LOCAL’, ‘time_fired’: datetime.datetime(2017, 12, 29, 19, 44, 24, 234067, tzinfo=)}}

My guess is that the philips component somehow trigger the HDMI-CEC turning off the AVR without turning off the TV itself.

Does anyone has any idea how I could prevent my TV from turning off my AVR ?