Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Sonos TTS + GEA


Question

Posted

I have created a simple virtual device that send text strings to Krikroff's Sonos TTS virtual device. From GEA lua script on wanted time i press button in my virtual device to send the text to Sonos TTS.

Example setup:

GEA

Please login or register to see this code.

My virtual device example

Please login or register to see this code.

Another example

Please login or register to see this code.

Source

GEA -

Please login or register to see this link.

Sonos TTS version 0.0.8

Please login or register to see this link.

Please login or register to see this attachment.

Please login or register to see this attachment.

Recommended Posts

  • 0
Posted

You don't have to put any code under the buttons. Don't know if u use the Sonos program on your PC? If so, you just have to go to TuneIn, select a radio station, right click, info and options and "add to my radio stations". That's it.

I have those Sonos-players. I use 192.168.1.19, 192.168.1.20 and 192.168.1.21, that should do it, no?? Don't really know why associated ZP and kitchen are the same IP, maybe that's why it's not working. Do u have Sonos'es as stereo pair?

Associated ZP: 192.168.1.19

---------------------------------

PLAY:1: Bathroom

Serial Number: B8-E9-37-B2-78-B8:A

Version: 5.2 (build 28183040)

Hardware Version: 1.8.3.7-2

IP Address: 192.168.1.20

WM: 0

OTP:

---------------------------------

PLAY:1: Bedroom (L)

Serial Number: B8-E9-37-B2-84-5C:F

Version: 5.2 (build 28183040)

Hardware Version: 1.8.3.7-2

IP Address: 192.168.1.21

WM: 0

OTP:

---------------------------------

PLAY:1: Bedroom ®

Serial Number: B8-E9-37-B2-8D-24:2

Version: 5.2 (build 28183040)

Hardware Version: 1.8.3.7-2

IP Address: 192.168.1.22

WM: 0

OTP:

---------------------------------

BRIDGE: BRIDGE

Serial Number: B8-E9-37-1F-AA-5A:6

Version: 5.2 (build 28183040)

Hardware Version: 1.5.0.0-2

IP Address: 192.168.1.17

WM: 0

---------------------------------

PLAY:1: Kitchen

Serial Number: B8-E9-37-B2-83-C8:3

Version: 5.2 (build 28183040)

Hardware Version: 1.8.3.7-2

IP Address: 192.168.1.19

WM: 0

OTP:

  • 0
Guest David R
Posted

No sonos in stereo here

  • 0
Posted

And only 2 variables? The variables, I took the top one, with only one value but the box always stays empty. Same for you?

Bridge or not? That "associated ZP" in your about screen? I tried readding the VD without success. When I press pause or play several times in 1 VD, I have several Sonos-players that change state, as if it doesn't take the IP into account. You just put the IP and port 1400 in the advanced screen on top, right??

  • 0
Guest David R
Posted
Maybe someone can help me here. I try to use Krikroff's VD but it doesn't really work. I have 4 Play:1 and 2 are set to stereo.

1. I made the 2 variables

2. I made 3 VD's and just change the IP to the ip of the players and port to 1400

That's it

When I press the pause button on let's say Play:1 kitchen, that can pause kitchen or bathroom or bedroom, although they are of course different IP's. What am I doing wrong??

Edit: Seems as if the VD "runs" through my 3 rooms. When I set 3 different volumes in the rooms, the slider jumps through those 3 volumes in the VD and it does that in all 3 VD's...

Anyone knows what I'm doing wrong here? I guess something is wrong with my IP adresses.

I also have this same problem. Press play on the kitchen it starts. Press stop and it does nothing. press play again on the kitchen and it turns to living room on. press stop turns the kitchen off and leaves the living room on etc......

(close but no cigar)

  • 0
Posted

Hopefully Krikroff finds this topic and gives some more info about it. I'm guessing we're both doing something wrong cause other people seem to get it working.

Please login or register to see this image.

/emoticons/default_tongue.png" alt=":P" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> I'm just wondering what Krikroff means by "maitre" in the info which translates as master.

  • 0
Guest David R
Posted

I have sent him a direct message so we will see

  • 0
Posted

Hi Tekvibes, David R,

Currently the module does not support MultiRoom and it is complicated to install multiple concurrent modules.

For each zone you should have a Master (the one that controls the other or others

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" /> )

  • 0
Guest David R
Posted

Ok thanks! That's why it wasn't working then I guess! How do you group them together? Same IP? If people made 100% reliable and virtual devices... plugins and drivers for Fibaro I would pay a little price for them and I guess other people would to. Like Extra vegetables does for Control4! Idea for a business Krikroff,

Please login or register to see this image.

/emoticons/default_icon_cool.gif" alt="8-)" />

Please login or register to see this image.

/emoticons/default_icon_cool.gif" alt="8-)" />

Please login or register to see this image.

/emoticons/default_icon_cool.gif" alt="8-)" />

  • 0
Posted

What do you mean by master?? I now have 3 VD's, each with an IP of the Sonos in a room. That doesn't seem to work (pushing pause for instance on 1 VD can pause one of the 3 Sonos, whichever Sonos the VD wants at that time) How to get the VD to reliably control each Sonos? Thanks for the help!!

  • 0
Guest David R
Posted

Tekvibes, I think Krikroff, is saying that it cant be done at this moment in time. Its all together or not.

  • 0
Posted

OK.

Please login or register to see this image.

/emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> There's a VD for HCL that can control different Sonos. Maybe I'll use that in the meantime till plugins mature a bit!

  • 0
Posted

I also have 3 sonos speaker with 3 different IP adresses. Can't i just assign the VD 3 times? One for each speaker. But how to locate the right speaker for the usage of notification?

  • 0
Guest David R
Posted

KristianO, You can try but you wont get the control you are looking for

  • 0
Posted
KristianO, You can try but you wont get the control you are looking for

I haven't examined the code that closely, but I think that you'll have to make a few global variables unique per Sonos Player.

Now, there are two global vars that the code is reading and/or updating: SonosLastCmd and SonosTTS. If you create a new VD for another player, find and modify all occurrences of SonosLastCmd with for example Sonos2LastCmd and SonosTTS with Sonos2TTS. Change in both the main function and in all buttons. Then create the variables and test.

That should work.

Please login or register to see this image.

/emoticons/default_icon_smile.gif" alt=":-)" />

  • 0
Posted

CQ1, yes it works fine

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

  • 0
Posted

Is it possible to use IVONA TTS instead of GOOGLE TTS ?

  • 0
Posted

I would like to play with the "Notifications VD "von jompa68 mp3-files instead of the TTS.

Is it possible and if yes how?

  • 0
Posted

@krikroff: Everytime I update my HC2 with a new version/hotfix I need to re-save all my sonos VD, how come?

- Any plans for a new version? 1.0?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...