Loewe, Apple und Heim-Automation

Antworten
Benutzeravatar
macpro
Mitglied
Beiträge: 92
Registriert: Sa 16. Apr 2011, 16:31
Wohnort: Grüßen aus die Niederlande!
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

Loewe, Apple und Heim-Automation

#1 

Beitrag von macpro »

(Ich werde hier meistens Englisch schreiben, weil mein Deutsch nicht so gut is. Entschuldigung dafür. Aber Deutsch lesen ist kein Problem für mich.)

A few years ago I installed an X10 based home automation system that's controlled using a Mac mini and Indigo. This system has been enhanced with an IRTrans infrared module so my Mac can send AND receive IR signals.
With this setup I have been able to control my Loewe Credo television from my Mac using infrared.

This year the Credo has been replaced by a Individual Compose and that TV has an RS232 interface. My dealer gave me documentation from Loewe to "talk" to the TV over RS232. To connect the TV to my Mac mini, I bought a Global Cache GC-100 module.
(fswerkstatt gave me some good tips to get started on this. Thanks!)

After a lot of hours writing some programming code, I have now (almost) integrated my Loewe TV into my Home Automation setup.

So what can I do with my Loewe TV?
- Control lights and appliances in the house using the Loewe Assist
- Control the SqueezeBox music player using the Loewe Assist
- See the outside temperature

What can I do with my Mac?
- Switch on the SqueezeBox and Loewe TV to listen to music
- Control the settings of the TV like channel and volume
- See what TV channel is being watched on TV

What can I do with my iPhone/iPad?
- Switch on the SqueezeBox and Loewe TV to listen to music

But enough words. It's picture time!

Bild
This menu is created by the Mac mini and sent to the TV using the RS232 module.
Using the green key on the Loewe Assist I can switch on the "Vloerlamp".
The TV will send this command to the Mac mini and then Indigo will do it's magic to switch the light on.
Next the status on the TV screen is updated so I can see that the light is on.
(Or I can take a look at the light ;) )

Bild
Here's another example where it shows lights and appliances in the garden. But it also shows the outside temperature.

Loewe have done a very good job on this RS232 interface. It's not perfect, but it has a lot of potential.

Benutzeravatar
DanielaE
Spezialist
Beiträge: 3489
Registriert: Di 19. Apr 2011, 19:17
Wohnort: Nürnberg
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

#2 

Beitrag von DanielaE »

Sehr interessant - und ein tolles Ergebnis! :thumbsupcool:

Wenn ich mal so weiterüberlege, dann sollte das doch die Fritz!Box mit dem Heim-Automation Add-On der aktuellen Firmware (oder Freetz) ebenfalls hinbekommen ... :???:
Ciao, Dani

Loewe bild 7.55 (SL520+v6.sowas-von.β) an Screen-Wall-Mount 2, UniCAM EVO (4.0, Troja 4.60) mit HD+ HD02,
Yamaha RX-A1060, Pioneer DV-LX50, ShieldTV Pro (2019), FireTV Stick 4K Max, 2xAlcone Pascal XT Front, 1xAlcone Dirac XT Center, 2xAlcone Lagrange XT Rears, 2xSolid Monitore Presence/Height in Konfiguration 5.0.2

PGP:2CCB 3ECB 0954 5CD3 B0DB 6AA0 BA03 56A1 2C46 38C5

Benutzeravatar
Primus
Freak
Beiträge: 735
Registriert: Fr 15. Apr 2011, 23:28
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

Loewe, Apple und Heim-Automation

#3 

Beitrag von Primus »

macpro hat geschrieben:My dealer gave me documentation from Loewe to "talk" to the TV over RS232.

After a lot of hours writing some programming code, I have now (almost) integrated my Loewe TV into my Home Automation setup.

This menu is created by the Mac mini and sent to the TV using the RS232 module.

Loewe have done a very good job on this RS232 interface. It's not perfect, but it has a lot of potential.
Sehr interessantes Projekt.
Was beinhaltet die Dokumentation?
Womit hast du programmiert?
Ist das gezeigte Menü fertig oder muß das auch programmiert werden?
Loewe Connect 55 UHD SL420 @ Kathrein CAS 90 - UAS 481 (Astra 19,2°)
Loewe Connect 40 UHD SL320 @ Kathrein CAS 90 - UAS 485 (Astra 19,2°)

Benutzeravatar
macpro
Mitglied
Beiträge: 92
Registriert: Sa 16. Apr 2011, 16:31
Wohnort: Grüßen aus die Niederlande!
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

#4 

Beitrag von macpro »

Primus hat geschrieben:Sehr interessantes Projekt.
Was beinhaltet die Dokumentation?
Womit hast du programmiert?
Ist das gezeigte Menü fertig oder muß das auch programmiert werden?
Die Dokumentation zeigt wie mann die RS232 Interface programmieren kann.
Ich habe Python genützt für das Programm weil Indigo damit zusammen geht.
Für die letzte Frage ist das Antwort "Rot" ;)

Bild

Benutzeravatar
Primus
Freak
Beiträge: 735
Registriert: Fr 15. Apr 2011, 23:28
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

Loewe, Apple und Heim-Automation

#5 

Beitrag von Primus »

Vielen Dank für die Antworten. ;)
Loewe Connect 55 UHD SL420 @ Kathrein CAS 90 - UAS 481 (Astra 19,2°)
Loewe Connect 40 UHD SL320 @ Kathrein CAS 90 - UAS 485 (Astra 19,2°)

Benutzeravatar
meggert
Mitglied
Beiträge: 136
Registriert: Di 26. Apr 2011, 16:17
Wohnort: BW
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

#6 

Beitrag von meggert »

Echt starke Leistung! :clap:

fswerkstatt
Spezialist
Beiträge: 2679
Registriert: Sa 16. Apr 2011, 20:48
Händler/Techniker: ja
Wohnort: Rhein-Sieg-Kreis
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen
Kontakt:

#7 

Beitrag von fswerkstatt »

Sehr schön! :thumbsupcool:
bild 7.55 OLED SL420 β-SW (DVB-S, DVB-C), TSM, Home Cinema Set 2.1, Mediavision 3D, FireTV Stick 4k
Connect 55 UHD SL420 β-SW (SAT>IP, DVB-T2)
We. See 32 SL810 β-SW (DVB-T2)
Xelos 32 SL DR+ L2715 (DVB-C)

Benutzeravatar
dubdidu
Moderator
Beiträge: 6453
Registriert: Fr 15. Apr 2011, 11:08
Wohnort: Hamburg - meine Perle
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen
Kontakt:

#8 

Beitrag von dubdidu »

Applaus!!!! :clap: :clap: :clap: :clap:
bild 7.65 mit klang 5 F/R und klang 5 Subwoofer, bild 3.49 DR+ mit klang 1 Set, bild 3.40 mit Individual Sound Subwoofer, Individual Compose 40" L2700, Individual Sound L1, HD+ mit Unicam Evo (Troja), AirSpeaker, Speaker 2Go, ATV4K, Synology RS 816

Benutzeravatar
macpro
Mitglied
Beiträge: 92
Registriert: Sa 16. Apr 2011, 16:31
Wohnort: Grüßen aus die Niederlande!
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

#9 

Beitrag von macpro »

Today a little "fight" with the SqueezeBox and the Individual. But I have won. For now.

The SqueezeBox is connected to the Individual on the Digital In bus. I also have a pair of L82HF speakers directly connected to the SqueezeBox to get music in the dining room as well.
To play music via the SqueezeBox, I have to power on the SqueezeBox, start the TV in Radio mode, wait about 30 seconds for the TV to start up, select the Digital In channel, set the volume to a default value and switch of the screen.

Pressing the "Audio" button on the Assist remote is now enough to perform all those steps.

But wait, there is more... :D

Pressing Volume Up and Down on the Assist sends a command to the SqueezeBox to change the volume.
Pressing << or >> on the Assist tells the SqueezeBox to change the song.

When I use the Assist to change to a normal radio channel, the SqueezeBox is stopped.
Moving back to the Digital In channel starts the SqueezeBox again.


Pressing the "TV" button on the Assist changes the Individual back to TV mode as normal, but also stops the SqueezeBox if it's playing.


In Indigo, I have defined so called "Control Pages". Those are web pages that can be displayed on many devices, including my iPad. When I go to the Control Page for the SqueezeBox, I can power on and power off the SqueezeBox. But now it will also control the Individual and power it on or off if needed.

matthiasg
Neues Mitglied
Beiträge: 9
Registriert: Di 19. Apr 2011, 15:38
Hat sich bedankt: Danksagungen

#10 

Beitrag von matthiasg »

Hallo macpro,

kannst du diese Doku von Loewe RS232 weitergeben ich wäre sehr daran interessiert, da ich im Haus eine SPS-Steuerung verwende.

Gruß Matthias

Benutzeravatar
macpro
Mitglied
Beiträge: 92
Registriert: Sa 16. Apr 2011, 16:31
Wohnort: Grüßen aus die Niederlande!
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

#11 

Beitrag von macpro »

@mathiasg: Diese Doku kannst du bei deine "Freundliche" bekommen.


@Loewe: I've found a strange behaviour.
When the Individual is on in "tv" mode, this data is received from the Individual when I press the Power button on the Asssist remote:

Code: Alles auswählen

status standby off pipoff recoff
>
That is ok and what I expect.

But when the Individual is on in "audio" or "radio" mode, the following data is received from the Individual when I press the Power button on the Asssist remote:

Code: Alles auswählen

prog 9
>
Then nothing for about 7 seconds, followed by

Code: Alles auswählen

status standby on pipoff recoff
>
status standby off pipoff recoff
>
When this happened, the audio channel was -12 (digital audio in). So "prog 9" is the channel for "tv" mode, which means the Individual first goes into "tv" mode and then into "standby" mode.

Is there a special reason why this happens or is it a bug?

Benutzeravatar
macpro
Mitglied
Beiträge: 92
Registriert: Sa 16. Apr 2011, 16:31
Wohnort: Grüßen aus die Niederlande!
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

#12 

Beitrag von macpro »

A small update on the latest integration efforts.

It's possible to get the info on the current program that's viewing on TV.
So I'm now collecting al this info.

In my Home Automation system (Indigo on the Mac) I've created a couple of web pages to control lights etc.
But it also shows info from the TV:

Bild

Whenever I change the channel or a new TV program starts on the current channel, this info is sent to my Mac.

The page above is 24/7 visible on an iPad mini that's used as a Home Automation controller.

Benutzeravatar
macpro
Mitglied
Beiträge: 92
Registriert: Sa 16. Apr 2011, 16:31
Wohnort: Grüßen aus die Niederlande!
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

#13 

Beitrag von macpro »

A second update I made a couple of months ago: a Raspberry Pi with camera is mounted at the front door.
Another Raspberry Pi is connected to the Individual on HDMI port 3. This Raspberry shows the video stream from the Raspberry at the front door.

Whenever a visitor comes to the front door, the PIP window is opened so I can see who is at the front door. And then decided if I want to open the door or continue watching the movie.

blume333

#14 

Beitrag von blume333 »

Kann mir jemand eine liste mit den rs232 befehlen zukommen lassen.

möchte meinen loewe tv mittels rs232 fernsteuern

Benutzeravatar
macpro
Mitglied
Beiträge: 92
Registriert: Sa 16. Apr 2011, 16:31
Wohnort: Grüßen aus die Niederlande!
Hat sich bedankt: Danksagungen
Danksagung erhalten: Danksagungen

#15 

Beitrag von macpro »

I made a small movie that shows how to close the curtains and turn on the lights.
I'm no Spielberg, so it's not Oscar quality.

Watch the Loewe in action

Antworten

Zurück zu „Streaming Clients, Computer und Co.“