Jump to content


c4Forums Member
  • Content Count

  • Joined

  • Last visited

  • Days Won


martymohr last won the day on March 29 2017

martymohr had the most liked content!

About martymohr

  • Rank
    Control4 End User
  • Birthday 04/26/1944

Profile Information

  • Gender
  • Location
    Denver, Colorado

Recent Profile Visitors

1,243 profile views
  1. martymohr

    Mockupancy driver

    Have no idea - but now working. C4 problem? Sent from my iPhone using Tapatalk
  2. martymohr

    Mockupancy driver

    Have same problem. Worked last trip but not this trip.
  3. If I'm understanding correctly - you want the AC off if a door has been opened for more than five minutes, and when all doors are shut, turn back on the AC. Now I don't have any way of testing this, and I don't like "when variable changes," so give this code a try and let me know if it works. Might need some additional tweaking. When DoorA opens do DoorOpenMacro !I like macros - helps keep code in one place When DoorA closes do DoorCloseMacro etc. --- DoorOpenMacro DoorVar += 1 if DoorVar = 1 !if more than one we've already done this ACVar = status of AC !need to know status of AC - it could be off - like in winter (if you need help with this code let me know) if ACVar = on Start 5MinuteTimer --- DoorCloseMacro DoorVar -= 1 if DoorVar = 0 Stop 5MinuteTimer !this line of code is actually not necessary - can wait till timer expires if ACVar = off start AC --- When 5MinuteTimer expires if DoorVar > 0 !is door still open? stop AC ACVar = off
  4. Two screen shots attached: Execute - is simply the embed point created by the Alexa driver Macro - the turn kitchen TV on macro It really is that simply. You want to place as much code as possible into macros (never at the embed point). That way you can call the same action from multiple embed points. For instance: you can have Alexa turn on the kitchen TV, but you can also have the green button on the remote turn on the kitchen TV. At each embed point simply call the macro.
  5. Here's how I've got mine set up (same scenario - great room / kitchen), except I control it with Alexa instead of a button. Create two macros: #1 - Kitchen TV on: Select the Xfinity 1 as the video source in Great Room Select the Xfinity 1 as the audio source in Kitchen (FYI - if the TV is already on in the Great Room the first item doesn't do anything. But programming it this way allows you to turn on both devices with a single button press.) #2 - Kitchen TV off: Turn off kitchen Then select which buttons you want to use, and call the appropriate macro when that button is pressed. I can provide screen shots if you need that.
  6. martymohr

    Conditional Statements

    It’s my understanding ( haven’t tried it so can’t be 100% sure) that you need to use the STOP statement as an ELSE condition. Example: IF (condition is true) Do something Stop do something else So once the stop command is executed all code thereafter is discarded. IOW, if the condition is NOT true the do something else statement would be the only line executed.
  7. martymohr

    Renaming Macros/Schedules, Etc.

    Ah ... reminiscent of the late 1970's early 1980's.
  8. Documentation for HE is rather sparse and outdated. So here's what I do (there may be a better way - but this does work). The key is you need to assure you change both the upper and lower LED. Here's the code for the first line::
  9. martymohr

    2017 Thoughts for Control4

    I love this thread – its déjà vu (except back then I was the dealer, not the end-user). In the late ‘70s one of our customers bought a CP/M “micro-computer” (my company sold software for Wang mini-computers). Of course we all laughed and asked what he could possibly do with a machine that had limited capabilities plus, of course, he knew nothing about computers or software. His (somewhat abbreviated) answer: it’s not what I can do WITH the machine, it’s that I can do it WITHOUT you. Turns out he was right! Just saying ….
  10. martymohr

    Alexa v Google home....go!

    Try other variations such as: Alexa turn front door exit on. It's still new technology so what might work for one doesn't always for someone else. IOW experiment.
  11. martymohr

    Homebridge Driver for HomeKit Support?

    Your point? Do you have a reference for your assertion? If you recall I said "a lot of us" not "the vast majority." Do you get a kick out of being argumentative? Please follow the advice I've seen other people tell you: when I post something please don't respond to it! You're not contributing at all.
  12. martymohr

    Homebridge Driver for HomeKit Support?

    Of course a lot of us are already invested in the Amazon Echo (Alexa) which does much (if not all) of what you're talking about. That said, there is always room for competition and alternative solutions (forces everyone to be better) so I say go for it (even though, unfortunately, you never how much of a market there is until AFTER you've developed the product). I can also help with beta testing.
  13. martymohr

    Amazon Echo Driver!

    Yes Sent from my iPhone using Tapatalk
  14. martymohr

    Trigger for Bathroom Fan Timer

    I would take the code that activates when you push the top button and move it into a macro. Then when you call it with Alexa execute the macro. That way you're assured of the same results regardless of how it is called.
  15. martymohr

    Amazon Echo Driver!

    Those are definitely two scenarios. You can also use notifications and/or emails to help debug code ... example: couldn't figure out why wakeup script was not firing at the appropriate time. Had ComposerHE send an email when it fired ... turned out the event triggered when the thermostat was changed, not at the wakeup time. I also like the feedback I get then when I change a variable - especially when I set vacation on.