• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login

V_HVAC_FLOW_STATE issue

Scheduled Pinned Locked Moved Developers Zone
10 Posts 4 Posters 1.3k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    Daniele
    last edited by 10 Sept 2018, 05:39

    Hi,
    I have a flow state sensor, and I'd like to change the state at pre-defined times during the day.
    I created a timer and an operation like this:
    0_1536557828124_a3616db8-f4e0-4f92-a063-38bde3f016cd-image.png
    but the state doesn't change.
    I tried adding single or double quotes to the payload, the sensor value changes but it's incorrect (i.e. contains also the quotes).
    Am I missing something?
    I'm using MC 1.3.0 final.
    Thanks
    Daniele

    S J 2 Replies Last reply 10 Sept 2018, 09:36 Reply Quote 0
    • S Offline
      skywatch @Daniele
      last edited by 10 Sept 2018, 09:36

      @daniele It would help if you could post your code for the node so we can see how you are getting the data and using it.

      FWIW I prefer to do things like this within the node. That way, if the controller goes down the node still carries on doing its job. You could add a RTC to the node to help with this, I am doing this with a node later this week.

      1 Reply Last reply Reply Quote 0
      • D Offline
        Daniele
        last edited by 10 Sept 2018, 09:47

        @skywatch , I understand your suggestion, but I usually prefer having all the logic in one place (the controller), and having the nodes as simple as possible, let's say simple executors of what the controller tells them.

        BTW, in this case I'm using a "virtual" sensors (attached to a real node in MyController), so the node doesn't have anything to do; I need it as a state variable that determines the way the controller logic works.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jkandasa @Daniele
          last edited by 10 Sept 2018, 13:13

          @daniele

          • Do you see any error on mycontroller.log log file?
          • Do you see any date in Status >> Resources logs page?
          • Can you check your node receives the payload when you operate directly?
          1 Reply Last reply Reply Quote 0
          • D Offline
            Daniele
            last edited by 10 Sept 2018, 15:37

            @jkandasa :

            • 2018-09-10 17:34:50,038 WARN [Quartz_Scheduler_Worker-9] [org.mycontroller.standalone.message.McActionEngine:158] Not supported opration! OperationTable for sensor variable:[Off]
            • nothing under resource logs
            • node is working properly if I change the sensors value manually from the dashboard
            1 Reply Last reply Reply Quote 0
            • N Offline
              ncollins
              last edited by 10 Sept 2018, 18:16

              Have you tried setting the payload value to 0 instead of "Off"?

              1 Reply Last reply Reply Quote 0
              • D Offline
                Daniele
                last edited by 10 Sept 2018, 19:04

                I tried also with numbers.
                The value changes in the dashboard, but becomes the number, not the corresponding label

                J 2 Replies Last reply 11 Sept 2018, 03:20 Reply Quote 0
                • J Offline
                  jkandasa @Daniele
                  last edited by 11 Sept 2018, 03:20

                  @daniele Thanks for the detailed report. It is a bug in MyController. I have opened a ticket. I will fix it soon.

                  https://github.com/mycontroller-org/mycontroller/issues/466

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jkandasa @Daniele
                    last edited by 11 Sept 2018, 05:00

                    @daniele I have added fix for this issue, kindly check it in SNAPSHOT version.

                    If you want to use special operation on your payload, should starts with sp:,

                    Example: I want to use toggle special operation. payload should be as sp:toggle

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Daniele
                      last edited by 11 Sept 2018, 07:15

                      Works perfectly!
                      You rock!

                      1 Reply Last reply Reply Quote 1
                      7 out of 10
                      • First post
                        7/10
                        Last post

                      0

                      Online

                      626

                      Users

                      532

                      Topics

                      3.4k

                      Posts
                      Copyright © 2015-2025 MyController.org | Contributors | Localization