Control4 Programming: Viewer Questions Answered: String Variables and Conditional Logic

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 17

  • @leemandel
    @leemandel 3 года назад +1

    Could I hire your services for some assistance?

  • @asdfkljhqweroiuyzxcv
    @asdfkljhqweroiuyzxcv 4 года назад +1

    This is quite nice. If you're up for another one... :)
    Q1 : What's the best way to use the up/down keypad buttons for volume? Pulse the volume up/down in the "On-Pressed" event? Or use the Pressed/Release events to do up/down? I'm worried about room max-volume, and don't see an obvious way to limit things.
    Q2: Ideally the "Playlist Press" would be "tri-state":
    Press State 1: "Play Rush Playlist".
    Press State 2: "If Playing, Pause Rush".
    Press State 3: "If Rush is paused for < 1 hour, Continue Playing Rush else restart the Rush playlist".
    I'll give this a try and see if it works.

    • @QVisionGarage
      @QVisionGarage  4 года назад

      I’ll make something up tomorrow. I’m pretty sure I know what you’re after in the second part. I’d say the way you want to look at this is again with a combo of string variables and conditional logic. First part should be rather easy too. For reference what source are you using? Like a Sonos amp? A receiver? Ea controller with native drivers acting as a preamp?

    • @asdfkljhqweroiuyzxcv
      @asdfkljhqweroiuyzxcv 4 года назад

      ​@@QVisionGarage I'm using native C4 stuff, using Tidal as the streaming source. I've got both the C4 Matrix+Amp for some zones, and the 8--zone Triad Matrix & Amps for the other zones. Also a few Triad Ones scattered around to make wiring easier. Getting the basics setup and working was easy, but now that it's all done the programming is the fun part! :)

    • @asdfkljhqweroiuyzxcv
      @asdfkljhqweroiuyzxcv 4 года назад

      I'm playing with the Room Control driver now, and binding the up/down keybuttons via a Connection "just worked" for a single room. It gives both the pulse behavior, and the "hold up/down" behavior". The only issue is that I don't see how to bind the volume control to multiple rooms, as that has the "*single*" marked in the docs. May have to stick w/ my manual programming afterall...

    • @QVisionGarage
      @QVisionGarage  4 года назад

      @@asdfkljhqweroiuyzxcv So had some power problems yesterday but I've got a video up for you touching on the questions you relayed. ruclips.net/video/2fqhma2ywL8/видео.html

  • @to1to192
    @to1to192 3 года назад +1

    If I have, for instace, List with next items: One, Two, Three, Four. How can I use conditional statement ? I tried to use next statement: if MyRoom -> Thermostat -> LIST 1 VALUE EQUAL TO Two. This programming does not work (statement, located under that didn't execute). What wrong I do ?

    • @QVisionGarage
      @QVisionGarage  3 года назад +1

      So the IF statement needs a trigger. Example IF the temp in the room is equal to 60 do this.... you need to go to the thermostat or whatever the item is and set a parameter for the string integer to take affect. So and I’m sure this is tricky to understand via text but on the left you’d go to the thermostat and set the value of whatever string you’re using. Once that’s done your original if statement will work. Trick here is you need to have a string reset otherwise it’s only ever going to work once.

    • @to1to192
      @to1to192 3 года назад

      @@QVisionGarage In thermostat there is no options to make type conversion from string to integer. For this list there are only label (list1) and values (in my examle it is One, Two, Three, Four) - it is so called "Custom List". So, in programming I find my list1, and when list1 value changes (event) I want to execute this "script". When user make some changes in list (in user interface he changed from one to two for instace) script execution will be done. In script we check what list item user selected, and then corresponding statements will be executed. I don't understand exacly what should I do to make it works.

    • @QVisionGarage
      @QVisionGarage  3 года назад

      @@to1to192 if you want to email me the project I’ll be glad to take a look at it and try to help you figure it out. I’m having trouble visualizing what you’re after. Qvisionentertainment@gmail.com

    • @to1to192
      @to1to192 3 года назад

      @@QVisionGarage Hello. I find the solution of that problem. It is in agents -> system variables section. There are some others values for LIST1 displayed, but they corresponds to selected items...
      One more question. I am looking for a driver for text displaying in user interface. For instance I have heat pump with next work modes: heating, cooling, defrost, off, alarm. I want to display this mode (in text format) in UI page. Do you have such type of driver (or something similar) ? I didn't see it in control4 drivers database.

  • @markvolpe4828
    @markvolpe4828 3 года назад

    Haven't tested it out but, I think the double tap feature you were trying for would work out if the initial programing was put under the single tap event instead of when the button is pressed.

  • @jonathanboynton1449
    @jonathanboynton1449 4 года назад +1

    Would the Room Control driver make this process easier?

    • @QVisionGarage
      @QVisionGarage  4 года назад +1

      Jonathan Boynton turns out it would. Some one else had mentioned that to me on reddit, I have no clue that was a thing. All that said I think it’s still good to be able understand how string variables work for other applications as well.

    • @asdfkljhqweroiuyzxcv
      @asdfkljhqweroiuyzxcv 4 года назад

      @@QVisionGarage Can you elaborate? What would the room control driver bring to this?

    • @QVisionGarage
      @QVisionGarage  4 года назад

      It takes the leg work (programming) out of the process. The driver is basically the easy way of doing this. I’ve still never actually used it tho. I’d just as soon write the logic, really because I can and enjoy the challenge.

    • @asdfkljhqweroiuyzxcv
      @asdfkljhqweroiuyzxcv 4 года назад

      ​@@QVisionGarage I got this working to cycle between Tidal Playlists, and control the volume buttons on the keypad all via the C4 Room Control driver. I've posted how to do it here. www.c4forums.com/topic/27650-room-control-driver/