Announcement

Collapse
No announcement yet.

Display Array Results in Device String

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

    #46
    Originally posted by Malosa View Post
    why not change it to use the parameters , so you run both together without creating 2 events... just by adding /windows,doors to parameters


    I'm a noob to scripting and it works

    Plus I only run it when a device change happens for the door or Windows. Low overhead.

    I do what you listed above for my motion sensor script to detect last motion from the last detector.

    Comment


      #47
      yeah i am a big noob myself haha
      im still learning , but sometimes i have problems that i need to solve.

      yeah the script for the motion sensors was a bit hard , but it works also , i needed it to speak instead of writing information to a virtual , so i merged a couple of scripts to one and changed some lines

      but scripting goes a lot better than weeks ago


      my output is this , its finished now.
      not all pir sensors are installed

      there is only 1 thing i need to put in there , but is a bit hard , when i have an error i want it to say the device name again in the last speech .
      Code:
      Aug-04 16:42:11	 	TTS	Speak ():no Errors found
      Aug-04 16:42:11	 	TTS	Speak ():And 9 Sensors Disabled
      Aug-04 16:42:11	 	TTS	Speak ():There are 2 Sensors Enabled
      Aug-04 16:42:11	 	Array	Errors: 0
      Aug-04 16:42:11	 	Array	disabled pir's: 9
      Aug-04 16:42:11	 	Array	enabled pir's: 1
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 10 at the PIR is Disabled
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 9 at the PIR is Disabled
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 8 at the PIR is Disabled
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 7 at the PIR is Disabled
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 6 at the PIR is Disabled
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 5 at the PIR is Disabled
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 4 at the Front hall is Disabled
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 3 at the Livingroom is Disabled
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 2 at the Garage is Online
      Aug-04 16:42:11	 	TTS	Speak ():Motion sensor 1 at the Garden is Disabled
      Aug-04 16:42:01	 	TTS	Speak ():starting motion sensor service check .. this wil take a minute .. please stand by

      Originally posted by waynehead99 View Post
      I'm a noob to scripting and it works

      Plus I only run it when a device change happens for the door or Windows. Low overhead.

      I do what you listed above for my motion sensor script to detect last motion from the last detector.
      Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
      Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




      HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.

      Comment


        #48
        Hi - could someone please post the complete latest code that works ? Am trying to follow the thread to get it working on my test system but struggling with the development of the fixes in the thread.

        Am really interested in the code for both the doors/windows open AND the Thermostat setpoints.

        Thanks loads in advance,

        David

        Comment

        Working...
        X