2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-13 17:26:34 +00:00

git-svn-id: https://svn.fhem.de/fhem/trunk@3163 2b470e98-0d58-463d-a4d8-8e2adae1ed80

This commit is contained in:
pahenning 2013-05-09 05:27:53 +00:00
parent f9e2152340
commit b5999e072f
3 changed files with 12 additions and 5 deletions

View File

@ -4,7 +4,7 @@
#
# YAF - Yet Another Floorplan
# FHEM Projektgruppe Hochschule Karlsruhe, 2013
# Markus Mangei, Daniel Weisensee
# Markus Mangei, Daniel Weisensee, Prof. Dr. Peter A. Henning
#
########################################################################################
#
@ -24,3 +24,10 @@
########################################################################################
Please notice the installation guide included in the documentation.
Bitte beachten Sie die beiliegende Anleitung
WESENTLICHE ÄNDERUNGEN in YAF 0.41
- Das Attribut "attribute" in der Konfigurationsdatei wurde in "fhemname" umbenannt. Bitte
bei schon bestehenden Installationen von YAF manuell ändern

View File

@ -176,7 +176,7 @@ sub fs20easylamp_get_addwidget_setup_html() {
sub fs20easylamp_get_addwidget_prepare_attributes() {
my $output = '
var temp_array = new Array();
temp_array[0] = "attribute";
temp_array[0] = "fhemname";
temp_array[1] = $("#combobox option:selected").val()
attributes_array[0] = temp_array;
';
@ -205,7 +205,7 @@ sub fs20easylamp_getwidget_html() {
########################################################################################
sub fs20easylamp_get_lamp_status () {
my $attribute = YAF_getWidgetAttribute($_GET{"view_id"}, $_GET{"widget_id"}, "attribute");
my $attribute = YAF_getWidgetAttribute($_GET{"view_id"}, $_GET{"widget_id"}, "fhemname");
my $d = $defs{$attribute};
return $d->{STATE};
}
@ -219,7 +219,7 @@ sub fs20easylamp_get_lamp_status () {
########################################################################################
sub fs20easylamp_set_lamp_status() {
my $attribute = YAF_getWidgetAttribute($_GET{"view_id"}, $_GET{"widget_id"}, "attribute");
my $attribute = YAF_getWidgetAttribute($_GET{"view_id"}, $_GET{"widget_id"}, "fhemname");
my $d = $defs{$attribute};
Log 3, "set ".$d->{NAME}." ".$_GET{"status"};
fhem "set ".$d->{NAME}." ".$_GET{"status"};