Thank you for your quick reply
I have added the requested code adjustment and the messages have cleared so I think we are getting closer but I still don’t see the state change on the cover arrow and the state is unknown
![image](https://community.home-assistant.io/images/transparent.png)
![image](https://community.home-assistant.io/images/transparent.png)
![image](https://community.home-assistant.io/images/transparent.png)
I can see in the log the state changing but it is not reporting
When the door is open
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.2_garage_door, old_state=<state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T10:29:48.317591+11:00>, new_state=<state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:11:01.006140+11:00>>
When the door is closed
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.2_garage_door, old_state=<state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:24:41.207344+11:00>, new_state=<state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:26:04.562516+11:00>>
Log excerpt of when the door is going from open to close
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.2_garage_door, old_state=<state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T10:29:48.317591+11:00>, new_state=<state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:11:01.006140+11:00>>
2019-03-29 11:11:01 INFO (MainThread) [homeassistant.components.http.view] Serving /api/konnected/device/bcddc282716d to 192.168.11.21 (auth: True)
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.2_garage_door, old_state=<state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T10:29:48.317591+11:00>, new_state=<state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:11:01.006140+11:00>>
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.2_garage_door_state, old_state=<state sensor.2_garage_door_state=Open; friendly_name=2_garage_door_state, entity_picture=/local/garage-open-blue.png @ 2019-03-29T10:29:48.321485+11:00>, new_state=<state sensor.2_garage_door_state=Closed; friendly_name=2_garage_door_state, entity_picture=/local/garage.png @ 2019-03-29T11:11:01.011786+11:00>>
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event automation_triggered[L]: name=MQTTGarageDoor2, entity_id=automation.mqttgaragedoor2>
2019-03-29 11:11:01 INFO (MainThread) [homeassistant.components.automation] Executing MQTTGarageDoor2
2019-03-29 11:11:01 INFO (MainThread) [homeassistant.helpers.script] Script MQTTGarageDoor2: Running script
2019-03-29 11:11:01 INFO (MainThread) [homeassistant.helpers.script] Script MQTTGarageDoor2: Executing step call service
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=mqtt, service=publish, service_data=topic=home/garagedoor2, payload=0>
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013356957480] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'binary_sensor.2_garage_door', 'old_state': <state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T10:29:48.317591+11:00>, 'new_state': <state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:11:01.006140+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 11, 1, 6197, tzinfo=<UTC>), 'context': {'id': '70bb3508bdd84a589335596ac381cbd9', 'user_id': None}}}
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013333860592] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'binary_sensor.2_garage_door', 'old_state': <state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T10:29:48.317591+11:00>, 'new_state': <state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:11:01.006140+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 11, 1, 6197, tzinfo=<UTC>), 'context': {'id': '70bb3508bdd84a589335596ac381cbd9', 'user_id': None}}}
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on home/garagedoor2: 0
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013356957480] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.2_garage_door_state', 'old_state': <state sensor.2_garage_door_state=Open; friendly_name=2_garage_door_state, entity_picture=/local/garage-open-blue.png @ 2019-03-29T10:29:48.321485+11:00>, 'new_state': <state sensor.2_garage_door_state=Closed; friendly_name=2_garage_door_state, entity_picture=/local/garage.png @ 2019-03-29T11:11:01.011786+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 11, 1, 11844, tzinfo=<UTC>), 'context': {'id': 'fe512433b18046d6a112c3f751a32a94', 'user_id': None}}}
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013333860592] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.2_garage_door_state', 'old_state': <state sensor.2_garage_door_state=Open; friendly_name=2_garage_door_state, entity_picture=/local/garage-open-blue.png @ 2019-03-29T10:29:48.321485+11:00>, 'new_state': <state sensor.2_garage_door_state=Closed; friendly_name=2_garage_door_state, entity_picture=/local/garage.png @ 2019-03-29T11:11:01.011786+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 11, 1, 11844, tzinfo=<UTC>), 'context': {'id': 'fe512433b18046d6a112c3f751a32a94', 'user_id': None}}}
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on home/garagedoor2: b'0'
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.mqttgaragedoor2, old_state=<state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T10:29:48.357522+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>, new_state=<state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:11:01.047682+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>>
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013356957480] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'automation.mqttgaragedoor2', 'old_state': <state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T10:29:48.357522+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>, 'new_state': <state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:11:01.047682+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 11, 1, 48079, tzinfo=<UTC>), 'context': {'id': '70bb3508bdd84a589335596ac381cbd9', 'user_id': None}}}
2019-03-29 11:11:01 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013333860592] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'automation.mqttgaragedoor2', 'old_state': <state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T10:29:48.357522+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>, 'new_state': <state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:11:01.047682+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 11, 1, 48079, tzinfo=<UTC>), 'context': {'id': '70bb3508bdd84a589335596ac381cbd9', 'user_id': None}}}
Log excerpt of when the door is going from close to open
2019-03-29 11:26:02 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013334420448] Received {'type': 'call_service', 'domain': 'cover', 'service': 'open_cover', 'service_data': {'entity_id': 'cover.pergolarollerdoor'}, 'id': 19}
2019-03-29 11:26:02 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=cover, service=open_cover, service_data=entity_id=cover.pergolarollerdoor>
2019-03-29 11:26:02 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=mqtt, service=publish, service_data=topic=cmnd/rollerdoor2/POWER, qos=0, retain=False, payload=1>
2019-03-29 11:26:02 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on cmnd/rollerdoor2/POWER: 1
2019-03-29 11:26:02 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013334420448] Sending {'id': 19, 'type': 'result', 'success': True, 'result': None}
2019-03-29 11:26:04 INFO (MainThread) [homeassistant.components.http.view] Serving /api/konnected/device/bcddc282716d to 192.168.11.21 (auth: True)
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.2_garage_door, old_state=<state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:24:41.207344+11:00>, new_state=<state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:26:04.562516+11:00>>
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.2_garage_door_state, old_state=<state sensor.2_garage_door_state=Closed; friendly_name=2_garage_door_state, entity_picture=/local/garage.png @ 2019-03-29T11:24:41.210046+11:00>, new_state=<state sensor.2_garage_door_state=Open; friendly_name=2_garage_door_state, entity_picture=/local/garage-open-blue.png @ 2019-03-29T11:26:04.572297+11:00>>
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event automation_triggered[L]: name=MQTTGarageDoor2, entity_id=automation.mqttgaragedoor2>
2019-03-29 11:26:04 INFO (MainThread) [homeassistant.components.automation] Executing MQTTGarageDoor2
2019-03-29 11:26:04 INFO (MainThread) [homeassistant.helpers.script] Script MQTTGarageDoor2: Running script
2019-03-29 11:26:04 INFO (MainThread) [homeassistant.helpers.script] Script MQTTGarageDoor2: Executing step call service
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=mqtt, service=publish, service_data=topic=home/garagedoor2, payload=0>
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013333860592] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'binary_sensor.2_garage_door', 'old_state': <state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:24:41.207344+11:00>, 'new_state': <state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:26:04.562516+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 26, 4, 562571, tzinfo=<UTC>), 'context': {'id': '2df0dec855d6459e8eca1a10a48bb4c9', 'user_id': None}}}
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013334420448] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'binary_sensor.2_garage_door', 'old_state': <state binary_sensor.2_garage_door=off; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:24:41.207344+11:00>, 'new_state': <state binary_sensor.2_garage_door=on; friendly_name=2 Garage Door, device_class=door @ 2019-03-29T11:26:04.562516+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 26, 4, 562571, tzinfo=<UTC>), 'context': {'id': '2df0dec855d6459e8eca1a10a48bb4c9', 'user_id': None}}}
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.components.mqtt] Transmitting message on home/garagedoor2: 0
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013333860592] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.2_garage_door_state', 'old_state': <state sensor.2_garage_door_state=Closed; friendly_name=2_garage_door_state, entity_picture=/local/garage.png @ 2019-03-29T11:24:41.210046+11:00>, 'new_state': <state sensor.2_garage_door_state=Open; friendly_name=2_garage_door_state, entity_picture=/local/garage-open-blue.png @ 2019-03-29T11:26:04.572297+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 26, 4, 572369, tzinfo=<UTC>), 'context': {'id': '3b69bdbb9f04473d9174f25fb46f41e0', 'user_id': None}}}
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013334420448] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.2_garage_door_state', 'old_state': <state sensor.2_garage_door_state=Closed; friendly_name=2_garage_door_state, entity_picture=/local/garage.png @ 2019-03-29T11:24:41.210046+11:00>, 'new_state': <state sensor.2_garage_door_state=Open; friendly_name=2_garage_door_state, entity_picture=/local/garage-open-blue.png @ 2019-03-29T11:26:04.572297+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 26, 4, 572369, tzinfo=<UTC>), 'context': {'id': '3b69bdbb9f04473d9174f25fb46f41e0', 'user_id': None}}}
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on home/garagedoor2: b'0'
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.mqttgaragedoor2, old_state=<state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:24:41.248256+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>, new_state=<state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:26:04.622673+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>>
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013333860592] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'automation.mqttgaragedoor2', 'old_state': <state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:24:41.248256+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>, 'new_state': <state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:26:04.622673+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 26, 4, 623091, tzinfo=<UTC>), 'context': {'id': '2df0dec855d6459e8eca1a10a48bb4c9', 'user_id': None}}}
2019-03-29 11:26:04 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140013334420448] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'automation.mqttgaragedoor2', 'old_state': <state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:24:41.248256+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>, 'new_state': <state automation.mqttgaragedoor2=on; last_triggered=2019-03-29T11:26:04.622673+11:00, friendly_name=MQTTGarageDoor2 @ 2019-03-29T10:26:17.165458+11:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 3, 29, 0, 26, 4, 623091, tzinfo=<UTC>), 'context': {'id': '2df0dec855d6459e8eca1a10a48bb4c9', 'user_id': None}}}