I have two cameras in front of my house that send motion alerts via HTTP to my HS4 Big5HS4. Works great if those events arrive at least 1-2 seconds apart. But when the two HTTP calls arrive at basically the same time, I'm getting the following error in HS4. Very reproducable. Looks like a race condition to me that is not correctly treated.
Big5HS4 3.7.0.0
HS4 ZEE S2/PI 4.2.5.0
Big5HS4 3.7.0.0
HS4 ZEE S2/PI 4.2.5.0
Code:
3/20/2022 5:25:55 PM Big5HS4 [COLOR=#e74c3c]Error (Big5HS4 Plugin) An error happened on incomming message. ErrorMessage An item with the same key has already been added. Key: 66 on at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000fd] in :0 at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in :0 at HSPI_Big5HS4.HSPI.CollectDevices () [0x000c0] in :0 at HSPI_Big5HS4.HSPI.GetOrCreateDeviceByName (System.String deviceName, HSPI_Big5HS4.Features.Big5Type type, System.Boolean skipDeviceCreation) [0x00003] in :0 at HSPI_Big5HS4.HSPI.HandleIncommingMessage (HSPI_Big5HS4.Features.Big5Connection con, HSPI_Big5HS4.Features.Big5Message msg, HSPI_Big5HS4.Features.Big5Profile profile, HSPI_Big5HS4.Features.Big5Type type) [0x003d3] in :0[/COLOR] 3/20/2022 5:25:55 PM Big5HS4 Debug [Big5HS4 Plugin] [HTTP ThermalEntryCam (listening on http://xxxxx/thermalMotion) IN]: http://xxxxxx/thermalMotion?name=motion&thermalEntry=100 3/20/2022 5:25:55 PM Big5HS4 Debug [Big5HS4 Plugin] HS devices loaded or reloaded. 3/20/2022 5:25:55 PM Plugin Warning A plugin has requested a list of all of the devices in HomeSeer 3/20/2022 5:25:55 PM Big5HS4 Debug [Big5HS4 Plugin] Loading HS devices... 3/20/2022 5:25:55 PM Big5HS4 Debug [Big5HS4 Plugin] [HttpConnection] [Raw message in]: http://xxxxx/spyMotion?name=motion&spyDriveway=200 3/20/2022 5:25:55 PM Plugin Warning A plugin has requested a list of all of the devices in HomeSeer 3/20/2022 5:25:55 PM Big5HS4 Debug [Big5HS4 Plugin] Loading HS devices... 3/20/2022 5:25:55 PM Big5HS4 Debug [Big5HS4 Plugin] [HttpConnection] [Raw message in]: http://xxxx/thermalMotion?name=motion&thermalEntry=100
Comment