Strange Alexa Nabu Casa issue

My entertainment center consists of 3 items. LG TV, Dennon Receiver and Direct TV Genie.

  - platform: webostv
    host: 192.168.1.55
    name: "LG TV"
    #other settings
    turn_on_action:
      service: wake_on_lan.send_magic_packet
      data:
        mac: !secret lg_mac
  - platform: denonavr
    host: 192.168.1.106
    name: Receiver
    show_all_sources: true
    scan_interval: 1
  - platform: directv
    host: 192.168.1.165
    port: 8080
    name: Sat
    device: 0

My problem recently started when i added some amazon alexas into the mix using Nabu Casa . The problem i am having is that in certain circumstances if i tell alexa to turn the tv off (which runs a routine to turn all 3 items off) the receiver will turn off and then back on right away.

If i use
Siri on/Siri off: works
Siri on/Alexa off: receiver turns back on
Alexa on/siri off: works
Alexa on/alexa off: receiver turns back on

Once the receiver turns back on I cannot use HA control panel

Here are my logs of me turning the tv off and then the receiver turning back on

My first thought would be an automation but that should be an issue no matter which system is used to turn the things on and off.

Thanks

2019-07-26 12:41:56 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/hassio_ingress/N6gar1WVdjtbSwRQuiq5avX_fcGZMb4uJwQXxJobUGM/api/listdir to 192.168.1.1 (auth: False)
2019-07-26 12:42:00 DEBUG (SyncWorker_1) [homeassistant.components.directv.media_player] media_player.sat: Updating status
2019-07-26 12:42:02 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1790071312] Received {'type': 'call_service', 'domain': 'media_player', 'service': 'toggle', 'service_data': {'entity_id': 'media_player.receiver'}, 'id': 21}
2019-07-26 12:42:02 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=media_player, service=toggle, service_data=entity_id=media_player.receiver>
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:39:52.152357-04:00>, new_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>>
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>
2019-07-26 12:42:03 DEBUG (SyncWorker_4) [homeassistant.components.homekit.type_media_players] media_player.receiver: Set current state for "on_off" to False
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1859659824] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:39:52.152357-04:00>, new_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>>}
2019-07-26 12:42:03 DEBUG (SyncWorker_4) [pyhap.characteristic] set_value: On to False
2019-07-26 12:42:03 DEBUG (Thread-3) [pyhap.accessory_driver] Send event: topic(1551042672.9), data(b'{"characteristics": [{"aid": 1551042672, "iid": 9, "value": false}]}')
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1781115952] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:39:52.152357-04:00>, new_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>>}
2019-07-26 12:42:03 DEBUG (Thread-3) [pyhap.accessory_driver] Sending event to client: ('192.168.1.201', 49882)
2019-07-26 12:42:03 DEBUG (Thread-3) [pyhap.accessory_driver] Sending event to client: ('192.168.1.107', 49482)
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1785956144] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:39:52.152357-04:00>, new_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>>}
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1790071312] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:39:52.152357-04:00>, new_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>>}
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>, new_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.899866-04:00>>
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.homekit.accessories] New_state: <state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.899866-04:00>
2019-07-26 12:42:03 DEBUG (SyncWorker_17) [homeassistant.components.homekit.type_media_players] media_player.receiver: Set current state for "on_off" to True
2019-07-26 12:42:03 DEBUG (SyncWorker_17) [pyhap.characteristic] set_value: On to True
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event automation_triggered[L]: name=Source Automation, entity_id=automation.source_automation>
2019-07-26 12:42:03 INFO (MainThread) [homeassistant.components.automation] Executing Source Automation
2019-07-26 12:42:03 DEBUG (Thread-3) [pyhap.accessory_driver] Send event: topic(1551042672.9), data(b'{"characteristics": [{"aid": 1551042672, "iid": 9, "value": true}]}')
2019-07-26 12:42:03 INFO (MainThread) [homeassistant.helpers.script] Script Source Automation: Running script
2019-07-26 12:42:03 DEBUG (Thread-3) [pyhap.accessory_driver] Sending event to client: ('192.168.1.201', 49882)
2019-07-26 12:42:03 INFO (MainThread) [homeassistant.helpers.script] Script Source Automation: Executing step call service
2019-07-26 12:42:03 DEBUG (Thread-3) [pyhap.accessory_driver] Sending event to client: ('192.168.1.107', 49482)
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=media_player, service=select_source, service_data=entity_id=media_player.receiver, source=SAT>
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1859659824] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>, new_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.899866-04:00>>}
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1781115952] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>, new_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.899866-04:00>>}
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1785956144] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>, new_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.899866-04:00>>}
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1790071312] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=media_player.receiver, old_state=<state media_player.receiver=off; sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.808846-04:00>, new_state=<state media_player.receiver=on; volume_level=0.49, is_volume_muted=False, media_content_type=channel, media_title=SAT, source=SAT, source_list=['AUX1', 'AUX2', 'AppleTV', 'Blu-ray', 'Bluetooth', 'CD', 'DVD', 'Favorites', 'Internet Radio', 'Media Server', 'Online Music', 'PS4', 'Pandora', 'SAT', 'SiriusXM', 'Spotify', 'TV Audio', 'Tuner', 'iPod/USB'], sound_mode=DOLBY DIGITAL, sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'VIRTUAL', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], sound_mode_raw=Dolby Surround, friendly_name=Receiver, supported_features=69004 @ 2019-07-26T12:42:03.899866-04:00>>}
2019-07-26 12:42:03 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1790071312] Sending {'id': 21, 'type': 'result', 'success': True, 'result': None}
2019-07-26 12:42:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.source_automation, old_state=<state automation.source_automation=on; last_triggered=2019-07-26T12:39:52.361373-04:00, friendly_name=Source Automation @ 2019-07-26T12:17:49.875277-04:00>, new_state=<state automation.source_automation=on; last_triggered=2019-07-26T12:42:04.083950-04:00, friendly_name=Source Automation @ 2019-07-26T12:17:49.875277-04:00>>
2019-07-26 12:42:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1859659824] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=automation.source_automation, old_state=<state automation.source_automation=on; last_triggered=2019-07-26T12:39:52.361373-04:00, friendly_name=Source Automation @ 2019-07-26T12:17:49.875277-04:00>, new_state=<state automation.source_automation=on; last_triggered=2019-07-26T12:42:04.083950-04:00, friendly_name=Source Automation @ 2019-07-26T12:17:49.875277-04:00>>}
2019-07-26 12:42:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1781115952] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=automation.source_automation, old_state=<state automation.source_automation=on; last_triggered=2019-07-26T12:39:52.361373-04:00, friendly_name=Source Automation @ 2019-07-26T12:17:49.875277-04:00>, new_state=<state automation.source_automation=on; last_triggered=2019-07-26T12:42:04.083950-04:00, friendly_name=Source Automation @ 2019-07-26T12:17:49.875277-04:00>>}
2019-07-26 12:42:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1785956144] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=automation.source_automation, old_state=<state automation.source_automation=on; last_triggered=2019-07-26T12:39:52.361373-04:00, friendly_name=Source Automation @ 2019-07-26T12:17:49.875277-04:00>, new_state=<state automation.source_automation=on; last_triggered=2019-07-26T12:42:04.083950-04:00, friendly_name=Source Automation @ 2019-07-26T12:17:49.875277-04:00>>}