Announcement

Collapse
No announcement yet.

Change Rooma Schedule

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change Rooma Schedule

    As of build 2.0.34 (in beta section if not released), you will be able to change the Roomba schedule using a scripting call

    PLEASE NOTE:
    I have also fixed setting the preferences from the devices (carpet boost, etc)

    The scripting call is SetSchedule

    Code:
    hs.PluginFunction("BLRoombaWifi", "", "SetSchedule", new Object(){"Sonny", "Monday=10:00,Tuesday=none,Thursday=11:00"})
    The 1st parameter is the roomba name
    The 2nd parameter is a string of days equal to the time or "none" - separated by a comma

    If you use none for a day of the week then that day will be disabled
    If you set the say of the week to a time (in 24 hour format), then the day of the week is enabled

    It will only change the days you specify

    PLEASE NOTE

    If you are using the Roomba i7, then you must pass in all days on the same line.
    For multiple times per day, separate them with a pipe (|) character

    Code:
    hs.PluginFunction("BLRoombaWifi", "", "SetSchedule", new Object(){"Sonny", "Sunday=none,Monday=10:00|15:00,Tuesday=none,Wednesday=none,Thursday=11:00|16:00",Friday=none,Saturday=none})
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

  • #2
    Thanxs Bob, I will play with it tomorrow, Mike
    Computer: CUK Intel NUC7i7BNH
    Op System: Windows 10 Pro - Work Station
    HS Version: HS3 Pro Edition 3.0.0.435

    Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

    Comment


    • #3
      Bob, what is the second set of "" after
      Code:
      ("BLRoombaWifi",
      used for ?
      Computer: CUK Intel NUC7i7BNH
      Op System: Windows 10 Pro - Work Station
      HS Version: HS3 Pro Edition 3.0.0.435

      Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

      Comment


      • #4
        Bob, setup a manual event (see attached) when executed produced an error messages (see attached)
        Attached Files
        Computer: CUK Intel NUC7i7BNH
        Op System: Windows 10 Pro - Work Station
        HS Version: HS3 Pro Edition 3.0.0.435

        Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

        Comment


        • #5
          Instead of starting the command with a &, start it with &n

          Code:
          &nhs.PluginFunction("BLRoombaWifi", "", "SetSchedule", new Object(){"Genny", "Monday=10:00,Tuesday=none,Thursday=10:00"})
          Cheers,
          Bob
          Web site | Help Desk | Feature Requests | Message Board

          Comment


          • #6
            Bob, that corrected the error and allowed to run. However it produced mixed results, apparently if you have days that you setup but are not in the command string what you asked to be changed changes but the previous items that weren't addressed remains (makes sense) so the proper command is;

            Code:
            &nhs.PluginFunction("BLRoombaWifi", "", "SetSchedule", new Object(){"Genny", "Monday=10:00,Tuesday=none,Wednesday=none,Thursday=10:00,Friday=10:30"})
            I think we should add Saturday and Sunday and simply denote the days that are blank to "none" and the days that require start times inputted to avoid any un-intendant consequences, your thoughts, I'm assuming that the proper Roomba day starts with Sat and ends with Fri? Within the Plug-in you abbreviated the days due to device real-state? Do we need to have the complete day spelled out in the script? Mike
            Computer: CUK Intel NUC7i7BNH
            Op System: Windows 10 Pro - Work Station
            HS Version: HS3 Pro Edition 3.0.0.435

            Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

            Comment


            • #7
              You can use Monday or Mon as the day
              The call will only change what you pass to it - it will not touch the other days

              My Roomba goes from Sun-Sat
              Is yours different?
              Cheers,
              Bob
              Web site | Help Desk | Feature Requests | Message Board

              Comment


              • #8
                Well whilst looking at my iRobot app, I have for i7 = S, M, T, W, Th, F, Sa and for 980 = Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
                Found something interesting the latest script only works on Roomba 980 and not the i7, not sure why but I tried both ways e.g Sunday and S with not difference what I have in the "Weekly Schedule" device is "No schedule entered" any ideas Mike
                Computer: CUK Intel NUC7i7BNH
                Op System: Windows 10 Pro - Work Station
                HS Version: HS3 Pro Edition 3.0.0.435

                Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

                Comment


                • #9
                  Bob,
                  Exploring a little more into the i7 schedule is different than for 980; you can enter a Once with time which is self explanatory, the Weekly allows you to select what ever days of the week with one time being assigned for that schedule event you can enter multiple schedule events with same or different days and are able to assign a different time for that schedule event, does that make sense sooo.. me thinks that there's a different scheme for i7, Mike
                  Computer: CUK Intel NUC7i7BNH
                  Op System: Windows 10 Pro - Work Station
                  HS Version: HS3 Pro Edition 3.0.0.435

                  Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

                  Comment


                  • #10
                    Do this for me

                    1. Disable plugin
                    2. Edit the BLRoombaWifi.xml and change debugLevel to true
                    3. Restart plugin

                    Let the plugin run a couple minutes and then disable debug logging
                    Attach the debug log zipped to an email to me - just respond to an email I sent
                    Tell me which roomba is the i7
                    Cheers,
                    Bob
                    Web site | Help Desk | Feature Requests | Message Board

                    Comment


                    • #11
                      Done
                      Computer: CUK Intel NUC7i7BNH
                      Op System: Windows 10 Pro - Work Station
                      HS Version: HS3 Pro Edition 3.0.0.435

                      Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

                      Comment

                      Working...
                      X