Connection Event

Posted on
Sun Feb 04, 2024 8:29 am
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Connection Event

How can you use "Home Assistant Agent Connection Event" to detect if the plugin is running? Or is there another way to do this?

Thank you

JP

Posted on
Sun Feb 04, 2024 9:03 am
FlyingDiver offline
User avatar
Posts: 7238
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Connection Event

Running? As in enabled? Or connected to an HA instance? Or what?


Sent from my iPhone using Tapatalk

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 04, 2024 10:30 am
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Connection Event

Connected to HA instance and the connection is active.

I am having issues that the connection "blinks" on/off, causing triggers to execute. Example: I have a trigger that let's me know if the pool drain valve was opened. It keeps turning on/off. I believe is because either the connect to HA is lost or the iAqualink connection within HA acts up.

JP

Posted on
Sun Feb 04, 2024 10:32 am
FlyingDiver offline
User avatar
Posts: 7238
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Connection Event

Is your trigger on an HA event, or on one of the device states?

I've seen no evidence on my system of the connection to the HA instance "blinking" (whatever that means). I need to see a debug log for when this happens.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 04, 2024 10:40 am
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Connection Event

I don't think is the plugin. I think the integration to iAqualink within HA is the one "blinking". The plugin is just reflecting that action. I will turn debug on. Will send the logs when it happens again.

Thank you!

JP

Posted on
Sun Feb 04, 2024 3:45 pm
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Connection Event

Here you go

Code: Select all
Feb 4, 2024 at 4:41:21 PM
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '73', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:41:21.239660+00:00', 'last_updated': '2024-02-04T21:41:21.239660+00:00', 'context': {'id': '01HNV1366QCKSCJD6G8J04GVNS', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '73', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:41:21.239660+00:00', 'last_updated': '2024-02-04T21:41:21.239660+00:00', 'context': {'id': '01HNV1366QCKSCJD6G8J04GVNS', 'parent_id': None, 'user_id': None}}

Feb 4, 2024 at 4:41:51 PM
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '72', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:41:51.456230+00:00', 'last_updated': '2024-02-04T21:41:51.456230+00:00', 'context': {'id': '01HNV143Q0GPH466S3RDC65KS0', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '72', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:41:51.456230+00:00', 'last_updated': '2024-02-04T21:41:51.456230+00:00', 'context': {'id': '01HNV143Q0GPH466S3RDC65KS0', 'parent_id': None, 'user_id': None}}
   Z-Wave                          received "Office Motion Sensor" status update is on
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '73', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:42:06.901922+00:00', 'last_updated': '2024-02-04T21:42:06.901922+00:00', 'context': {'id': '01HNV14JSN1THW3VM0VBAMBWEX', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '73', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:42:06.901922+00:00', 'last_updated': '2024-02-04T21:42:06.901922+00:00', 'context': {'id': '01HNV14JSN1THW3VM0VBAMBWEX', 'parent_id': None, 'user_id': None}}

Feb 4, 2024 at 4:42:36 PM
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '72', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:42:36.256042+00:00', 'last_updated': '2024-02-04T21:42:36.256042+00:00', 'context': {'id': '01HNV15FF0325SAVTSYAY5V6JM', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '72', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:42:36.256042+00:00', 'last_updated': '2024-02-04T21:42:36.256042+00:00', 'context': {'id': '01HNV15FF0325SAVTSYAY5V6JM', 'parent_id': None, 'user_id': None}}
   Z-Wave                          received "Kitchen Motion Sensor" status update is on
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '73', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:42:51.253683+00:00', 'last_updated': '2024-02-04T21:42:51.253683+00:00', 'context': {'id': '01HNV15Y3N6T7XYYPCY30CJBKE', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': '73', 'attributes': {'unit_of_measurement': '°F', 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:42:51.253683+00:00', 'last_updated': '2024-02-04T21:42:51.253683+00:00', 'context': {'id': '01HNV15Y3N6T7XYYPCY30CJBKE', 'parent_id': None, 'user_id': None}}

Feb 4, 2024 at 4:43:13 PM
   Home Assistant Agent Debug      Service Home._home-assistant._tcp.local. of type _home-assistant._tcp.local. state changed: ServiceStateChange.Updated
   Home Assistant Agent Debug      Found HA Servers: {'Home._home-assistant._tcp.local.': {'ip_address': '192.168.2.24', 'port': 8123}}

Feb 4, 2024 at 4:43:35 PM
   Home Assistant Agent Debug      Updating device Pool HA Thermostat with {'entity_id': 'climate.pool', 'state': 'unavailable', 'attributes': {'hvac_modes': ['heat', 'off'], 'min_temp': 32, 'max_temp': 104, 'assumed_state': True, 'friendly_name': 'Pool', 'supported_features': 1}, 'last_changed': '2024-02-04T21:43:35.497070+00:00', 'last_updated': '2024-02-04T21:43:35.497070+00:00', 'context': {'id': '01HNV179A91HYJ3XE3K8H8XHP5', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA Thermostat: states list changed, updating...
   Home Assistant Agent Debug      Updating device Pool HA Thermostat with {'entity_id': 'climate.pool', 'state': 'unavailable', 'attributes': {'hvac_modes': ['heat', 'off'], 'min_temp': 32, 'max_temp': 104, 'assumed_state': True, 'friendly_name': 'Pool', 'supported_features': 1}, 'last_changed': '2024-02-04T21:43:35.497070+00:00', 'last_updated': '2024-02-04T21:43:35.497070+00:00', 'context': {'id': '01HNV179A91HYJ3XE3K8H8XHP5', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA Temp-Water with {'entity_id': 'sensor.pool_temp', 'state': 'unavailable', 'attributes': {'unit_of_measurement': '°F', 'assumed_state': True, 'device_class': 'temperature', 'friendly_name': 'Pool Temp'}, 'last_changed': '2024-02-04T21:43:35.497274+00:00', 'last_updated': '2024-02-04T21:43:35.497274+00:00', 'context': {'id': '01HNV179A997GW8NNDZ0ZWH4QV', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA Temp-Water: states list changed, updating...
   Home Assistant Agent Debug      Updating device Pool HA Temp-Water with {'entity_id': 'sensor.pool_temp', 'state': 'unavailable', 'attributes': {'unit_of_measurement': '°F', 'assumed_state': True, 'device_class': 'temperature', 'friendly_name': 'Pool Temp'}, 'last_changed': '2024-02-04T21:43:35.497274+00:00', 'last_updated': '2024-02-04T21:43:35.497274+00:00', 'context': {'id': '01HNV179A997GW8NNDZ0ZWH4QV', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA Temp-Water: forcing sensorValue to 0.0
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': 'unavailable', 'attributes': {'unit_of_measurement': '°F', 'assumed_state': True, 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:43:35.497459+00:00', 'last_updated': '2024-02-04T21:43:35.497459+00:00', 'context': {'id': '01HNV179A9KEBFS8225YVXGY03', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA Temp-Air: states list changed, updating...
   Home Assistant Agent Debug      Pool HA Temp-Water: forcing sensorValue to 0.0
   Home Assistant Agent Debug      Updating device Pool HA Temp-Air with {'entity_id': 'sensor.air_temp', 'state': 'unavailable', 'attributes': {'unit_of_measurement': '°F', 'assumed_state': True, 'device_class': 'temperature', 'friendly_name': 'Air Temp'}, 'last_changed': '2024-02-04T21:43:35.497459+00:00', 'last_updated': '2024-02-04T21:43:35.497459+00:00', 'context': {'id': '01HNV179A9KEBFS8225YVXGY03', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA Temp-Air: forcing sensorValue to 0.0
   Home Assistant Agent Debug      Updating device Pool HA 01-Pump (HA Plugin) with {'entity_id': 'switch.pool_pump', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'icon': 'mdi:fan', 'friendly_name': 'Pool Pump'}, 'last_changed': '2024-02-04T21:43:35.497898+00:00', 'last_updated': '2024-02-04T21:43:35.497898+00:00', 'context': {'id': '01HNV179A984Y8NDVJE157D1AV', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA 01-Pump (HA Plugin): states list changed, updating...
   Home Assistant Agent Debug      Pool HA Temp-Air: forcing sensorValue to 0.0
   Home Assistant Agent Debug      Updating device Pool HA 04-Heater (HA Plugin) with {'entity_id': 'switch.pool_heater', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'icon': 'mdi:radiator', 'friendly_name': 'Pool Heater'}, 'last_changed': '2024-02-04T21:43:35.498045+00:00', 'last_updated': '2024-02-04T21:43:35.498045+00:00', 'context': {'id': '01HNV179AADF3FXNNWVZWDSN6G', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA 04-Heater (HA Plugin): states list changed, updating...
   Home Assistant Agent Debug      Updating device Pool HA 04-Heater (HA Plugin) with {'entity_id': 'switch.pool_heater', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'icon': 'mdi:radiator', 'friendly_name': 'Pool Heater'}, 'last_changed': '2024-02-04T21:43:35.498045+00:00', 'last_updated': '2024-02-04T21:43:35.498045+00:00', 'context': {'id': '01HNV179AADF3FXNNWVZWDSN6G', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA 02-Cleaner (HA Plugin) with {'entity_id': 'switch.cleaner', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'icon': 'mdi:robot-vacuum', 'friendly_name': 'Cleaner'}, 'last_changed': '2024-02-04T21:43:35.498185+00:00', 'last_updated': '2024-02-04T21:43:35.498185+00:00', 'context': {'id': '01HNV179AAJ7QP3F5ADKNKXFDQ', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA 02-Cleaner (HA Plugin): states list changed, updating...
   Home Assistant Agent Debug      Updating device Pool HA 02-Cleaner (HA Plugin) with {'entity_id': 'switch.cleaner', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'icon': 'mdi:robot-vacuum', 'friendly_name': 'Cleaner'}, 'last_changed': '2024-02-04T21:43:35.498185+00:00', 'last_updated': '2024-02-04T21:43:35.498185+00:00', 'context': {'id': '01HNV179AAJ7QP3F5ADKNKXFDQ', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA 03 Waterfall (HA Plugin) with {'entity_id': 'switch.waterfall', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'icon': 'mdi:fountain', 'friendly_name': 'Waterfall'}, 'last_changed': '2024-02-04T21:43:35.498321+00:00', 'last_updated': '2024-02-04T21:43:35.498321+00:00', 'context': {'id': '01HNV179AAG90MKDGXFFR3RDAE', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Pool HA 03 Waterfall (HA Plugin) with {'entity_id': 'switch.waterfall', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'icon': 'mdi:fountain', 'friendly_name': 'Waterfall'}, 'last_changed': '2024-02-04T21:43:35.498321+00:00', 'last_updated': '2024-02-04T21:43:35.498321+00:00', 'context': {'id': '01HNV179AAG90MKDGXFFR3RDAE', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA 03 Waterfall (HA Plugin): states list changed, updating...
   Home Assistant Agent Debug      Pool HA 03 Waterfall (HA Plugin): states list changed, updating...
   Home Assistant Agent Debug      Updating device Pool HA 05-DrainLine (HA Plugin) with {'entity_id': 'switch.drain_line', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'friendly_name': 'Drain Line'}, 'last_changed': '2024-02-04T21:43:35.505377+00:00', 'last_updated': '2024-02-04T21:43:35.505377+00:00', 'context': {'id': '01HNV179AH00VTS9HZ86BZ5RC0', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA 05-DrainLine (HA Plugin): states list changed, updating...
   Home Assistant Agent Debug      Updating device Pool HA 05-DrainLine (HA Plugin) with {'entity_id': 'switch.drain_line', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'friendly_name': 'Drain Line'}, 'last_changed': '2024-02-04T21:43:35.505377+00:00', 'last_updated': '2024-02-04T21:43:35.505377+00:00', 'context': {'id': '01HNV179AH00VTS9HZ86BZ5RC0', 'parent_id': None, 'user_id': None}}
   Trigger                         Pool Drain Line-turnOFF after set period
   Trigger                         Alert-Pool Drain Line-ON
   Home Assistant Agent Debug      Updating device Pool HA 06-FillLine (HA Plugin) with {'entity_id': 'switch.fill_line', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'friendly_name': 'Fill Line'}, 'last_changed': '2024-02-04T21:43:35.505630+00:00', 'last_updated': '2024-02-04T21:43:35.505630+00:00', 'context': {'id': '01HNV179AHXR4WVQTX7CQ3AYBT', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Pool HA 06-FillLine (HA Plugin): states list changed, updating...
   Pushover                        Pushover notification was sent successfully, title: Indigo Notification, body: WARNING: Pool Drain Line was opened!
   Home Assistant Agent Debug      Updating device Pool HA 06-FillLine (HA Plugin) with {'entity_id': 'switch.fill_line', 'state': 'unavailable', 'attributes': {'assumed_state': True, 'friendly_name': 'Fill Line'}, 'last_changed': '2024-02-04T21:43:35.505630+00:00', 'last_updated': '2024-02-04T21:43:35.505630+00:00', 'context': {'id': '01HNV179AHXR4WVQTX7CQ3AYBT', 'parent_id': None, 'user_id': None}}

Posted on
Sun Feb 04, 2024 3:48 pm
FlyingDiver offline
User avatar
Posts: 7238
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Connection Event

Yeah, that's all in Home Assistant. All the plugin is doing is recording the data as sent by Home Assistant.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Feb 04, 2024 4:26 pm
roquej offline
User avatar
Posts: 609
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Connection Event

As I thought. Any way to detect if HA is up or that particular integration is working? Maybe I can check for that before I trigger the warning.

JP

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest