Originally posted by: <email address deleted>
Salve,
don't think it will be used by anyone except me, but anyway: I checked in
two modules, 80_xxLG7000.pm & 82_LGTV.pm, for details refer - as always -
to updated commandref.html.
In short these module are to control a TV set, LG brand, of type yyLG7000
(with yy being 32, 37, 42, 47, 52) or yyPG7000 (with yy being 50 or 60) -
those are from 2008/2009 and no longer sold, *but* they feature a serial
connector to hook them to a PC and excercise control (power on/off/status,
input selection/status, mute on/off/status, ...) from there.
I tried to make the high level module LGTV re-usable, so in theory, details
in commandref.html, someone else should be able to write a different low
level module for another type of remotely controlable TV set (well, yes,
you could even utilize an IR sender and write a module to control that
accordingly, if there's no real connection to your TV) and LGTV should be
working with that, too (see commandref.html and the source code for details).
Anyway; maybe someone finds this useful, and if not, no-one is forced to
use it ;)
Basic functionality can be seen below (like it source code father,
82_M232Voltage.pm, a status query is done every 30 seconds, thus you
could use the readings in fhem.cfg to, e. g. power down the PS3 15
Minutes after the TV went dark or left the PS3-HDMI input ...):
fhem> list 47LG7000
Internals:
IODev myLG7k
NAME 47LG7000
NR 6
STATE off
TYPE LGTV
Readings:
2010-01-20 01:19:37 input AV3
2010-01-20 02:19:36 power off
Attributes:
room Wohnen
fhem> set 47LG7000 power on
power on
fhem> list 47LG7000
Internals:
IODev myLG7k
NAME 47LG7000
NR 6
STATE on, AV3
TYPE LGTV
Readings:
2010-01-20 02:20:37 input AV3
2010-01-20 02:20:36 power on
Attributes:
room Wohnen
fhem> set 47LG7000 input DVBT
input DVB-T
fhem> set 47LG7000 selected input
input DVB-T
fhem> list 47LG7000
Internals:
IODev myLG7k
NAME 47LG7000
NR 6
STATE on, DVB-T
TYPE LGTV
Readings:
2010-01-20 02:22:37 input DVB-T
2010-01-20 02:22:36 power on
Attributes:
room Wohnen
fhem> set 47LG7000 input HDMI2
input HDMI2
fhem> list 47LG7000
Internals:
IODev myLG7k
NAME 47LG7000
NR 6
STATE on, HDMI2
TYPE LGTV
Readings:
2010-01-20 02:23:38 input HDMI2
2010-01-20 02:23:36 power on
Attributes:
room Wohnen
fhem> set 47LG7000 power off
power off
fhem> set 47LG7000 power state
power off
I think you get the idea ;) (I'm too tired to do the "get" part this
night as well; that will follow later on.) Thanks to Rudolf and Boris,
where I "borrowed" most of the code from ;) Regards,
kai
--
You received this message because you are subscribed to the Google Groups "FHEM users" group.
To post to this group, send email to fhem-users@googlegroups.com.
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en.