2020-11-25 23:43:16 DEBUG (MainThread) [httpx._client] HTTP Request: GET http://192.168.1.65/api/v1/production/inverters "HTTP/1.1 200 OK"
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Retrieved data from API: {'production': 15, 'consumption': 500, 'daily_production': 6468, 'daily_consumption': 16893, 'seven_days_production': 45047, 'seven_days_consumption': 99369, 'lifetime_production': 57935, 'lifetime_consumption': 119910, 'inverters_production': {'122022009125': [0, '2020-11-25 16:50:48'], '122022007165': [-1, '2020-11-25 16:41:41'], '122022010765': [0, '2020-11-25 16:49:43'], '122022007141': [-1, '2020-11-25 16:49:50'], '122022003320': [-1, '2020-11-25 16:41:45'], '122022009897': [0, '2020-11-25 16:41:54'], '122022008144': [-1, '2020-11-25 16:50:36'], '122022009149': [0, '2020-11-25 16:51:09'], '122022009197': [0, '2020-11-25 16:50:37'], '122022009871': [0, '2020-11-25 16:41:56'], '122022009122': [0, '2020-11-25 16:50:02'], '122022009124': [-1, '2020-11-25 16:50:45'], '122022009643': [0, '2020-11-25 16:36:39'], '122022009395': [0, '2020-11-25 16:41:45'], '122022009244': [-1, '2020-11-25 16:50:49'], '122022009799': [-1, '2020-11-25 16:50:58'], '122022009268': [0, '2020-11-25 16:41:49']}}
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Returning API data.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Finished fetching sensor data in 5.707 seconds
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding sensor: Envoy-S meteredEnvoy Current Energy Production) - Type: production.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding sensor: Envoy-S meteredEnvoy Today's Energy Production) - Type: daily_production.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding sensor: Envoy-S meteredEnvoy Last Seven Days Energy Production) - Type: seven_days_production.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding sensor: Envoy-S meteredEnvoy Lifetime Energy Production) - Type: lifetime_production.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding sensor: Envoy-S meteredEnvoy Current Energy Consumption) - Type: consumption.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding sensor: Envoy-S meteredEnvoy Today's Energy Consumption) - Type: daily_consumption.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding sensor: Envoy-S meteredEnvoy Last Seven Days Energy Consumption) - Type: seven_days_consumption.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding sensor: Envoy-S meteredEnvoy Lifetime Energy Consumption) - Type: lifetime_consumption.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Inverter data: {'122022009125': [0, '2020-11-25 16:50:48'], '122022007165': [-1, '2020-11-25 16:41:41'], '122022010765': [0, '2020-11-25 16:49:43'], '122022007141': [-1, '2020-11-25 16:49:50'], '122022003320': [-1, '2020-11-25 16:41:45'], '122022009897': [0, '2020-11-25 16:41:54'], '122022008144': [-1, '2020-11-25 16:50:36'], '122022009149': [0, '2020-11-25 16:51:09'], '122022009197': [0, '2020-11-25 16:50:37'], '122022009871': [0, '2020-11-25 16:41:56'], '122022009122': [0, '2020-11-25 16:50:02'], '122022009124': [-1, '2020-11-25 16:50:45'], '122022009643': [0, '2020-11-25 16:36:39'], '122022009395': [0, '2020-11-25 16:41:45'], '122022009244': [-1, '2020-11-25 16:50:49'], '122022009799': [-1, '2020-11-25 16:50:58'], '122022009268': [0, '2020-11-25 16:41:49']}
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009125 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022007165 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022010765 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022007141 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022003320 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009897 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022008144 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009149 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009197 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009871 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009122 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009124 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009643 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009395 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009244 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009799 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Adding inverter SN: Envoy-S meteredEnvoy Inverter 122022009268 - Type: inverters.
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Updating: production - 15
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.envoy_s_meteredenvoy_current_energy_production, old_state=None, new_state=<state sensor.envoy_s_meteredenvoy_current_energy_production=15; unit_of_measurement=W, friendly_name=Envoy-S meteredEnvoy Current Energy Production, icon=mdi:flash @ 2020-11-25T23:43:16.623712+01:00>>
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Updating: daily_production - 6468
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.envoy_s_meteredenvoy_today_s_energy_production, old_state=None, new_state=<state sensor.envoy_s_meteredenvoy_today_s_energy_production=6468; unit_of_measurement=Wh, friendly_name=Envoy-S meteredEnvoy Today's Energy Production, icon=mdi:flash @ 2020-11-25T23:43:16.623946+01:00>>
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Updating: seven_days_production - 45047
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.envoy_s_meteredenvoy_last_seven_days_energy_production, old_state=None, new_state=<state sensor.envoy_s_meteredenvoy_last_seven_days_energy_production=45047; unit_of_measurement=Wh, friendly_name=Envoy-S meteredEnvoy Last Seven Days Energy Production, icon=mdi:flash @ 2020-11-25T23:43:16.624168+01:00>>
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Updating: lifetime_production - 57935
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.envoy_s_meteredenvoy_lifetime_energy_production, old_state=None, new_state=<state sensor.envoy_s_meteredenvoy_lifetime_energy_production=57935; unit_of_measurement=Wh, friendly_name=Envoy-S meteredEnvoy Lifetime Energy Production, icon=mdi:flash @ 2020-11-25T23:43:16.624358+01:00>>
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Updating: consumption - 500
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.envoy_s_meteredenvoy_current_energy_consumption, old_state=None, new_state=<state sensor.envoy_s_meteredenvoy_current_energy_consumption=500; unit_of_measurement=W, friendly_name=Envoy-S meteredEnvoy Current Energy Consumption, icon=mdi:flash @ 2020-11-25T23:43:16.624544+01:00>>
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Updating: daily_consumption - 16893
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.envoy_s_meteredenvoy_today_s_energy_consumption, old_state=None, new_state=<state sensor.envoy_s_meteredenvoy_today_s_energy_consumption=16893; unit_of_measurement=Wh, friendly_name=Envoy-S meteredEnvoy Today's Energy Consumption, icon=mdi:flash @ 2020-11-25T23:43:16.624760+01:00>>
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Updating: seven_days_consumption - 99369
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.envoy_s_meteredenvoy_last_seven_days_energy_consumption, old_state=None, new_state=<state sensor.envoy_s_meteredenvoy_last_seven_days_energy_consumption=99369; unit_of_measurement=Wh, friendly_name=Envoy-S meteredEnvoy Last Seven Days Energy Consumption, icon=mdi:flash @ 2020-11-25T23:43:16.624957+01:00>>
2020-11-25 23:43:16 DEBUG (MainThread) [custom_components.enphase_envoy.sensor] Updating: lifetime_consumption - 119910
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.envoy_s_meteredenvoy_lifetime_energy_consumption, old_state=None, new_state=<state sensor.envoy_s_meteredenvoy_lifetime_energy_consumption=119910; unit_of_measurement=Wh, friendly_name=Envoy-S meteredEnvoy Lifetime Energy Consumption, icon=mdi:flash @ 2020-11-25T23:43:16.625185+01:00>>
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652698476608] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_current_energy_production", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_current_energy_production", "state": "15", "attributes": {"unit_of_measurement": "W", "friendly_name": "Envoy-S meteredEnvoy Current Energy Production", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.623712+00:00", "last_updated": "2020-11-25T22:43:16.623712+00:00", "context": {"id": "963724883fcdd96d709f69c93a1554d3", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.623712+00:00", "context": {"id": "963724883fcdd96d709f69c93a1554d3", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652698476608] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_today_s_energy_production", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_today_s_energy_production", "state": "6468", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Today's Energy Production", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.623946+00:00", "last_updated": "2020-11-25T22:43:16.623946+00:00", "context": {"id": "6735162d6e1efd5fa6e057416374ae1f", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.623946+00:00", "context": {"id": "6735162d6e1efd5fa6e057416374ae1f", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652698476608] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_last_seven_days_energy_production", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_last_seven_days_energy_production", "state": "45047", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Last Seven Days Energy Production", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624168+00:00", "last_updated": "2020-11-25T22:43:16.624168+00:00", "context": {"id": "ad0ea1593ed8e4593ff41b77c0ea3648", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624168+00:00", "context": {"id": "ad0ea1593ed8e4593ff41b77c0ea3648", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652698476608] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_lifetime_energy_production", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_lifetime_energy_production", "state": "57935", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Lifetime Energy Production", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624358+00:00", "last_updated": "2020-11-25T22:43:16.624358+00:00", "context": {"id": "9604d87ad803aa3935a2df006bec95dd", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624358+00:00", "context": {"id": "9604d87ad803aa3935a2df006bec95dd", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652698476608] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_current_energy_consumption", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_current_energy_consumption", "state": "500", "attributes": {"unit_of_measurement": "W", "friendly_name": "Envoy-S meteredEnvoy Current Energy Consumption", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624544+00:00", "last_updated": "2020-11-25T22:43:16.624544+00:00", "context": {"id": "00fa5f7e92c24154b99ceacbf4cf1fdf", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624544+00:00", "context": {"id": "00fa5f7e92c24154b99ceacbf4cf1fdf", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652698476608] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_today_s_energy_consumption", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_today_s_energy_consumption", "state": "16893", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Today's Energy Consumption", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624760+00:00", "last_updated": "2020-11-25T22:43:16.624760+00:00", "context": {"id": "2fde99be24dcb5471d155790494200c2", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624760+00:00", "context": {"id": "2fde99be24dcb5471d155790494200c2", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652698476608] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_last_seven_days_energy_consumption", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_last_seven_days_energy_consumption", "state": "99369", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Last Seven Days Energy Consumption", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624957+00:00", "last_updated": "2020-11-25T22:43:16.624957+00:00", "context": {"id": "a09ca6d3b8e2aa94940ad31c6af184b9", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624957+00:00", "context": {"id": "a09ca6d3b8e2aa94940ad31c6af184b9", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652698476608] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_lifetime_energy_consumption", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_lifetime_energy_consumption", "state": "119910", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Lifetime Energy Consumption", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.625185+00:00", "last_updated": "2020-11-25T22:43:16.625185+00:00", "context": {"id": "0c20c51e129fb5a493639362e490f68a", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.625185+00:00", "context": {"id": "0c20c51e129fb5a493639362e490f68a", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652695227408] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_current_energy_production", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_current_energy_production", "state": "15", "attributes": {"unit_of_measurement": "W", "friendly_name": "Envoy-S meteredEnvoy Current Energy Production", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.623712+00:00", "last_updated": "2020-11-25T22:43:16.623712+00:00", "context": {"id": "963724883fcdd96d709f69c93a1554d3", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.623712+00:00", "context": {"id": "963724883fcdd96d709f69c93a1554d3", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652695227408] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_today_s_energy_production", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_today_s_energy_production", "state": "6468", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Today's Energy Production", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.623946+00:00", "last_updated": "2020-11-25T22:43:16.623946+00:00", "context": {"id": "6735162d6e1efd5fa6e057416374ae1f", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.623946+00:00", "context": {"id": "6735162d6e1efd5fa6e057416374ae1f", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652695227408] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_last_seven_days_energy_production", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_last_seven_days_energy_production", "state": "45047", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Last Seven Days Energy Production", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624168+00:00", "last_updated": "2020-11-25T22:43:16.624168+00:00", "context": {"id": "ad0ea1593ed8e4593ff41b77c0ea3648", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624168+00:00", "context": {"id": "ad0ea1593ed8e4593ff41b77c0ea3648", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652695227408] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_lifetime_energy_production", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_lifetime_energy_production", "state": "57935", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Lifetime Energy Production", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624358+00:00", "last_updated": "2020-11-25T22:43:16.624358+00:00", "context": {"id": "9604d87ad803aa3935a2df006bec95dd", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624358+00:00", "context": {"id": "9604d87ad803aa3935a2df006bec95dd", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652695227408] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_current_energy_consumption", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_current_energy_consumption", "state": "500", "attributes": {"unit_of_measurement": "W", "friendly_name": "Envoy-S meteredEnvoy Current Energy Consumption", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624544+00:00", "last_updated": "2020-11-25T22:43:16.624544+00:00", "context": {"id": "00fa5f7e92c24154b99ceacbf4cf1fdf", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624544+00:00", "context": {"id": "00fa5f7e92c24154b99ceacbf4cf1fdf", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652695227408] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_today_s_energy_consumption", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_today_s_energy_consumption", "state": "16893", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Today's Energy Consumption", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624760+00:00", "last_updated": "2020-11-25T22:43:16.624760+00:00", "context": {"id": "2fde99be24dcb5471d155790494200c2", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624760+00:00", "context": {"id": "2fde99be24dcb5471d155790494200c2", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652695227408] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_last_seven_days_energy_consumption", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_last_seven_days_energy_consumption", "state": "99369", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Last Seven Days Energy Consumption", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.624957+00:00", "last_updated": "2020-11-25T22:43:16.624957+00:00", "context": {"id": "a09ca6d3b8e2aa94940ad31c6af184b9", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.624957+00:00", "context": {"id": "a09ca6d3b8e2aa94940ad31c6af184b9", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140652695227408] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.envoy_s_meteredenvoy_lifetime_energy_consumption", "old_state": null, "new_state": {"entity_id": "sensor.envoy_s_meteredenvoy_lifetime_energy_consumption", "state": "119910", "attributes": {"unit_of_measurement": "Wh", "friendly_name": "Envoy-S meteredEnvoy Lifetime Energy Consumption", "icon": "mdi:flash"}, "last_changed": "2020-11-25T22:43:16.625185+00:00", "last_updated": "2020-11-25T22:43:16.625185+00:00", "context": {"id": "0c20c51e129fb5a493639362e490f68a", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2020-11-25T22:43:16.625185+00:00", "context": {"id": "0c20c51e129fb5a493639362e490f68a", "parent_id": null, "user_id": null}}}
2020-11-25 23:43:16 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform enphase_envoy
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/config/custom_components/enphase_envoy/sensor.py", line 188, in state
value = self.coordinator.data.get("inverters_production").get(
TypeError: 'NoneType' object is not subscriptable
2020-11-25 23:43:16 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up enphase_envoy platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 207, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/config/custom_components/enphase_envoy/sensor.py", line 188, in state
value = self.coordinator.data.get("inverters_production").get(
TypeError: 'NoneType' object is not subscriptable