Announcement

Collapse
No announcement yet.

Device layout to display properly in HS Mobile?

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

  • #46
    Click image for larger version

Name:	Screenshot_20200114-144104.png
Views:	38
Size:	175.1 KB
ID:	1354153
    Originally posted by rjh View Post
    I just don't have time right now to analyze what is going on, I HAVE to get HS4 out the door.
    f you can run the sample plugin and see if that works ok it has a thermostat implementation in it. If that works, you can base your plugin off those devices.
    Same problem.

    Man, I get everybody is busy. Me too, you know.

    Comment


    • #47
      That ccs_Type is the setpoint sub type:

      Public Enum eDeviceSubType_Setpoint
      Invalid = 0
      Heating_1 = 1
      Cooling_1 = 2
      Furnace = 7
      Dry_Air = 8
      Moist_Air = 9
      Auto_Changeover = 10
      Energy_Save_Heat = 11
      Energy_Save_Cool = 12
      Away_Heating = 13
      End Enum

      Originally posted by alexbk66 View Post

      I looked at Z-Wave code too, what I couldn't work out, which is an important bit.

      Code:
      DT.Device_SubType = CI.ccs_Type
      Code:
      public byte ccs_Type
      {
      get
      {
      return mvarSomeType;
      }
      }
      website | buy now | support | youtube

      Comment


      • #48
        The error is an exception, here is the function:

        public void HeatSetPointUpClicked(IThermostatView view) {

        if (HeatSetPointDevice == null) {
        return;
        }

        try {
        var newValue = HeatSetPointDevice.ChangeValue(true);
        view?.SetHeatSetPointText(HeatSetPoint);
        view?.QueueSetPointChange(new ThermostatSetPointChangeEventArgs(HeatSetPointDeviceRef, newValue));
        }
        catch (Exception exception) {
        exception.Log();
        view?.ShowError("Cannot control thermostat. There is a problem with the set-point control configuration.");
        }
        }

        Originally posted by alexbk66 View Post

        Thank you Rich rjh .

        What "Sample Plugin" do you mean?

        Regarding the error I'm getting "Cannot control thermostat. There is a problem with the set-point control configuration." - Can you please check in your code when it's displayed? May be this will give some clue. But I don't think it's related to "moving all your controls to child devices" in any way.
        website | buy now | support | youtube

        Comment


        • #49
          Originally posted by rjh View Post
          The error is an exception, here is the function:
          Where's the log going? LogCat? rjh

          Code:
          exception.Log();

          Comment


          • #50
            Originally posted by rjh View Post
            The error is an exception, here is the function:

            public void HeatSetPointUpClicked(IThermostatView view) {
            I assume that code for "CoolSetPointUpClicked" is the same?

            Comment


            • #51
              Using your sample plugin I get the same error, so for you it should be easy to find why?

              Comment


              • #52
                Ok, that is odd, but that makes it easy for me to recreate the issue, so let me run that plugin and see what is going on.

                Originally posted by alexbk66 View Post
                Using your sample plugin I get the same error, so for you it should be easy to find why?
                website | buy now | support | youtube

                Comment


                • #53
                  The problem is the "ControlUse" is not set, make sure you set that on your control pairs for the heat and cool setpoints. Which you need to do anyway if you want your thermostat to work with Google Home or Alexa:

                  Pair.ControlUse = ePairControlUse._HeatSetPoint

                  Originally posted by alexbk66 View Post
                  Using your sample plugin I get the same error, so for you it should be easy to find why?
                  website | buy now | support | youtube

                  Comment

                  Working...
                  X