Announcement

Collapse
No announcement yet.

Help with replacing regex payload

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with replacing regex payload

    Hi, just new to this plugin, I'm attempting to link a HS device to change value depending on a MQTT topic.
    Here's what I have so far, I'd like to set the HS device value to 100 (ON) when the topic has a message with a value of 1, and HS device = 0 when topic = 0
    Appreciate any help.

    Click image for larger version  Name:	mqtt%20setup_zpsotb4b4br.png Views:	1 Size:	279.7 KB ID:	1276447

    Thanks

  • #2
    I would not use regular expression so remove the [1], but just expression (4 rows down) with entry of $$PAYLOAD:*100
    When message is received with 0 then Device Value will be set to 0
    When message is received with 1 then Device Value will be set to 100

    Another more general way to do it is with Value Status Pairs so would be either List or Button for HS Control Status UI. For HS Device VSP list then enter 0=0 <submit> and 1=100 <submit>. I'm not certain if then numeric for the value will cause mcsMQTT an issue. This will also provide buttons on the HS UI to send MQTT messages if you want this capability associated with this device. If no control desired then change the type to status only in HS Device Management.

    I see you have a value for Grouping Parent Ref. Based upon the number being so large I suspect this is not a correct entry. Likely it will be a blank entry.

    Comment


    • #3
      Thanks, I've used the status pairs method, seems to work but every 2nd or 3rd topic update causes the plugin to crash, I have to restart it.
      I've removed the config and created it again as pictured below. Any ideas whats causing the crash?
      Click image for larger version

Name:	mqtt2.PNG
Views:	20
Size:	594.7 KB
ID:	1276457
      Cheers

      Comment


      • #4
        I do not see anything in the HS Device VSP list on the graphic that is posted. I also see that the type continues to be Number rather than Button or List. Button and List use the Value Status Pairs. The Publish Payload Template row is also 0. Likely not what you want, but since you do not have a HS Device Publish Topic it will not matter. If you are going to publish to a topic then normal Publish Payload Template is blank or something like $$VALUE: or $$STATUS:

        To help with crash information then General Tab should have Debug checkbox checked. The debug file is in \Data\mcsMQTT\mcsMQTT Debug.txt

        Comment


        • #5
          At the moment, I'm just trying to get my HS device to turn on or off depending on the value of the mqtt message 0 (off) 1 (on)
          Will enable debug and post the results.
          Thanks

          Comment


          • #6
            I've enabled debugging, the HS device is changing value ON/OFF which which great, however each time it receives a message the plugin disconnects?

            Code:
            Jan-18 11:09:10 AM         mcsMQTT    MQTTClient is Connected
            Jan-18 11:09:09 AM         Starting Plug-In    Plugin mcsMQTT started successfully in 185 milliseconds
            Jan-18 11:09:09 AM         mcsMQTT    Version 3.4.17.4 Registered with Homeseer
            Jan-18 11:09:08 AM         Starting Plug-In    Initializing plugin mcsMQTT ...
            Jan-18 11:09:08 AM         Info    Plugin mcsMQTT has connected. IP:127.0.0.1:52421
            Jan-18 11:09:08 AM         Warning    I/O interface mcsMQTT is down, executable is not running, restarting ...
            Jan-18 11:08:55 AM         Error    Calling HSEvent in plugin mcsMQTT, Instance :Object reference not set to an instance of an object.
            Jan-18 11:08:55 AM         Info    Plugin mcsMQTT with instance: has disconnected
            Jan-18 11:08:53 AM         Device Control    Device: Virtual Device Unknown Front Door Motion to Off (0) by/from: CAPI Control Handler
            Jan-18 11:07:40 AM         mcsMQTT    MQTTClient is Connected
            Jan-18 11:07:38 AM         Starting Plug-In    Plugin mcsMQTT started successfully in 230 milliseconds
            Jan-18 11:07:38 AM         mcsMQTT    Version 3.4.17.4 Registered with Homeseer
            Jan-18 11:07:38 AM         Starting Plug-In    Initializing plugin mcsMQTT ...
            Here's the MQTT Debug log
            Code:
            18/01/2019 11:09:09 AM    6    | mcsMQTT Version 3.4.17.4 running at C:\Program Files (x86)\HomeSeer HS3, HS is at C:\Program Files (x86)\HomeSeer HS3 
            18/01/2019 11:09:09 AM    14    | mcsMQTT InitHW ComputerName= SERVER, IOEnabled=False 
            18/01/2019 11:09:09 AM    112    | mcsMQTT Debug InitHW Database Ready 
            18/01/2019 11:09:09 AM    116    | PopulateReceiveDict BlueIris/FrontDoor/Motion, PluginDevice=False, Ref=10  
            18/01/2019 11:09:09 AM    123    | mcsMQTT Debug Receive Ready 
            18/01/2019 11:09:09 AM    124    | mcsMQTT Debug Trigger Ready 
            18/01/2019 11:09:09 AM    169    | HW Init Complete  
            18/01/2019 11:09:09 AM    169    | Background Init Started  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=100  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=101  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=102  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=103  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=104  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=105  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=106  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=107  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=108  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=117  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=118  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=119  
            18/01/2019 11:09:09 AM    170    | PopulateReceiveDict , PluginDevice=False, Ref=120  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=129  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=130  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=131  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=132  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=133  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=134  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=135  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=136  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=137  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=138  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=139  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=14  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=140  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=141  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=142  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=15  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=16  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=160  
            18/01/2019 11:09:09 AM    171    | PopulateReceiveDict , PluginDevice=False, Ref=163  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=164  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=165  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=166  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=167  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=168  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=169  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=17  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=170  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=18  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=19  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=20  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=205  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=206  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=207  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=208  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=209  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=21  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=210  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=211  
            18/01/2019 11:09:09 AM    172    | PopulateReceiveDict , PluginDevice=False, Ref=212  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=214  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=22  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=222  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=223  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=224  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=225  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=226  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=227  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=23  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=24  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=25  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=251  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=26  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=266  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=267  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=268  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=269  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=27  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=270  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=271  
            18/01/2019 11:09:09 AM    173    | PopulateReceiveDict , PluginDevice=False, Ref=272  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=276  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=277  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=278  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=279  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=28  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=280  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=281  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=282  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=283  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=284  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=285  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=286  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=287  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=288  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=289  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=29  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=307  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=308  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=309  
            18/01/2019 11:09:09 AM    174    | PopulateReceiveDict , PluginDevice=False, Ref=310  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=311  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=313  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=316  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=325  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=326  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=327  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=362  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=363  
            18/01/2019 11:09:09 AM    175    | PopulateReceiveDict , PluginDevice=False, Ref=364  
            18/01/2019 11:09:09 AM    178    | PopulateReceiveDict , PluginDevice=False, Ref=365  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=366  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=367  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=368  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=369  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=370  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=371  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=372  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=373  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=374  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=375  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=376  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=377  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=378  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=379  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=380  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=381  
            18/01/2019 11:09:09 AM    179    | PopulateReceiveDict , PluginDevice=False, Ref=382  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=383  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=417  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=443  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=444  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=445  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=446  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=447  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=448  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=449  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=45  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=450  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=451  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=453  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=46  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=465  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=466  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=467  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=468  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=469  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=47  
            18/01/2019 11:09:09 AM    180    | PopulateReceiveDict , PluginDevice=False, Ref=470  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=471  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=472  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=485  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=49  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=498  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=5  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=50  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=51  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=526  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=527  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=528  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=529  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=53  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=530  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=531  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=532  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=533  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=534  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=535  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=536  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=537  
            18/01/2019 11:09:09 AM    181    | PopulateReceiveDict , PluginDevice=False, Ref=538  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=539  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=540  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=541  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=542  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=543  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=544  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=545  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=546  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=547  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=548  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=549  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=550  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=551  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=552  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=553  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=554  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=555  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=556  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=557  
            18/01/2019 11:09:09 AM    182    | PopulateReceiveDict , PluginDevice=False, Ref=558  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=559  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=560  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=561  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=562  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=563  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=564  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=565  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=566  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=567  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=568  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=569  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=570  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=571  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=572  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=573  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=574  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=575  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=576  
            18/01/2019 11:09:09 AM    183    | PopulateReceiveDict , PluginDevice=False, Ref=577  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=578  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=579  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=580  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=581  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=582  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=583  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=584  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=585  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=586  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=587  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=588  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=589  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=689  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=690  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=691  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=692  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=693  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=694  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=695  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=696  
            18/01/2019 11:09:09 AM    184    | PopulateReceiveDict , PluginDevice=False, Ref=697  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=698  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=699  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=700  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=701  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=702  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=703  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=704  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=705  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=706  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=707  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=708  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=709  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=710  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=711  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=712  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=77  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=78  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=79  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=82  
            18/01/2019 11:09:09 AM    185    | PopulateReceiveDict , PluginDevice=False, Ref=83  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=84  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=85  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=87  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=88  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=89  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=90  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=91  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=92  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=93  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=94  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=95  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=96  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=97  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=98  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=99  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict , PluginDevice=False, Ref=6  
            18/01/2019 11:09:09 AM    186    | PopulateReceiveDict BlueIris/app, PluginDevice=True, Ref=-1  
            18/01/2019 11:09:09 AM    187    | PopulateReceiveDict SERVER/mcsMQTT/HSVoiceMsg, PluginDevice=True, Ref=-1  
            18/01/2019 11:09:09 AM    188    | PopulateReceiveDict , PluginDevice=False, Ref=9  
            18/01/2019 11:09:09 AM    188    | PopulateReceiveDict BlueIris/status, PluginDevice=True, Ref=-1  
            18/01/2019 11:09:09 AM    188    | PopulateReceiveDict mcsMQTT/HSVoiceMsg, PluginDevice=True, Ref=-1  
            18/01/2019 11:09:09 AM    189    | PopulateReceiveDict mcsMQTT/AlexaVolume, PluginDevice=True, Ref=-1  
            18/01/2019 11:09:09 AM    189    | PopulateReceiveDict "mcsMQTT/HSVoiceMsg, PluginDevice=True, Ref=-1  
            18/01/2019 11:09:09 AM    190    | PopulateReceiveDict , PluginDevice=False, Ref=7  
            18/01/2019 11:09:09 AM    190    | PopulateReceiveDict BlueIris/TEST, PluginDevice=True, Ref=-1  
            18/01/2019 11:09:09 AM    191    | PopulateReceiveDict BlueIris/FrontDoor/Motion2, PluginDevice=True, Ref=-1  
            18/01/2019 11:09:09 AM    191    | PopulateReceiveDict BlueIris/FrontDoor/Motion, PluginDevice=False, Ref=10  
            18/01/2019 11:09:09 AM    191    | Background Init Received  
            18/01/2019 11:09:09 AM    306    | AddToMQTTSend1 10, PayloadTemplate=0  
            18/01/2019 11:09:09 AM    309    | AddToMQTTSend1 100, PayloadTemplate=  
            18/01/2019 11:09:09 AM    311    | AddToMQTTSend1 101, PayloadTemplate=  
            18/01/2019 11:09:09 AM    313    | AddToMQTTSend1 102, PayloadTemplate=  
            18/01/2019 11:09:09 AM    315    | AddToMQTTSend1 103, PayloadTemplate=  
            18/01/2019 11:09:09 AM    317    | AddToMQTTSend1 104, PayloadTemplate=  
            18/01/2019 11:09:09 AM    319    | AddToMQTTSend1 105, PayloadTemplate=  
            18/01/2019 11:09:09 AM    321    | AddToMQTTSend1 106, PayloadTemplate=  
            18/01/2019 11:09:09 AM    324    | AddToMQTTSend1 107, PayloadTemplate=  
            18/01/2019 11:09:09 AM    326    | AddToMQTTSend1 108, PayloadTemplate=  
            18/01/2019 11:09:09 AM    332    | AddToMQTTSend1 117, PayloadTemplate=  
            18/01/2019 11:09:09 AM    335    | AddToMQTTSend1 118, PayloadTemplate=  
            18/01/2019 11:09:09 AM    338    | AddToMQTTSend1 119, PayloadTemplate=  
            18/01/2019 11:09:09 AM    340    | AddToMQTTSend1 120, PayloadTemplate=  
            18/01/2019 11:09:09 AM    344    | AddToMQTTSend1 129, PayloadTemplate=  
            18/01/2019 11:09:09 AM    347    | AddToMQTTSend1 130, PayloadTemplate=  
            18/01/2019 11:09:09 AM    349    | AddToMQTTSend1 131, PayloadTemplate=  
            18/01/2019 11:09:09 AM    351    | AddToMQTTSend1 132, PayloadTemplate=  
            18/01/2019 11:09:09 AM    353    | AddToMQTTSend1 133, PayloadTemplate=  
            18/01/2019 11:09:09 AM    356    | AddToMQTTSend1 134, PayloadTemplate=  
            18/01/2019 11:09:09 AM    360    | AddToMQTTSend1 135, PayloadTemplate=  
            18/01/2019 11:09:09 AM    378    | AddToMQTTSend1 136, PayloadTemplate=  
            18/01/2019 11:09:09 AM    380    | AddToMQTTSend1 137, PayloadTemplate=  
            18/01/2019 11:09:09 AM    381    | AddToMQTTSend1 138, PayloadTemplate=  
            18/01/2019 11:09:09 AM    383    | AddToMQTTSend1 139, PayloadTemplate=  
            18/01/2019 11:09:09 AM    386    | AddToMQTTSend1 14, PayloadTemplate=  
            18/01/2019 11:09:09 AM    387    | AddToMQTTSend1 140, PayloadTemplate=  
            18/01/2019 11:09:09 AM    389    | AddToMQTTSend1 141, PayloadTemplate=  
            18/01/2019 11:09:09 AM    391    | AddToMQTTSend1 142, PayloadTemplate=  
            18/01/2019 11:09:09 AM    394    | AddToMQTTSend1 15, PayloadTemplate=  
            18/01/2019 11:09:09 AM    396    | AddToMQTTSend1 16, PayloadTemplate=  
            18/01/2019 11:09:09 AM    398    | AddToMQTTSend1 160, PayloadTemplate=  
            18/01/2019 11:09:09 AM    399    | AddToMQTTSend1 163, PayloadTemplate=  
            18/01/2019 11:09:09 AM    401    | AddToMQTTSend1 164, PayloadTemplate=  
            18/01/2019 11:09:09 AM    404    | AddToMQTTSend1 165, PayloadTemplate=  
            18/01/2019 11:09:09 AM    406    | AddToMQTTSend1 166, PayloadTemplate=  
            18/01/2019 11:09:09 AM    410    | AddToMQTTSend1 167, PayloadTemplate=  
            18/01/2019 11:09:09 AM    413    | AddToMQTTSend1 168, PayloadTemplate=  
            18/01/2019 11:09:09 AM    416    | AddToMQTTSend1 169, PayloadTemplate=  
            18/01/2019 11:09:09 AM    422    | AddToMQTTSend1 17, PayloadTemplate=  
            18/01/2019 11:09:09 AM    430    | AddToMQTTSend1 170, PayloadTemplate=  
            18/01/2019 11:09:09 AM    435    | AddToMQTTSend1 18, PayloadTemplate=  
            18/01/2019 11:09:09 AM    440    | AddToMQTTSend1 19, PayloadTemplate=  
            18/01/2019 11:09:09 AM    443    | AddToMQTTSend1 20, PayloadTemplate=  
            18/01/2019 11:09:09 AM    448    | AddToMQTTSend1 205, PayloadTemplate=  
            18/01/2019 11:09:09 AM    452    | AddToMQTTSend1 206, PayloadTemplate=  
            18/01/2019 11:09:09 AM    455    | AddToMQTTSend1 207, PayloadTemplate=  
            18/01/2019 11:09:09 AM    458    | AddToMQTTSend1 208, PayloadTemplate=  
            18/01/2019 11:09:09 AM    462    | AddToMQTTSend1 209, PayloadTemplate=  
            18/01/2019 11:09:09 AM    473    | AddToMQTTSend1 21, PayloadTemplate=  
            18/01/2019 11:09:09 AM    477    | AddToMQTTSend1 210, PayloadTemplate=  
            18/01/2019 11:09:09 AM    482    | AddToMQTTSend1 211, PayloadTemplate=  
            18/01/2019 11:09:09 AM    487    | AddToMQTTSend1 212, PayloadTemplate=  
            18/01/2019 11:09:09 AM    490    | AddToMQTTSend1 214, PayloadTemplate=  
            18/01/2019 11:09:09 AM    494    | AddToMQTTSend1 22, PayloadTemplate=  
            18/01/2019 11:09:09 AM    498    | AddToMQTTSend1 222, PayloadTemplate=  
            18/01/2019 11:09:09 AM    501    | AddToMQTTSend1 223, PayloadTemplate=  
            18/01/2019 11:09:09 AM    505    | AddToMQTTSend1 224, PayloadTemplate=  
            18/01/2019 11:09:09 AM    510    | AddToMQTTSend1 225, PayloadTemplate=  
            18/01/2019 11:09:09 AM    515    | AddToMQTTSend1 226, PayloadTemplate=  
            18/01/2019 11:09:09 AM    520    | AddToMQTTSend1 227, PayloadTemplate=  
            18/01/2019 11:09:09 AM    526    | AddToMQTTSend1 23, PayloadTemplate=  
            18/01/2019 11:09:09 AM    529    | AddToMQTTSend1 24, PayloadTemplate=  
            18/01/2019 11:09:09 AM    533    | AddToMQTTSend1 25, PayloadTemplate=  
            18/01/2019 11:09:09 AM    535    | AddToMQTTSend1 251, PayloadTemplate=  
            18/01/2019 11:09:09 AM    538    | AddToMQTTSend1 26, PayloadTemplate=  
            18/01/2019 11:09:09 AM    540    | AddToMQTTSend1 266, PayloadTemplate=  
            18/01/2019 11:09:09 AM    545    | AddToMQTTSend1 267, PayloadTemplate=  
            18/01/2019 11:09:09 AM    548    | AddToMQTTSend1 268, PayloadTemplate=  
            18/01/2019 11:09:09 AM    554    | AddToMQTTSend1 269, PayloadTemplate=  
            18/01/2019 11:09:09 AM    558    | AddToMQTTSend1 27, PayloadTemplate=  
            18/01/2019 11:09:09 AM    562    | AddToMQTTSend1 270, PayloadTemplate=  
            18/01/2019 11:09:09 AM    566    | AddToMQTTSend1 271, PayloadTemplate=  
            18/01/2019 11:09:09 AM    570    | AddToMQTTSend1 272, PayloadTemplate=  
            18/01/2019 11:09:09 AM    572    | AddToMQTTSend1 276, PayloadTemplate=  
            18/01/2019 11:09:09 AM    576    | AddToMQTTSend1 277, PayloadTemplate=  
            18/01/2019 11:09:09 AM    579    | AddToMQTTSend1 278, PayloadTemplate=  
            18/01/2019 11:09:09 AM    581    | AddToMQTTSend1 279, PayloadTemplate=  
            18/01/2019 11:09:09 AM    586    | AddToMQTTSend1 28, PayloadTemplate=  
            18/01/2019 11:09:09 AM    590    | AddToMQTTSend1 280, PayloadTemplate=  
            18/01/2019 11:09:09 AM    594    | AddToMQTTSend1 281, PayloadTemplate=  
            18/01/2019 11:09:09 AM    598    | AddToMQTTSend1 282, PayloadTemplate=  
            18/01/2019 11:09:09 AM    601    | AddToMQTTSend1 283, PayloadTemplate=  
            18/01/2019 11:09:09 AM    606    | AddToMQTTSend1 284, PayloadTemplate=  
            18/01/2019 11:09:09 AM    611    | AddToMQTTSend1 285, PayloadTemplate=  
            18/01/2019 11:09:09 AM    615    | AddToMQTTSend1 286, PayloadTemplate=  
            18/01/2019 11:09:09 AM    619    | AddToMQTTSend1 287, PayloadTemplate=  
            18/01/2019 11:09:09 AM    623    | AddToMQTTSend1 288, PayloadTemplate=  
            18/01/2019 11:09:09 AM    628    | AddToMQTTSend1 289, PayloadTemplate=  
            18/01/2019 11:09:09 AM    634    | AddToMQTTSend1 29, PayloadTemplate=  
            18/01/2019 11:09:09 AM    638    | AddToMQTTSend1 307, PayloadTemplate=  
            18/01/2019 11:09:09 AM    643    | AddToMQTTSend1 308, PayloadTemplate=  
            18/01/2019 11:09:09 AM    651    | AddToMQTTSend1 309, PayloadTemplate=  
            18/01/2019 11:09:09 AM    655    | AddToMQTTSend1 310, PayloadTemplate=  
            18/01/2019 11:09:09 AM    658    | AddToMQTTSend1 311, PayloadTemplate=  
            18/01/2019 11:09:09 AM    661    | AddToMQTTSend1 313, PayloadTemplate=  
            18/01/2019 11:09:09 AM    665    | AddToMQTTSend1 316, PayloadTemplate=  
            18/01/2019 11:09:09 AM    667    | AddToMQTTSend1 325, PayloadTemplate=  
            18/01/2019 11:09:09 AM    670    | AddToMQTTSend1 326, PayloadTemplate=  
            18/01/2019 11:09:09 AM    672    | AddToMQTTSend1 327, PayloadTemplate=  
            18/01/2019 11:09:09 AM    675    | AddToMQTTSend1 362, PayloadTemplate=  
            18/01/2019 11:09:09 AM    677    | AddToMQTTSend1 363, PayloadTemplate=  
            18/01/2019 11:09:09 AM    681    | AddToMQTTSend1 364, PayloadTemplate=  
            18/01/2019 11:09:09 AM    684    | AddToMQTTSend1 365, PayloadTemplate=  
            18/01/2019 11:09:09 AM    690    | AddToMQTTSend1 366, PayloadTemplate=  
            18/01/2019 11:09:09 AM    694    | AddToMQTTSend1 367, PayloadTemplate=  
            18/01/2019 11:09:09 AM    697    | AddToMQTTSend1 368, PayloadTemplate=  
            18/01/2019 11:09:09 AM    701    | AddToMQTTSend1 369, PayloadTemplate=  
            18/01/2019 11:09:09 AM    704    | AddToMQTTSend1 370, PayloadTemplate=  
            18/01/2019 11:09:09 AM    707    | AddToMQTTSend1 371, PayloadTemplate=  
            18/01/2019 11:09:09 AM    711    | AddToMQTTSend1 372, PayloadTemplate=  
            18/01/2019 11:09:09 AM    714    | AddToMQTTSend1 373, PayloadTemplate=  
            18/01/2019 11:09:09 AM    716    | AddToMQTTSend1 374, PayloadTemplate=  
            18/01/2019 11:09:09 AM    719    | AddToMQTTSend1 375, PayloadTemplate=  
            18/01/2019 11:09:09 AM    721    | AddToMQTTSend1 376, PayloadTemplate=  
            18/01/2019 11:09:09 AM    723    | AddToMQTTSend1 377, PayloadTemplate=  
            18/01/2019 11:09:09 AM    728    | AddToMQTTSend1 378, PayloadTemplate=  
            18/01/2019 11:09:09 AM    733    | AddToMQTTSend1 379, PayloadTemplate=  
            18/01/2019 11:09:09 AM    736    | AddToMQTTSend1 380, PayloadTemplate=  
            18/01/2019 11:09:09 AM    740    | AddToMQTTSend1 381, PayloadTemplate=  
            18/01/2019 11:09:09 AM    747    | AddToMQTTSend1 382, PayloadTemplate=  
            18/01/2019 11:09:09 AM    754    | AddToMQTTSend1 383, PayloadTemplate=  
            18/01/2019 11:09:09 AM    757    | AddToMQTTSend1 417, PayloadTemplate=  
            18/01/2019 11:09:09 AM    760    | AddToMQTTSend1 443, PayloadTemplate=  
            18/01/2019 11:09:09 AM    768    | AddToMQTTSend1 444, PayloadTemplate=  
            18/01/2019 11:09:09 AM    772    | AddToMQTTSend1 445, PayloadTemplate=  
            18/01/2019 11:09:09 AM    776    | AddToMQTTSend1 446, PayloadTemplate=  
            18/01/2019 11:09:09 AM    780    | AddToMQTTSend1 447, PayloadTemplate=  
            18/01/2019 11:09:09 AM    783    | AddToMQTTSend1 448, PayloadTemplate=  
            18/01/2019 11:09:09 AM    787    | AddToMQTTSend1 449, PayloadTemplate=  
            18/01/2019 11:09:09 AM    788    | AddToMQTTSend1 45, PayloadTemplate=  
            18/01/2019 11:09:09 AM    793    | AddToMQTTSend1 450, PayloadTemplate=  
            18/01/2019 11:09:09 AM    796    | AddToMQTTSend1 451, PayloadTemplate=  
            18/01/2019 11:09:09 AM    800    | AddToMQTTSend1 453, PayloadTemplate=  
            18/01/2019 11:09:09 AM    802    | AddToMQTTSend1 46, PayloadTemplate=  
            18/01/2019 11:09:09 AM    804    | AddToMQTTSend1 465, PayloadTemplate=  
            18/01/2019 11:09:09 AM    807    | AddToMQTTSend1 466, PayloadTemplate=  
            18/01/2019 11:09:09 AM    810    | AddToMQTTSend1 467, PayloadTemplate=  
            18/01/2019 11:09:09 AM    814    | AddToMQTTSend1 468, PayloadTemplate=  
            18/01/2019 11:09:09 AM    817    | AddToMQTTSend1 469, PayloadTemplate=  
            18/01/2019 11:09:09 AM    819    | AddToMQTTSend1 47, PayloadTemplate=  
            18/01/2019 11:09:09 AM    823    | AddToMQTTSend1 470, PayloadTemplate=  
            18/01/2019 11:09:09 AM    828    | AddToMQTTSend1 471, PayloadTemplate=  
            18/01/2019 11:09:09 AM    835    | AddToMQTTSend1 472, PayloadTemplate=  
            18/01/2019 11:09:09 AM    842    | AddToMQTTSend1 485, PayloadTemplate=  
            18/01/2019 11:09:09 AM    845    | AddToMQTTSend1 49, PayloadTemplate=  
            18/01/2019 11:09:09 AM    847    | AddToMQTTSend1 498, PayloadTemplate=  
            18/01/2019 11:09:09 AM    851    | AddToMQTTSend1 5, PayloadTemplate=  
            18/01/2019 11:09:09 AM    852    | AddToMQTTSend1 50, PayloadTemplate=  
            18/01/2019 11:09:09 AM    854    | AddToMQTTSend1 51, PayloadTemplate=  
            18/01/2019 11:09:09 AM    856    | AddToMQTTSend1 526, PayloadTemplate=  
            18/01/2019 11:09:09 AM    857    | AddToMQTTSend1 527, PayloadTemplate=  
            18/01/2019 11:09:09 AM    859    | AddToMQTTSend1 528, PayloadTemplate=  
            18/01/2019 11:09:09 AM    861    | AddToMQTTSend1 529, PayloadTemplate=  
            18/01/2019 11:09:09 AM    862    | AddToMQTTSend1 53, PayloadTemplate=  
            18/01/2019 11:09:09 AM    864    | AddToMQTTSend1 530, PayloadTemplate=  
            18/01/2019 11:09:09 AM    865    | AddToMQTTSend1 531, PayloadTemplate=  
            18/01/2019 11:09:09 AM    867    | AddToMQTTSend1 532, PayloadTemplate=  
            18/01/2019 11:09:09 AM    869    | AddToMQTTSend1 533, PayloadTemplate=  
            18/01/2019 11:09:09 AM    871    | AddToMQTTSend1 534, PayloadTemplate=  
            18/01/2019 11:09:09 AM    873    | AddToMQTTSend1 535, PayloadTemplate=  
            18/01/2019 11:09:09 AM    876    | AddToMQTTSend1 536, PayloadTemplate=  
            18/01/2019 11:09:09 AM    877    | AddToMQTTSend1 537, PayloadTemplate=  
            18/01/2019 11:09:09 AM    879    | AddToMQTTSend1 538, PayloadTemplate=  
            18/01/2019 11:09:09 AM    883    | AddToMQTTSend1 539, PayloadTemplate=  
            18/01/2019 11:09:09 AM    886    | AddToMQTTSend1 540, PayloadTemplate=  
            18/01/2019 11:09:09 AM    888    | AddToMQTTSend1 541, PayloadTemplate=  
            18/01/2019 11:09:09 AM    893    | AddToMQTTSend1 542, PayloadTemplate=  
            18/01/2019 11:09:09 AM    895    | AddToMQTTSend1 543, PayloadTemplate=  
            18/01/2019 11:09:09 AM    898    | AddToMQTTSend1 544, PayloadTemplate=  
            18/01/2019 11:09:09 AM    901    | AddToMQTTSend1 545, PayloadTemplate=  
            18/01/2019 11:09:09 AM    904    | AddToMQTTSend1 546, PayloadTemplate=  
            18/01/2019 11:09:09 AM    906    | AddToMQTTSend1 547, PayloadTemplate=  
            18/01/2019 11:09:09 AM    908    | AddToMQTTSend1 548, PayloadTemplate=  
            18/01/2019 11:09:09 AM    910    | AddToMQTTSend1 549, PayloadTemplate=  
            18/01/2019 11:09:09 AM    915    | AddToMQTTSend1 550, PayloadTemplate=  
            18/01/2019 11:09:09 AM    918    | AddToMQTTSend1 551, PayloadTemplate=  
            18/01/2019 11:09:09 AM    923    | AddToMQTTSend1 552, PayloadTemplate=  
            18/01/2019 11:09:09 AM    927    | AddToMQTTSend1 553, PayloadTemplate=  
            18/01/2019 11:09:09 AM    932    | AddToMQTTSend1 554, PayloadTemplate=  
            18/01/2019 11:09:09 AM    936    | AddToMQTTSend1 555, PayloadTemplate=  
            18/01/2019 11:09:09 AM    940    | AddToMQTTSend1 556, PayloadTemplate=  
            18/01/2019 11:09:09 AM    944    | AddToMQTTSend1 557, PayloadTemplate=  
            18/01/2019 11:09:09 AM    950    | AddToMQTTSend1 558, PayloadTemplate=  
            18/01/2019 11:09:09 AM    958    | AddToMQTTSend1 559, PayloadTemplate=  
            18/01/2019 11:09:09 AM    964    | AddToMQTTSend1 560, PayloadTemplate=  
            18/01/2019 11:09:09 AM    968    | AddToMQTTSend1 561, PayloadTemplate=  
            18/01/2019 11:09:09 AM    973    | AddToMQTTSend1 562, PayloadTemplate=  
            18/01/2019 11:09:09 AM    981    | AddToMQTTSend1 563, PayloadTemplate=  
            18/01/2019 11:09:09 AM    985    | AddToMQTTSend1 564, PayloadTemplate=  
            18/01/2019 11:09:10 AM    987    | AddToMQTTSend1 565, PayloadTemplate=  
            18/01/2019 11:09:10 AM    989    | AddToMQTTSend1 566, PayloadTemplate=  
            18/01/2019 11:09:10 AM    993    | AddToMQTTSend1 567, PayloadTemplate=  
            18/01/2019 11:09:10 AM    996    | AddToMQTTSend1 568, PayloadTemplate=  
            18/01/2019 11:09:10 AM    998    | AddToMQTTSend1 569, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1001    | AddToMQTTSend1 570, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1004    | AddToMQTTSend1 571, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1007    | AddToMQTTSend1 572, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1012    | AddToMQTTSend1 573, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1015    | AddToMQTTSend1 574, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1018    | AddToMQTTSend1 575, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1022    | AddToMQTTSend1 576, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1025    | AddToMQTTSend1 577, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1029    | AddToMQTTSend1 578, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1034    | AddToMQTTSend1 579, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1036    | AddToMQTTSend1 580, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1041    | AddToMQTTSend1 581, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1044    | AddToMQTTSend1 582, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1047    | AddToMQTTSend1 583, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1050    | AddToMQTTSend1 584, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1052    | AddToMQTTSend1 585, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1055    | AddToMQTTSend1 586, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1058    | AddToMQTTSend1 587, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1062    | AddToMQTTSend1 588, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1064    | AddToMQTTSend1 589, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1066    | AddToMQTTSend1 6, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1069    | AddToMQTTSend1 689, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1072    | AddToMQTTSend1 690, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1076    | AddToMQTTSend1 691, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1078    | AddToMQTTSend1 692, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1082    | AddToMQTTSend1 693, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1086    | AddToMQTTSend1 694, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1091    | AddToMQTTSend1 695, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1096    | AddToMQTTSend1 696, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1100    | AddToMQTTSend1 697, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1103    | AddToMQTTSend1 698, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1106    | AddToMQTTSend1 699, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1113    | AddToMQTTSend1 7, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1115    | AddToMQTTSend1 700, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1118    | AddToMQTTSend1 701, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1121    | AddToMQTTSend1 702, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1124    | AddToMQTTSend1 703, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1126    | AddToMQTTSend1 704, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1129    | AddToMQTTSend1 705, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1131    | AddToMQTTSend1 706, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1134    | AddToMQTTSend1 707, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1136    | AddToMQTTSend1 708, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1139    | AddToMQTTSend1 709, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1142    | AddToMQTTSend1 710, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1145    | AddToMQTTSend1 711, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1147    | AddToMQTTSend1 712, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1149    | AddToMQTTSend1 77, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1150    | AddToMQTTSend1 78, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1152    | AddToMQTTSend1 79, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1153    | AddToMQTTSend1 82, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1155    | AddToMQTTSend1 83, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1158    | AddToMQTTSend1 84, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1160    | AddToMQTTSend1 85, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1163    | AddToMQTTSend1 87, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1165    | AddToMQTTSend1 88, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1168    | AddToMQTTSend1 89, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1172    | AddToMQTTSend1 90, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1176    | AddToMQTTSend1 91, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1182    | AddToMQTTSend1 92, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1186    | AddToMQTTSend1 93, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1191    | AddToMQTTSend1 94, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1194    | AddToMQTTSend1 95, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1198    | AddToMQTTSend1 96, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1201    | AddToMQTTSend1 97, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1204    | AddToMQTTSend1 98, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1206    | AddToMQTTSend1 99, PayloadTemplate=  
            18/01/2019 11:09:10 AM    1206    | Background Send  
            18/01/2019 11:09:10 AM    1302    | Background Init Filters - Background Complete  
            18/01/2019 11:09:10 AM    1303    | Spawning MQTT Threads  
            18/01/2019 11:09:10 AM    1304    | mcsMQTT Debug MQTT Ready 
            18/01/2019 11:09:10 AM    1309    | MQTT Thread Started with broker 192.168.100.100, Shutdown=False, Disconnect=False, Client=False, Connected=False  
            18/01/2019 11:09:10 AM    1310    | MQTT Thread Not Connected Yet  
            18/01/2019 11:09:10 AM    1310    | Calling MQTTclient  
            18/01/2019 11:09:10 AM    1311    | MQTT Thread Client Created  
            18/01/2019 11:09:10 AM    1312    | MQTT Thread Client ID=mcsMQTT on SERVER  
            18/01/2019 11:09:10 AM    1312    | Calling MQTT Connect  
            18/01/2019 11:09:10 AM    1318    | MQTT Thread Broker 192.168.100.100 Connect Response=0  
            18/01/2019 11:09:10 AM    1318    | MQTT Broker Connection Accepted, Connected=True  
            18/01/2019 11:09:10 AM    1334    | MQTT Thread Subscribing   
            18/01/2019 11:09:10 AM    1335    | MQTT Subscription Start  
            18/01/2019 11:09:10 AM    1335    | MQTT Subscription Topics being selected  
            18/01/2019 11:09:10 AM    1335    | MQTT Subscription Topics selected  
            18/01/2019 11:09:10 AM    1335    | MQTTSubscribe List /  NoDiscovery=False to   
            18/01/2019 11:09:10 AM    1335    | #  
            18/01/2019 11:09:10 AM    1343    | MessageSourceExists SELECT count(Source) as extant FROM MQTT_MESSAGE WHERE (Source='BlueIris/app')=1  
            18/01/2019 11:09:10 AM    1363    | UpdateRecord UPDATE MQTT_MESSAGE SET Source='BlueIris/app',Topic='',Payload='running',Template='',Pattern='',Replace='',Match='0',LastDate='2019-01-18 11:09:10',Reject=0,Accept=0,RetainFlag=0,PluginDevice=1,Subscribe=0,Chart=0,History=0,Ref=-1,ChangeType=1,Misc=262160,QOS=0,StatusType=0 WHERE (Source='BlueIris/app'), result=1, Key=Source  
            18/01/2019 11:09:10 AM    1365    | ActoOnMessageForTrigger Topic BlueIris/app,Payload=running  
            18/01/2019 11:10:20 AM    71636    | HSEvent VALUE_CHANGE| 1024| CC52A848-021-Q23| 249.144| 249.332| 468  
            18/01/2019 11:10:21 AM    72605    | HSEvent VALUE_CHANGE| 1024| CC52A848-021-Q23| 249.004| 249.144| 468  
            18/01/2019 11:10:25 AM    76424    | HSEvent VALUE_CHANGE| 1024| CC52A848-026-Q32| 248.63| 247.086| 556

            Comment


            • #7
              I see the following from the HS log when the disconnect occurs which is the same as you described. Unfortunately the mcsMQTT debug contains only what happened on the restart and not before it. I think the best next step would be for you to provide your mcsMQTT setup so I can evaluate. post or email to mcsSolutions at CenturyTel dot net. This will be the \Config\mcsMQTT.ini and \Data\mcsMQTT\mcsMQTT.db. I could also provide an update that would create new debug files rather than reusing the same one so the prior one could be observed.

              Jan-18 11:09:08 AM Warning I/O interface mcsMQTT is down, executable is not running, restarting ... Jan-18 11:08:55 AM Error Calling HSEvent in plugin mcsMQTT, Instance :Object reference not set to an instance of an object. Jan-18 11:08:55 AM Info Plugin mcsMQTT with instance: has disconnected Jan-18 11:08:53 AM Device Control Device: Virtual Device Unknown Front Door Motion to Off (0) by/from: CAPI Control Handler

              Comment


              • #8
                Sure will drop you an email. Thanks!

                Comment


                • #9
                  The databased has 8 received messages plus another that has been Accepted. This one, however, has lost some of its association with mcsMQTT. It shows in the database and then looking back at your log it confirms where it shows Device 10 is not a mcsMQTT plugin device and when the mqtt message was received it tried to use CAPI to control some other plugin device. It aslo shows up as pink rather than green on the Association tab. Likely this is where the confusion exists.
                  Code:
                   PopulateReceiveDict BlueIris/FrontDoor/Motion, PluginDevice=False, Ref=10  Jan-18 11:08:53 AM         Device Control    Device: Virtual Device Unknown Front Door Motion to Off (0) by/from: CAPI Control Handler
                  Quite a coincidence that your MQTT broker and my MQTT broker share the same local IP address. Not an issue, just unlikely.

                  Since you really do not have anything setup I would delete mcsMQTT.db and start the plugin. After the BlueIris/FrontDoor/Motion topic is observed in the Association Tab then click the Accept checkbox. This will create a new HS device and it should belong to mcsMQTT. It looks to me that he payload for this topic is a number (0 and 1 apparently). Two options were discussed above to map these into 0 and 100 in HS. The button option, shown below, puts 0 and 100 in HS Device Value and shows 0 in 1 for displayed value (status).
                  The other option you have is to use expression and this will result in Device Value being 100 and the displayed value (status) being 100 for the case where mqtt topic payload is 1.



                  VSP to map 1 to 100
                  ----------------------------

                  Click image for larger version

Name:	Capture2.PNG
Views:	14
Size:	19.3 KB
ID:	1277045Click image for larger version

Name:	Capture1.PNG
Views:	14
Size:	17.0 KB
ID:	1277046Click image for larger version

Name:	Capture3.PNG
Views:	14
Size:	72.2 KB
ID:	1277047


                  Expression to map 1 to 100
                  -------------------------------------


                  Click image for larger version

Name:	Capture5.PNG
Views:	15
Size:	18.9 KB
ID:	1277044Click image for larger version

Name:	Capture6.PNG
Views:	14
Size:	40.6 KB
ID:	1277041Click image for larger version

Name:	Capture4.PNG
Views:	14
Size:	72.6 KB
ID:	1277048
                  Attached Files

                  Comment


                  • #10
                    Hi Michael,

                    I also have mosquitto MQTT broker running on that same PC, I didn't realise your plugin also has its own broker, I'll disable my mosquitto one and try the examples you've described above.

                    update
                    I've removed the database file and disabled mosquitto, how do I start your broker?
                    I'ts showing status as offline
                    Click image for larger version

Name:	status.PNG
Views:	15
Size:	15.4 KB
ID:	1277588
                    Click image for larger version

Name:	setup_general.PNG
Views:	21
Size:	127.4 KB
ID:	1277589
                    Cheers

                    Comment


                    • #11
                      mcsMQTT does not have a broker built in. You still need to run your broker. What I mentioned as unlikely is that my broker's IP is the same yours. It is not a problem, just unusual.

                      Comment


                      • #12
                        Ok, I run mosquitto and HS on the same pc.
                        Started mosquitto and your plugin has now connected. I now have a HS device after clicking the "accept" checkbox, however I can't modify the status values due to the device "settings" ?

                        Click image for larger version

Name:	1.png
Views:	20
Size:	21.5 KB
ID:	1277600
                        Click image for larger version

Name:	2.png
Views:	14
Size:	164.8 KB
ID:	1277601

                        Comment


                        • #13
                          If the device type is selected in mcsMQTT to be a number then value pairs are not used. The example I showed for this case was to use the $$PAYLOAD:*100 expression entry. The other example I showed was for the case of setting the type to button and then using value status pairs. I really think the numeric expression approach is what you want, but dont know why you want 0/100 rather than 0/1.

                          Comment


                          • #14
                            Originally posted by Michael McSharry View Post
                            I really think the numeric expression approach is what you want, but dont know why you want 0/100 rather than 0/1.
                            I was trying to use the HS device status to trigger an event, the default on for HS was a value of 100.

                            It all seems to be working as advertised now
                            Thanks very much for your help!

                            Comment


                            • #15
                              Normally Device Value is used to trigger events. I was not even aware that Device Status was a trigger option. Suggest you use the numeric expression to achieve this result and check for a Value of 100. There really is no need to use 0/100. 0/1 will work too and then no expression is needed. HS is flexible with values used for different states.

                              As an example, you could select mcsMQTT button type, leave the VSP to be 0 and 1 and then use HS Device Management page to change the Status text to be 0 = No Motion, 1 = Motion. This would then result in the more descriptive No Motion / Motion for the Device Status display and 0/1 for the trigger values.

                              Comment

                              Working...
                              X