Announcement

Collapse
No announcement yet.

ZMC v4 - Whole house audio for HS3

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

    Yes my speaker 16/4 & 16/2 wire was very expensive (500/1000 foot rolls). You can utilize this wire for blind automation.

    Landscaping 12 guage wire was expensive. CatXX, 22/4 and 22/2 was reasonably priced. Microphone (dual) wasn't really too bad. I did switch this over to low level stereo baluns over catXX which I found to be reasonably priced. Testing an older run of cat3 telephone cable now for two TTS speakers from HS. Looks to work just fine. Only issue with this sort of cable is that it used to be run in a daisy chain fashion. Used it at one time for my 1-wire sensors.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

    Comment


      Resurrection of my Project

      Well had some time and was cleaning up.

      Thought I would take the time to restart this project and hook up my Shure Mics (have 5 mics) and enough amps to do 8 zones in Stereo.

      I was talking to Bram thru email about a issue I was having with humming when the XAP800 was off and my little amp was on. Seems I was picking up RF and it wasnt able to be drained. This is where I left off and will have more time in the next week to attempt a fix.

      Also will be going back a reworking the script variables to fit my environment.

      Hows everyone else projects coming?

      Charlie
      Attached Files
      HSPro: 3.0.0.194
      PL: Insteon PLM 3.0.5.20,Insteon Thermostat 3.0.1.1 , UltraM1G, RainRelay8, UltraECM3, UltraPioneerAVR3, BLBackup, weatherXML, Jon00 Network & PC Monitor
      HW : Win 7 64bit, Intel i7-2600, 16 GB DDR3 Ram, 60 Plus Insteon Dual Band Devices, Rain8 Pro2, Elk M1 Gold, Brueltech GreenEye.

      Comment


        Originally posted by Conrad_Turbo View Post
        I did pick up Google Chromecast Audio to tie into another input so I can control audio from our phones/tablets via Plex (which we use to manage all our audio/video).
        GENIUS Idea
        HSPro: 3.0.0.194
        PL: Insteon PLM 3.0.5.20,Insteon Thermostat 3.0.1.1 , UltraM1G, RainRelay8, UltraECM3, UltraPioneerAVR3, BLBackup, weatherXML, Jon00 Network & PC Monitor
        HW : Win 7 64bit, Intel i7-2600, 16 GB DDR3 Ram, 60 Plus Insteon Dual Band Devices, Rain8 Pro2, Elk M1 Gold, Brueltech GreenEye.

        Comment


          Originally posted by CharlieWayne View Post
          GENIUS Idea
          Haha ya it's pretty awesome with the testing I've done so far with it. The end goal would be to create HSTouch buttons that will enable and disable audio in specific rooms, or enable them all on or off. Then that way I can cast the audio from any PC, tablet or phone in the house and use HSTouch to enable where I want that sound to go. You can control the volume level with your phone or whatever device is casting the audio, the XAP is just the gatekeeper. So one input is the Chromecast Audio, another is the line out from the HS3 PC for speech announcements and the rest will be for microphones down the road.

          So far I just have the XAP on my desk next to the HS3 PC wired to some speakers sitting on top of the XAP. I got a week or so ago 500' of 14ga speaker wire as well as 500' of CAT6 cable itching to be run...but life stuff comes first. When I have time, probably January I'll start drilling and routing wires.

          Comment


            Amp is getting HOT

            Started making some changes. I've done away with the UR connectors thinking there terminal blocks will be a better connection. Also have coming Dual RJ45 breakout terminals (one for speaker, one for Mic).

            One issue I was having last year was alot of noise coming from the amps, when the XAP is turned off. Removal of the 3M UR connectors has helped as I think the silicone may have effected the connection.

            Im going to try and keep reducing noise, but I think I may run Shield cable so i can drain any gain in the homeruns to each room.

            Running the 15 watt X2 channel amp on max, it started getting a little warm. Ive posted camera and thermal imiage pics. Amp hit 204 degrees at one point when it was running full blast for 15 mins. Probable wire in a small 25 mm van for cooling. These things are being placed under the beds :/

            See the pics and PDF.





            Originally posted by Conrad_Turbo View Post
            So far I just have the XAP on my desk next to the HS3 PC wired to some speakers sitting on top of the XAP. I got a week or so ago 500' of 14ga speaker wire as well as 500' of CAT6 cable itching to be run...but life stuff comes first. When I have time, probably January I'll start drilling and routing wires.
            I should be done testing in the next week or two hopefully. Will let you know the results of Non Shield Vs Shielded CAT cable. This obviously effect line-in and mic inputs.
            Attached Files
            Last edited by CharlieWayne; December 14, 2016, 10:33 PM.
            HSPro: 3.0.0.194
            PL: Insteon PLM 3.0.5.20,Insteon Thermostat 3.0.1.1 , UltraM1G, RainRelay8, UltraECM3, UltraPioneerAVR3, BLBackup, weatherXML, Jon00 Network & PC Monitor
            HW : Win 7 64bit, Intel i7-2600, 16 GB DDR3 Ram, 60 Plus Insteon Dual Band Devices, Rain8 Pro2, Elk M1 Gold, Brueltech GreenEye.

            Comment


              The below is cool and a worthy looking into.

              What you think about Google AI OR "Google Now" such services? Is there an API that we can use on this project?


              Charlie

              Originally posted by AshaiRey View Post
              It can be both and it depends on your configuration. The psr file you got is configured to work with macro's. Also a few pins are freely programmable and the others are reserved pins for specific functions.

              Yes, it is possible. I used it for a while to send the state of the pins for the mics to an Arduino. The Arduino then was used to send the info back into HS. The reason why i did it like this is because the pin that signaled an active gate just gave a pulse and didn't latched. The arduino would pick up the pulse and took care of it. If not you miss some of the pulses due to serial communication. In the end i removed this again because for me it wasn't reliable enough

              I wouldn't let the XAP switch the amps because they are used also for music, or at least i think so. Just add an extra event to do that for you.
              HSPro: 3.0.0.194
              PL: Insteon PLM 3.0.5.20,Insteon Thermostat 3.0.1.1 , UltraM1G, RainRelay8, UltraECM3, UltraPioneerAVR3, BLBackup, weatherXML, Jon00 Network & PC Monitor
              HW : Win 7 64bit, Intel i7-2600, 16 GB DDR3 Ram, 60 Plus Insteon Dual Band Devices, Rain8 Pro2, Elk M1 Gold, Brueltech GreenEye.

              Comment


                I am able to get the music to go... but the speech is not being routed right. Need a little help with it.

                2016-12-21 18:17:04 Error Exception in MediaIsPlaying: Object reference not set to an instance of an object.
                2016-12-21 18:17:00 TTS Speak: (*:*):Some text to speak
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Ignoring unexpected data received from the unit: OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Ignoring unexpected data received from the unit: ERROR - Argument error.
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : ERROR - Argument error.
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Ignoring unexpected data received from the unit: >
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : >
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Ignoring unexpected data received from the unit: OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Ignoring unexpected data received from the unit: ERROR - Argument error.
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : ERROR - Argument error.
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Ignoring unexpected data received from the unit: OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 DATA OUT [#50 MTRX 0] to port : 2
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 SetMatrix request used : #50 MTRX 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Retry #2 to set the matrix : 50 MTRX B P 7 O 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Reply : 50 MTRX B P 7 O 0 <> CMD : #50 MTRX 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 unitType : 5 and deviceID : 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : > #50 MTRX B P 7 O 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Ignoring unexpected data received from the unit: OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Ignoring unexpected data received from the unit: OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : OK>
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 DATA OUT [#50 MTRX 0] to port : 2
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 SetMatrix request used : #50 MTRX 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Retry #1 to set the matrix : 50 MTRX B P 7 O 1
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Reply : 50 MTRX B P 7 O 1 <> CMD : #50 MTRX B P 7 O 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 unitType : 5 and deviceID : 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 THIS IS THE DATA COMMING FROM UNIT : > #50 MTRX B P 7 O 1
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 FINISHED ZMC SCRIPT.
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Turn device OFF : 0and set state : RADIO
                2016-12-21 18:17:00 Warning Not running script since its already running: AZ_ZMC4.vb Single instance option enabled in event properties
                2016-12-21 18:17:00 Warning Not running script since its already running: AZ_ZMC4.vb Single instance option enabled in event properties
                2016-12-21 18:17:00 Warning Not running script since its already running: AZ_ZMC4.vb Single instance option enabled in event properties
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 DATA OUT [#50 MTRX B P 7 O 0] to port : 2
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 SetMatrix request used : #50 MTRX B P 7 O 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Actionstring SetToSpeech : 0|B|P|7|O|0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Audio in : MAIN(7)
                2016-12-21 18:17:00 Warning Not running script since its already running: AZ_ZMC4.vb Single instance option enabled in event properties
                2016-12-21 18:17:00 Warning Not running script since its already running: AZ_ZMC4.vb Single instance option enabled in event properties
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Turn device ON : 0and set state : SPEECH
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 DATA OUT [#50 MTRX B P 7 O 1] to port : 2
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 SetMatrix request used : #50 MTRX B P 7 O 1
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Actionstring SetToSpeech : 0|B|P|7|O|1
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 DATA OUT [#50 MTRX C P 7 O 0] to port : 2
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 SetMatrix request used : #50 MTRX C P 7 O 0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Actionstring SetToSpeech : 0|C|P|7|O|0
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Speech in : MAIN(7)
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Saving state
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Speak parameters : Some text to speak
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 Room (7) found named : MAIN
                2016-12-21 18:17:00 AZ_ZMC v4.0.4 STARTING ZMC SCRIPT.
                2016-12-21 18:17:00 Event Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/AZ_ZMC4.vb("Main",​"Main;SPEAK;Some text to speak")
                2016-12-21 18:17:00 Event Event Trigger "Audio System Speaktest"
                2016-12-21 18:17:00 Event Event Audio System Speaktest triggered by the event page 'Run' button.
                Last edited by Mwillis; December 21, 2016, 07:26 PM.

                Comment


                  Your question is too vague.
                  What do you mean not routed right? What is going wrong actually?
                  I guess you are playing music and then you want to let HS speech say something.
                  Is the music playing and the speech is said right through it or don't you hear speech at all?
                  I need a bit more details about your setup.
                  What input number is your audio input?
                  What input number is your speech input?

                  I also see this lines
                  2016-12-21 18:17:04 Error Exception in MediaIsPlaying: Object reference not set to an instance of an object.
                  2016-12-21 18:17:00 TTS Speak: (*:*):Some text to speak

                  HS tries to do speech and the next is an error which seems from the mediaplayer plugin. (not active)

                  Next problem are these lines
                  2016-12-21 18:17:00 Warning Not running script since its already running: AZ_ZMC4.vb Single instance option enabled in event properties

                  This means that the script is running and you try to run it again (and again). The script is talking to the XAP via a serial connection and only one connection can be open at one time so multiple starts of the script will not work. Maybe the event that handles this triggers multiple times.
                  - Bram

                  Send from my Commodore VIC-20

                  Ashai_Rey____________________________________________________________ ________________
                  HS3 Pro 3.0.0.534
                  PIugins: ZMC audio | ZMC VR | ZMC IR | ZMC NDS | RFXcom | AZ scripts | Jon00 Scripts | BLBackup | FritzBox | Z-Wave | mcsMQTT | AK Ikea

                  Comment


                    Originally posted by AshaiRey View Post
                    Your question is too vague.
                    What do you mean not routed right? What is going wrong actually?
                    I guess you are playing music and then you want to let HS speech say something.
                    Is the music playing and the speech is said right through it or don't you hear speech at all?
                    I need a bit more details about your setup.
                    What input number is your audio input?
                    What input number is your speech input?

                    I also see this lines
                    2016-12-21 18:17:04 Error Exception in MediaIsPlaying: Object reference not set to an instance of an object.
                    2016-12-21 18:17:00 TTS Speak: (*:*):Some text to speak

                    HS tries to do speech and the next is an error which seems from the mediaplayer plugin. (not active)

                    Next problem are these lines
                    2016-12-21 18:17:00 Warning Not running script since its already running: AZ_ZMC4.vb Single instance option enabled in event properties

                    This means that the script is running and you try to run it again (and again). The script is talking to the XAP via a serial connection and only one connection can be open at one time so multiple starts of the script will not work. Maybe the event that handles this triggers multiple times.
                    not playing music. the speech does not get routed to the output that is requested, but the speech does get played.

                    should the "only allow a single instance to run at a time" be checked?

                    Comment


                      I still have to assume a lot here.

                      You have to look at these entries
                      DATA OUT [#50 MTRX C P 7 O 0] to port : 2

                      DATA OUT means that the string between [ and ] is send to your com port 2
                      #50 - 5 means device type XAP800 and 0 is the ID that that device has
                      MTRX is the command
                      If you look at the matrix then C P mean row C in the processor section
                      So C is connected to 7 O, that is colomn 7 and that is in the output section.
                      The last 0 means turn it off.

                      Now that's correct because you want to turn music of in room 7 before you do speech.

                      Next comes DATA OUT [#50 MTRX B P 7 O 1] to port : 2
                      Connect B from the processor section to 7 of the output section

                      That's correct to because Speech input is at input 11 on the back (right?)
                      This is in the matrix 11 on the input section row. That is connected to the announcement processor B

                      Next you get a bunch of collisions because you try to call the script multiple times.

                      After that the script is reverting back to the state before speech.

                      >should the "only allow a single instance to run at a time" be checked?
                      That might help. However in HS2 which i use i don't have that checked. I do however make use of the IsSpeaking plugin which queues all the spoken text.
                      - Bram

                      Send from my Commodore VIC-20

                      Ashai_Rey____________________________________________________________ ________________
                      HS3 Pro 3.0.0.534
                      PIugins: ZMC audio | ZMC VR | ZMC IR | ZMC NDS | RFXcom | AZ scripts | Jon00 Scripts | BLBackup | FritzBox | Z-Wave | mcsMQTT | AK Ikea

                      Comment


                        Originally posted by AshaiRey View Post
                        I still have to assume a lot here.

                        You have to look at these entries
                        DATA OUT [#50 MTRX C P 7 O 0] to port : 2

                        DATA OUT means that the string between [ and ] is send to your com port 2
                        #50 - 5 means device type XAP800 and 0 is the ID that that device has
                        MTRX is the command
                        If you look at the matrix then C P mean row C in the processor section
                        So C is connected to 7 O, that is colomn 7 and that is in the output section.
                        The last 0 means turn it off.

                        Now that's correct because you want to turn music of in room 7 before you do speech.

                        Next comes DATA OUT [#50 MTRX B P 7 O 1] to port : 2
                        Connect B from the processor section to 7 of the output section

                        That's correct to because Speech input is at input 11 on the back (right?)
                        This is in the matrix 11 on the input section row. That is connected to the announcement processor B

                        Next you get a bunch of collisions because you try to call the script multiple times.

                        After that the script is reverting back to the state before speech.

                        >should the "only allow a single instance to run at a time" be checked?
                        That might help. However in HS2 which i use i don't have that checked. I do however make use of the IsSpeaking plugin which queues all the spoken text.
                        Yes that sounds correct. what is this isspeaking plugin?

                        Comment


                          also. instead of using winamp as audio source. I would like to use a pioneer vsx-33 zone 2 as the audio source. Is there a way to have the script easily run events to control the AV receiver?

                          Comment


                            I use WinAmp because it is a small and light weight player but you can just use whatever works for you as audio source as long as you can control is with hs.launch()

                            This will happen if you turn on the music
                            Checks done.
                            - migraine device must be OFF
                            - mute device for that room must be OFF
                            - The state of the device defined at WMP_STATUS_DEVICE is checked
                            When ON the script proceeds
                            When OFF the audio source defined will be started with the provide parameters and then proceeds
                            (See sub routine called Sub StartWMP in the script for more details)

                            You can added extra functionality to the script by adding your own calls in the form
                            Code:
                            Sub YourCall(ByVal strData As String)
                              [Your code here]
                              'Example
                               Dim intProcessID
                               intProcessID     = hs.Launch("NotePad.exe", strData, "", 0)
                            En Sub
                            
                            In a event you can call this with ("YourCall")
                            - Bram

                            Send from my Commodore VIC-20

                            Ashai_Rey____________________________________________________________ ________________
                            HS3 Pro 3.0.0.534
                            PIugins: ZMC audio | ZMC VR | ZMC IR | ZMC NDS | RFXcom | AZ scripts | Jon00 Scripts | BLBackup | FritzBox | Z-Wave | mcsMQTT | AK Ikea

                            Comment


                              Originally posted by AshaiRey View Post
                              I use WinAmp because it is a small and light weight player but you can just use whatever works for you as audio source as long as you can control is with hs.launch()

                              This will happen if you turn on the music
                              Checks done.
                              - migraine device must be OFF
                              - mute device for that room must be OFF
                              - The state of the device defined at WMP_STATUS_DEVICE is checked
                              When ON the script proceeds
                              When OFF the audio source defined will be started with the provide parameters and then proceeds
                              (See sub routine called Sub StartWMP in the script for more details)

                              You can added extra functionality to the script by adding your own calls in the form
                              Code:
                              Sub YourCall(ByVal strData As String)
                                [Your code here]
                                'Example
                                 Dim intProcessID
                                 intProcessID     = hs.Launch("NotePad.exe", strData, "", 0)
                              En Sub
                              
                              In a event you can call this with ("YourCall")
                              I am thinking I really do not need it to do anything other than route the audio correctly. the single event itself could run the receiver. I'm just not exactly sure how I would get it to route.

                              Comment


                                -found out what the issue was-
                                Last edited by dtsouers; May 25, 2017, 06:59 PM. Reason: cleaned up

                                Comment

                                Working...
                                X