Announcement

Collapse
No announcement yet.

Upgraded to 5.5.2.0: HS4 immediate status change is not publishing

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

    Upgraded to 5.5.2.0: HS4 immediate status change is not publishing

    HS4 version: 4.1.8.0

    Click image for larger version  Name:	Window Blind Tilt set by HS4.JPG Views:	0 Size:	4.2 KB ID:	1425984
    Click image for larger version

Name:	MQTT Window Blind Tilt.JPG
Views:	155
Size:	8.0 KB
ID:	1425987

    Click image for larger version  Name:	mcs Ref 604.JPG Views:	0 Size:	121.5 KB ID:	1425985

    The only way I can get status to update is via Publish Periodic Status every x minutes:

    Click image for larger version  Name:	Publish Periodic Status.JPG Views:	0 Size:	4.2 KB ID:	1425986
    HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
    Plugins: Z-Wave (via Nortek USB stick

    Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
    Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
    Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
    Insteon: 2413S Dual Band PLM
    Zigbee: zzh! CC2652R Rev A
    Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

    #2
    The debug file will show the logic trace from the HSEvent callback provided by HS to the MQTT message. It is enabled on the General Tab.

    Comment


      #3
      The other issue is that if I use the HS4 PI, my /cmd's do nothing.
      I've tried enabling the General Debug Option but I do not see a debug file at \Data\mcsMQTT\mcsMQTT.txt
      (I presume Linux would be /Data/mcsMQTT/mcsMQTT.txt)
      I had this option in mcsMQTT.ini:
      Code:
      [General]^M
      DebugLog="1"^M
      and I have this file:
      Code:
      drwxrwxr-x 2 root root 12288 Oct 13 22:25 .
      -rw-r--r-- 1 root root 318448 Oct 13 22:24 mcsMQTT Debug.txt
      -rw-r--r-- 1 root root 163840 Oct 13 22:17 mcsMQTT.db
      but it does not seem overly helpful...
      Code:
      root@homeseer:/usr/local/HomeSeer/Data/mcsMQTT# tail -20 'mcsMQTT Debug.txt'
      2020-10-13 10:17:58 PM 3090600 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=727)=1
      2020-10-13 10:17:58 PM 3090601 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer//Pushover 3P/Pushover 3P Root Device/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 12:51:06',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=727,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=727), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090601 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=728)=1
      2020-10-13 10:17:58 PM 3090601 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer//Pushover 3P/Pushover 3P Enabled Or Disabled/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 12:51:06',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=728,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=728), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090601 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=729)=1
      2020-10-13 10:17:58 PM 3090601 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer//Pushover 3P/Pushover 3P Last Message Sent/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 12:51:06',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=729,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=729), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090601 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=730)=1
      2020-10-13 10:17:58 PM 3090602 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer//Pushover 3P/Pushover 3P Disable Non Emergency Messages/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 12:51:06',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=730,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=730), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090602 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=731)=1
      2020-10-13 10:17:58 PM 3090602 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer//Pushover 3P/Pushover 3P Application Messages Remaining/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 12:51:06',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=731,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=731), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090602 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=732)=1
      2020-10-13 10:17:58 PM 3090602 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer/Unknown/Current Cost 3P/Current Cost Port Status/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 20:16:11',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=732,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=732), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090602 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=733)=1
      2020-10-13 10:17:58 PM 3090603 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer/Unknown/Current Cost 3P/Current Cost Temperature/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 20:16:12',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=733,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=733), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090603 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=734)=1
      2020-10-13 10:17:58 PM 3090603 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer/Unknown/Current Cost 3P/Current Cost Receiver Time/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 20:16:12',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=734,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=734), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090603 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=735)=1
      2020-10-13 10:17:58 PM 3090603 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer/Unknown/Current Cost 3P/Current Cost kWh Unit Cost/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 20:16:12',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=735,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=735), result=1, Key=Ref
      2020-10-13 10:17:58 PM 3090603 | MessageRefExists SELECT count(Ref) as extant FROM MQTT_MESSAGE WHERE (Ref=736)=1
      2020-10-13 10:17:58 PM 3090603 | UpdateRecord UPDATE MQTT_MESSAGE SET Source='homeseer/Unknown/Current Cost 3P/Current Cost Days To Log Live/cmd',Topic='$$COMPUTER:/$$FLOOR:/$$ROOM:/$$NAME:/status',Payload='',Template='$$VALUE:',Pattern='',Replace='' ,Match='0',LastDate='2020-10-13 20:16:12',Reject=1,Express=0,Elevate=0,ElevateKeys='',URIEnc ode=0,Accept=1,RetainFlag=1,PluginDevice=0,Subscribe=0,Chart =0,History=0,StorePayload=0,Ref=736,ChangeType=1,Misc=16,QOS =0,StatusType=0,Broker=0 WHERE (Ref=736), result=1, Key=Ref
      HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
      Plugins: Z-Wave (via Nortek USB stick

      Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
      Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
      Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
      Insteon: 2413S Dual Band PLM
      Zigbee: zzh! CC2652R Rev A
      Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

      Comment


        #4
        With the HS3 PI flavor at least /cmd is recognized and sent to HS4.
        HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
        Plugins: Z-Wave (via Nortek USB stick

        Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
        Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
        Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
        Insteon: 2413S Dual Band PLM
        Zigbee: zzh! CC2652R Rev A
        Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

        Comment


          #5
          The file is /Data/mcsMQTT/mcsMQTT Debug.txt

          The snapshot you posted shows no HSEvent lines so mcsMQTT was never made aware of any device changes. It also does not show any /cmd topics being received.

          Take a look at the HS log and the start of the mcsMQTT Debug log to evaluate if there are any startup errors.

          Comment


            #6
            I shut down the PI, removed mcsMQTT Debug.txt, restarted the PI and issued:
            Code:
            homeseer/Z-Wave/Living Room/Window Blind Tilt/cmd
            Code:
            90
            (Node 604)


            Here's the log:
            Code:
            2020-10-13 11:13:12 PM 944 | Update Accepted 600 to 96 StatusType=0 Payload= 96 RegExValue=96
            2020-10-13 11:13:12 PM 948 | Non-plugin Update Expression on payload 96
            2020-10-13 11:13:12 PM 967 | Command nonPlugin Device 600 to 96
            2020-10-13 11:13:12 PM 969 | Command 600 to 96, nValue=96, ControlValue=0, Range=Nothing, ControlType=Button, ControlString=Off, Label=Off, ControlUse=Off
            2020-10-13 11:13:12 PM 970 | Command numeric, but CAPI does not matche value or range
            2020-10-13 11:13:12 PM 970 | Command 600 to 96, nValue=96, ControlValue=1, Range=1 to 1, ControlType=ValueRangeSlider, ControlString=, Label=, ControlUse=Dim
            2020-10-13 11:13:12 PM 976 | ManageNewMessage homeseer/Z-Wave/Kitchen/Blind 2 Tilt/cmd
            2020-10-13 11:13:12 PM 977 | ActoOnMessageForTrigger Topic homeseer/Z-Wave/Kitchen/Blind 2 Tilt/cmd,Payload=96
            2020-10-13 11:13:12 PM 978 | Update Accepted 612 to 96 StatusType=0 Payload= 96 RegExValue=96
            2020-10-13 11:13:12 PM 980 | Non-plugin Update Expression on payload 96
            2020-10-13 11:13:12 PM 985 | Command nonPlugin Device 612 to 96
            2020-10-13 11:13:12 PM 985 | Command 612 to 96, nValue=96, ControlValue=0, Range=Nothing, ControlType=Button, ControlString=Closed Down, Label=Closed Down, ControlUse=Off
            2020-10-13 11:13:12 PM 985 | Command numeric, but CAPI does not matche value or range
            2020-10-13 11:13:12 PM 985 | Command 612 to 96, nValue=96, ControlValue=1, Range=1 to 1, ControlType=ValueRangeSlider, ControlString=, Label=, ControlUse=Dim
            2020-10-13 11:13:12 PM 986 | ManageNewMessage homeseer/Z-Wave/Bedroom/Blind Tilt/cmd
            2020-10-13 11:13:12 PM 986 | ActoOnMessageForTrigger Topic homeseer/Z-Wave/Bedroom/Blind Tilt/cmd,Payload=96
            2020-10-13 11:13:12 PM 986 | Update Accepted 604 to 96 StatusType=0 Payload= 96 RegExValue=96
            2020-10-13 11:13:12 PM 989 | Non-plugin Update Expression on payload 96
            2020-10-13 11:13:12 PM 995 | Command nonPlugin Device 604 to 96
            2020-10-13 11:13:12 PM 996 | Command 604 to 96, nValue=96, ControlValue=0, Range=Nothing, ControlType=Button, ControlString=Off, Label=Off, ControlUse=Off
            2020-10-13 11:13:12 PM 996 | Command numeric, but CAPI does not matche value or range
            2020-10-13 11:13:12 PM 996 | Command 604 to 96, nValue=96, ControlValue=1, Range=1 to 1, ControlType=ValueRangeSlider, ControlString=, Label=, ControlUse=Dim
            2020-10-13 11:13:12 PM 997 | ManageNewMessage homeseer/Z-Wave/Living Room/Window Blind Tilt/cmd
            2020-10-13 11:13:12 PM 997 | ActoOnMessageForTrigger Topic homeseer/Z-Wave/Living Room/Window Blind Tilt/cmd,Payload=96
            2020-10-13 11:13:12 PM 997 | Update Accepted 608 to 96 StatusType=0 Payload= 96 RegExValue=96
            2020-10-13 11:13:12 PM 999 | Non-plugin Update Expression on payload 96
            2020-10-13 11:13:12 PM 1005 | Command nonPlugin Device 608 to 96
            2020-10-13 11:13:12 PM 1005 | Command 608 to 96, nValue=96, ControlValue=0, Range=Nothing, ControlType=Button, ControlString=Off, Label=Off, ControlUse=Off
            2020-10-13 11:13:12 PM 1005 | Command numeric, but CAPI does not matche value or range
            2020-10-13 11:13:12 PM 1005 | Command 608 to 96, nValue=96, ControlValue=1, Range=1 to 1, ControlType=ValueRangeSlider, ControlString=, Label=, ControlUse=Dim
            2020-10-13 11:13:12 PM 1006 | ManageNewMessage homeseer/Z-Wave/Living Room/Door Blind Tilt/cmd
            2020-10-13 11:13:12 PM 1006 | ActoOnMessageForTrigger Topic homeseer/Z-Wave/Living Room/Door Blind Tilt/cmd,Payload=96
            2020-10-13 11:13:12 PM 1006 | Update Accepted 649 to 96 StatusType=0 Payload= 96 RegExValue=96
            2020-10-13 11:13:12 PM 1009 | Non-plugin Update Expression on payload 96
            2020-10-13 11:13:12 PM 1016 | Command nonPlugin Device 649 to 96
            2020-10-13 11:13:12 PM 1016 | Command 649 to 96, nValue=96, ControlValue=0, Range=Nothing, ControlType=Button, ControlString=Off, Label=Off, ControlUse=Off
            2020-10-13 11:13:12 PM 1016 | Command numeric, but CAPI does not matche value or range
            2020-10-13 11:13:12 PM 1016 | Command 649 to 96, nValue=96, ControlValue=1, Range=1 to 1, ControlType=ValueRangeSlider, ControlString=, Label=, ControlUse=Dim
            2020-10-13 11:13:12 PM 1018 | ManageNewMessage homeseer/Z-Wave/Kitchen/Blind 3 Tilt/cmd
            2020-10-13 11:13:12 PM 1018 | ActoOnMessageForTrigger Topic homeseer/Z-Wave/Kitchen/Blind 3 Tilt/cmd,Payload=96
            2020-10-13 11:13:27 PM 16604 | Update Accepted 604 to 90 StatusType=0 Payload= 90 RegExValue=90
            2020-10-13 11:13:27 PM 16610 | Non-plugin Update Expression on payload 90
            2020-10-13 11:13:27 PM 16618 | Command nonPlugin Device 604 to 90
            2020-10-13 11:13:27 PM 16618 | Command 604 to 90, nValue=90, ControlValue=0, Range=Nothing, ControlType=Button, ControlString=Off, Label=Off, ControlUse=Off
            2020-10-13 11:13:27 PM 16619 | Command numeric, but CAPI does not matche value or range
            2020-10-13 11:13:27 PM 16619 | Command 604 to 90, nValue=90, ControlValue=1, Range=1 to 1, ControlType=ValueRangeSlider, ControlString=, Label=, ControlUse=Dim
            2020-10-13 11:13:27 PM 16620 | ManageNewMessage homeseer/Z-Wave/Living Room/Window Blind Tilt/cmd
            2020-10-13 11:13:27 PM 16620 | ActoOnMessageForTrigger Topic homeseer/Z-Wave/Living Room/Window Blind Tilt/cmd,Payload=90
            2020-10-13 11:13:34 PM 23275 | Shutdown IO
            HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
            Plugins: Z-Wave (via Nortek USB stick

            Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
            Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
            Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
            Insteon: 2413S Dual Band PLM
            Zigbee: zzh! CC2652R Rev A
            Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

            Comment


              #7
              I see the /cmd issue with HS4. It will be fixed in the next update. I need to first test on Linux so cannot post tonight.
              I expected more in the debug at startup to assess initialization issues. Did the HS log have any info?

              Comment


                #8
                I put the untested update at http://mcsSprinklers.com/mcsMQTTHS4_Oct14.zip. There are some Windows-specific references that were added for BLE functionality. Besides the /cmd I also added a debug output when registering for the HSEvent callbacks. If you want to try you can unzip all the .dll's into the /bin/mcsMQTT folder. The .exe goes in HS folder. My concern is if there will be any startup errors due to the new references. That new code should not be invoked so it should run on Linux.

                Comment


                  #9
                  Here's the new log:
                  Code:
                  2020-10-14 12:26:52 AM 11 | mcsMQTT Version 5.6.0.0 running at /usr/local/HomeSeer, HS is at /usr/local/HomeSeer
                  2020-10-14 12:26:52 AM 18 | mcsMQTT HS4 InitHW ComputerName= homeseer
                  2020-10-14 12:26:52 AM 139 | mcsMQTT Debug InitHW Database Ready
                  2020-10-14 12:26:52 AM 146 | PopulateReceiveDict homeseer/Z-Wave/Kitchen/Blind 2 Switch/cmd, PluginDevice=0, Ref=599
                  2020-10-14 12:26:52 AM 167 | PopulateReceiveDict homeseer/Z-Wave/Kitchen/Blind 2 Tilt/cmd, PluginDevice=0, Ref=600
                  2020-10-14 12:26:52 AM 169 | PopulateReceiveDict homeseer/Z-Wave/Living Room/Window Blind Switch/cmd, PluginDevice=0, Ref=603
                  2020-10-14 12:26:52 AM 170 | PopulateReceiveDict homeseer/Z-Wave/Kitchen/Blind 3 Switch/cmd, PluginDevice=0, Ref=648
                  2020-10-14 12:26:52 AM 172 | PopulateReceiveDict , PluginDevice=0, Ref=611
                  2020-10-14 12:26:52 AM 172 | PopulateReceiveDict homeseer/Z-Wave/Bedroom/Blind Tilt/cmd, PluginDevice=0, Ref=612
                  2020-10-14 12:26:52 AM 174 | PopulateReceiveDict homeseer/Z-Wave/Living Room/Window Blind Tilt/cmd, PluginDevice=0, Ref=604
                  2020-10-14 12:26:52 AM 175 | PopulateReceiveDict homeseer/Z-Wave/Living Room/Door Blind Switch/cmd, PluginDevice=0, Ref=607
                  2020-10-14 12:26:52 AM 176 | PopulateReceiveDict homeseer/Z-Wave/Living Room/Door Blind Tilt/cmd, PluginDevice=0, Ref=608
                  2020-10-14 12:26:52 AM 178 | PopulateReceiveDict homeseer/Z-Wave/Kitchen/Blind 3 Tilt/cmd, PluginDevice=0, Ref=649
                  2020-10-14 12:26:52 AM 180 | PopulateReceiveDict homeseer/Z-Wave/Living Room/Door Blind/cmd, PluginDevice=0, Ref=605
                  2020-10-14 12:26:52 AM 182 | PopulateReceiveDict homeseer/Z-Wave/Kitchen/Blind 2/cmd, PluginDevice=0, Ref=597
                  2020-10-14 12:26:52 AM 183 | PopulateReceiveDict homeseer/Z-Wave/Bedroom/Blind/cmd, PluginDevice=0, Ref=609
                  2020-10-14 12:26:52 AM 185 | PopulateReceiveDict homeseer/Z-Wave/Kitchen/Blind 3/cmd, PluginDevice=0, Ref=646
                  2020-10-14 12:26:52 AM 187 | PopulateReceiveDict , PluginDevice=0, Ref=714
                  2020-10-14 12:26:52 AM 187 | PopulateReceiveDict homeseer/Z-Wave/Living Room/Window Blind/cmd, PluginDevice=0, Ref=601
                  2020-10-14 12:26:52 AM 189 | PopulateReceiveDict homeseer//Pushover 3P/Pushover 3P Root Device/cmd, PluginDevice=0, Ref=727
                  2020-10-14 12:26:52 AM 190 | PopulateReceiveDict homeseer//Pushover 3P/Pushover 3P Enabled Or Disabled/cmd, PluginDevice=0, Ref=728
                  2020-10-14 12:26:52 AM 192 | PopulateReceiveDict homeseer//Pushover 3P/Pushover 3P Last Message Sent/cmd, PluginDevice=0, Ref=729
                  2020-10-14 12:26:52 AM 193 | PopulateReceiveDict homeseer//Pushover 3P/Pushover 3P Disable Non Emergency Messages/cmd, PluginDevice=0, Ref=730
                  2020-10-14 12:26:52 AM 195 | PopulateReceiveDict homeseer//Pushover 3P/Pushover 3P Application Messages Remaining/cmd, PluginDevice=0, Ref=731
                  2020-10-14 12:26:52 AM 196 | PopulateReceiveDict homeseer/Node 17/Z-Wave/Neo Electronics Switch/cmd, PluginDevice=0, Ref=707
                  2020-10-14 12:26:52 AM 198 | PopulateReceiveDict homeseer/Node 17/Z-Wave/Power Management Notification/cmd, PluginDevice=0, Ref=708
                  2020-10-14 12:26:52 AM 199 | PopulateReceiveDict homeseer/Node 17/Z-Wave/kW Hours/cmd, PluginDevice=0, Ref=709
                  2020-10-14 12:26:52 AM 201 | PopulateReceiveDict homeseer/Node 17/Z-Wave/Watts/cmd, PluginDevice=0, Ref=710
                  2020-10-14 12:26:52 AM 203 | PopulateReceiveDict homeseer/Node 17/Z-Wave/Volts/cmd, PluginDevice=0, Ref=711
                  2020-10-14 12:26:52 AM 204 | PopulateReceiveDict homeseer/Node 17/Z-Wave/Amperes/cmd, PluginDevice=0, Ref=712
                  2020-10-14 12:26:52 AM 206 | PopulateReceiveDict homeseer/Node 17/Z-Wave/Switch/cmd, PluginDevice=0, Ref=713
                  2020-10-14 12:26:52 AM 207 | PopulateReceiveDict homeseer/Plug-In/Pushover/Pushover 3P Root Device/cmd, PluginDevice=0, Ref=59
                  2020-10-14 12:26:52 AM 209 | PopulateReceiveDict homeseer/Plug-In/Pushover/Pushover 3P Enabled/Disabled/cmd, PluginDevice=0, Ref=60
                  2020-10-14 12:26:52 AM 210 | PopulateReceiveDict homeseer/Plug-In/Pushover/Pushover 3P Last Message Sent/cmd, PluginDevice=0, Ref=61
                  2020-10-14 12:26:52 AM 212 | PopulateReceiveDict homeseer/Plug-In/Pushover/Pushover 3P Disable Non-Emergency Messages/cmd, PluginDevice=0, Ref=62
                  2020-10-14 12:26:52 AM 214 | PopulateReceiveDict homeseer/Plug-In/Pushover/Pushover 3P Application Messages Remaining/cmd, PluginDevice=0, Ref=63
                  2020-10-14 12:26:52 AM 215 | PopulateReceiveDict homeseer/Virtual/House Status/Solar Altitde/cmd, PluginDevice=0, Ref=103
                  2020-10-14 12:26:52 AM 217 | PopulateReceiveDict homeseer/Virtual/House Status/Solar Azimuth/cmd, PluginDevice=0, Ref=104
                  2020-10-14 12:26:52 AM 218 | PopulateReceiveDict homeseer/Virtual/Garage/Reset Tamper Cover/cmd, PluginDevice=0, Ref=166
                  2020-10-14 12:26:52 AM 220 | PopulateReceiveDict homeseer/Insteon/System/Insteon Plugin/cmd, PluginDevice=0, Ref=725
                  2020-10-14 12:26:52 AM 221 | PopulateReceiveDict homeseer//Global Insteon/All Devices/cmd, PluginDevice=0, Ref=724
                  2020-10-14 12:26:52 AM 223 | PopulateReceiveDict homeseer//Living Room/Fireplace Light/cmd, PluginDevice=0, Ref=723
                  2020-10-14 12:26:52 AM 224 | PopulateReceiveDict homeseer//Living Room/Living Room Light/cmd, PluginDevice=0, Ref=722
                  2020-10-14 12:26:52 AM 226 | PopulateReceiveDict homeseer/Battery Health/SDJ-Health/Battery Health Root/cmd, PluginDevice=0, Ref=721
                  2020-10-14 12:26:52 AM 228 | PopulateReceiveDict homeseer/Plugin/NetCam/Take Picture/cmd, PluginDevice=0, Ref=720
                  2020-10-14 12:26:52 AM 230 | PopulateReceiveDict homeseer/NetCam/Cameras/Foscam 192.168.1.88/cmd, PluginDevice=0, Ref=719
                  2020-10-14 12:26:52 AM 232 | PopulateReceiveDict homeseer/Plugin/NetCam/Take Picture/cmd, PluginDevice=0, Ref=718
                  2020-10-14 12:26:52 AM 232 | PopulateReceiveDict homeseer/NetCam/Cameras/Foscam FI8904W/cmd, PluginDevice=0, Ref=717
                  2020-10-14 12:26:52 AM 234 | PopulateReceiveDict homeseer/Counters-Timers/Counters/Counter 1/cmd, PluginDevice=0, Ref=716
                  2020-10-14 12:26:52 AM 235 | PopulateReceiveDict homeseer/Counters-Timers/Timers/Timer 1/cmd, PluginDevice=0, Ref=715
                  2020-10-14 12:26:52 AM 237 | PopulateReceiveDict homeseer/Z-Wave/Kitchen/Blind 2 Battery/cmd, PluginDevice=0, Ref=598
                  2020-10-14 12:26:52 AM 238 | PopulateReceiveDict homeseer/Z-Wave/Living Room/Window Blind Battery/cmd, PluginDevice=0, Ref=602
                  2020-10-14 12:26:52 AM 240 | PopulateReceiveDict homeseer/Z-Wave/Kitchen/Blind 3 Battery/cmd, PluginDevice=0, Ref=647
                  2020-10-14 12:26:52 AM 241 | PopulateReceiveDict homeseer/Z-Wave/Living Room/Door Blind Battery/cmd, PluginDevice=0, Ref=606
                  2020-10-14 12:26:52 AM 243 | PopulateReceiveDict , PluginDevice=0, Ref=610
                  2020-10-14 12:26:52 AM 243 | PopulateReceiveDict homeseer/Node 15/Z-Wave/Aeon Labs Switch/cmd, PluginDevice=0, Ref=726
                  2020-10-14 12:26:52 AM 244 | PopulateReceiveDict homeseer/Unknown/Current Cost 3P/Current Cost Port Status/cmd, PluginDevice=0, Ref=732
                  2020-10-14 12:26:52 AM 246 | PopulateReceiveDict homeseer/Unknown/Current Cost 3P/Current Cost Temperature/cmd, PluginDevice=0, Ref=733
                  2020-10-14 12:26:52 AM 248 | PopulateReceiveDict homeseer/Unknown/Current Cost 3P/Current Cost Receiver Time/cmd, PluginDevice=0, Ref=734
                  2020-10-14 12:26:52 AM 249 | PopulateReceiveDict homeseer/Unknown/Current Cost 3P/Current Cost kWh Unit Cost/cmd, PluginDevice=0, Ref=735
                  2020-10-14 12:26:52 AM 251 | PopulateReceiveDict homeseer/Unknown/Current Cost 3P/Current Cost Days To Log Live/cmd, PluginDevice=0, Ref=736
                  2020-10-14 12:26:52 AM 252 | mcsMQTT Debug Receive Ready
                  2020-10-14 12:26:52 AM 252 | mcsMQTT Debug Trigger Ready
                  2020-10-14 12:26:52 AM 338 | HW Init Complete
                  The PI status is now: CRITICAL: Plugin has disconnected.
                  HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                  Plugins: Z-Wave (via Nortek USB stick

                  Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                  Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                  Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                  Insteon: 2413S Dual Band PLM
                  Zigbee: zzh! CC2652R Rev A
                  Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                  Comment


                    #10
                    On the General tab near the bottom is a setting to enumerate devices at startup or only with button. In your case, since you are publishing non-plugin devices changes you will want this setting to be enumerate at startup. If you use the Enumerate button now then you will start getting the callbacks and zwave device changes published. If you change the radio selection then you no longer need to use the button unless you add new HS devices that you want to publish via mcsMQTT and do not want to restart the plugin.

                    The attached I have tested on Linux with success. It contains more debug in the callback register process if you continue to have problems and should have the fix for /cmd. Unzip into /bin/mcsMQTT folder. There is still more I need in the BLE area, but at least the BLE should not interfere with normal startup now.
                    Attached Files

                    Comment


                      #11
                      I replaced the DLL and the plugin is running now albeit it now reports 'INFO: Plugin start is pending'.

                      /status is now publishing if I control the device from HS.

                      /cmd is not doing anything though. It sees the change from MQTT but is not controlling the HS device:
                      Code:
                      2020-10-16 10:01:45 AM 176079 | ManageNewMessage homeseer/Z-Wave/Bedroom/Blind Tilt/cmd
                      2020-10-16 10:01:45 AM 176080 | ActoOnMessageForTrigger Topic homeseer/Z-Wave/Bedroom/Blind Tilt/cmd,Payload=41
                      2020-10-16 10:01:49 AM 180860 | Register Events 1, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      2020-10-16 10:01:49 AM 180860 | Register Events 2, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      2020-10-16 10:01:49 AM 180860 | Register Events 3, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      2020-10-16 10:01:59 AM 190861 | Register Events 1, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      2020-10-16 10:01:59 AM 190861 | Register Events 2, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      2020-10-16 10:01:59 AM 190861 | Register Events 3, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      2020-10-16 10:02:09 AM 200863 | Register Events 1, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      2020-10-16 10:02:09 AM 200863 | Register Events 2, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      2020-10-16 10:02:09 AM 200863 | Register Events 3, bValueCallbackRegistered=True, bStringCallbackRegistered=True
                      HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                      Plugins: Z-Wave (via Nortek USB stick

                      Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                      Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                      Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                      Insteon: 2413S Dual Band PLM
                      Zigbee: zzh! CC2652R Rev A
                      Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                      Comment


                        #12
                        For non-plugin devices the trigger for mcsMQTT is the HSEvent callback. "HSEvent" will be in the HS log. Post #11 shows that mcsMQTT has requested the callback for HS.

                        I redid my test on a Linux HS 4.1.2.0 and mcsMQTT 5.6.0.0. I have a virtual device with ON/OFF button. I can click the button and the MQTT message is generated. I also get normal plugin status

                        Click image for larger version

Name:	Capture.PNG
Views:	194
Size:	17.9 KB
ID:	1426505

                        If you want to install 5.6.0.0 then download http://mcsSprinklers.com/HSPI_mcsMQTT_5_6_0_0.zip. Move the zip to HS4 folder. Extract updater_override.json into HS folder. Go to HS Plugin Menu, Add. Only HS4 listing will be mcsMQTT. Select it. When done remove updater_override.json to restore normal Updater operation.

                        Comment


                          #13
                          Actually I see that you are trying to command the Zwave device. Let me test that scenario.

                          Comment


                            #14
                            Originally posted by Michael McSharry View Post
                            If you want to install 5.6.0.0 then download http://mcsSprinklers.com/HSPI_mcsMQTT_5_6_0_0.zip. Move the zip to HS4 folder. Extract updater_override.json into HS folder. Go to HS Plugin Menu, Add. Only HS4 listing will be mcsMQTT. Select it. When done remove updater_override.json to restore normal Updater operation.
                            I installed 5.6.0.0 and the plugin now successfully completes startup.

                            Originally posted by Michael McSharry View Post
                            Actually I see that you are trying to command the Zwave device. Let me test that scenario.
                            Correct! I'm using HA to set the tilt value via MQTT /cmd. mcsMQTT sees the payload but is not controlling the HS device.

                            Previously (before 5.5.2) /cmd was working from HA but /status back to HA was not...
                            HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                            Plugins: Z-Wave (via Nortek USB stick

                            Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                            Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                            Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                            Insteon: 2413S Dual Band PLM
                            Zigbee: zzh! CC2652R Rev A
                            Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                            Comment


                              #15
                              Seems odd to me that it was working on earlier versions of HS4 plugin as the method being used to notify HS4 to change a non-plugin device was not ever correct. I did not guess at the right conversion method for HS3 to HS4, but now with 5.6.0.1 it is fixed. http://mcsSprinklers.com/HSPI_mcsMQTT_5_6_0_1.zip

                              Comment

                              Working...
                              X