Hallo,
ich möchte innerhalb einer Gruppe verschiedene Schalter nebeneinander anordnen, wie im Beispielbild gezeigt.
Kann mir jemand sagen wie das geht?
Das Bild habe ich mir aus dem Modul "Lightscene" gebastelt, allerdings funktionieren da die Schalter nicht, die sind dort nur zur Anzeige.
Hintergrund ist dass ich damit Platz sparen kann, anstatt zum Beispiel 5 Schalter untereinander zu haben (5 Zeilen), könnte ich die elegant in einer Zeile nebeneinander anordnen und brauche dann nur eine Headerzeile. Insgesamt also nur 2 Zeilen anstatt 5 Zeilen.
Gruss und Danke!
https://forum.fhem.de/index.php/topic,55728.msg514028.html#msg514028
Hallo dev0,
super, aber ich kriegs irgendwie nicht hin, die 3 Schalter lassen sich nicht schalten. Kannst Du mal gucken was ich falsch mache?
Ich habe einen dummy 'Allgemein' angelegt, mit den States S1,S2,S3.
Die Icons in der Readingsgroup Schaltgruppe lassen sich einfach nicht schalten, Bild unten anbei:
Internals:
CFGFN
DEF <Schaltgruppe>,<Sonos>,<PCLicht>,<Camera> Allgemein:S1,S2,S3
NAME Schaltgruppe
NR 3829
NTFY_ORDER 50-Schaltgruppe
STATE Initialized
TYPE readingsGroup
mayBeVisible 1
Content:
Allgemein 1
Content2:
DEVICES:
ARRAY(0x565da00)
ARRAY(0x5cb5e68)
Readings:
Fhem:
lastDefChange 50
last_update 1479068802.33433
Helper:
DEF
Commands:
S1.off set Allgemein S1 on
S1.on set Allgemein S1 off
S2.off set Allgemein S2 on
S2.on set Allgemein S2 off
S3.off set Allgemein S3 on
S3.on set Allgemein S3 off
Positions:
Allgemein.S1 2:1
Allgemein.S2 2:2
Allgemein.S3 2:3
Valueicon:
S1.off ios-off
S1.on ios-on-green
S2.off ios-off
S2.on ios-on-green
S3.off ios-off
S3.on ios-on-green
Values:
formated:
ARRAY(0x53c72a0)
ARRAY(0x5cb83d0)
ARRAY(0x10a7610)
orig:
ARRAY(0x5433d68)
ARRAY(0x585b930)
ARRAY(0x58b1e38)
prefixsuffix:
ARRAY(0x543f138)
ARRAY(0x5db98f8)
ARRAY(0x5cb8418)
Attributes:
commands { 'S1.on' => 'set Allgemein S1 off',
'S1.off' => 'set Allgemein S1 on',
'S2.on' => 'set Allgemein S2 off',
'S2.off' => 'set Allgemein S2 on',
'S3.on' => 'set Allgemein S3 off',
'S3.off' => 'set Allgemein S3 on'}
group SCHALTER
noheading 1
room Favourites,System
style style="width:700px;"
valueIcon { 'S1.on' => 'ios-on-green',
'S1.off' => 'ios-off',
'S2.on' => 'ios-on-green',
'S2.off' => 'ios-off',
'S3.on' => 'ios-on-green',
'S3.off' => 'ios-off'}
Internals:
NAME Allgemein
NR 3762
STATE S3 on
TYPE dummy
Readings:
2016-11-13 17:53:54 S1 off
2016-11-13 17:54:00 S2 on
2016-11-13 17:53:22 S3 off
2016-11-13 21:26:49 state S3 on
Attributes:
comment off1:ios-off:on1 on1:ios-on-green:off1 off2:ios-on-blue:on2 on2:ioRot:off2
devStateIcon off:ios-off:on on:ios-on-green:off
room System
setList S1:on,off S2:on,off S3:on,off
stateFormat state
webCmd S1:S2:S3
ändert sich der maus cursor wenn du über dem schalter bist? d.h. wird ein link erzeugt und nur das kommando ist falsch? oder gibt es schon keinen link?
falls es letzteres ist mach mal ein fhem update. ich habe vor kurzem etwas repariert.
gruss
andre
Hallo Andre,
ja der Mauszeiger wird zum Zeigefinger, und es erschein ein kleines Kästechen mit entweder 'on' oder 'off', aber wenn ich dann drück passiert nichts. FHEM sollte aktuell sein.
test Revision: 12557
File Rev Last Change
fhem.pl 12544 2016-11-11 06:48:16Z rudolfkoenig
96_allowed.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
90_at.pm 12028 2016-08-21 12:08:28Z rudolfkoenig
98_autocreate.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
98_cmdalias.pm 12238 2016-10-02 12:58:11Z rudolfkoenig
38_CO20.pm 9679 2015-10-25 23:10:29Z markus-m
00_CUL.pm 12027 2016-08-21 12:05:23Z rudolfkoenig
10_CUL_HM.pm 12555 2016-11-12 19:47:07Z martinp876
93_DbLog.pm 11825 2016-07-21 05:40:59Z tobiasfaust
98_dewpoint.pm 6757 2014-10-12 18:58:57Z joachim09876
98_DOIF.pm 12215 2016-09-26 21:02:49Z damian-s
98_dummy.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
70_EGPM.pm 5344 2014-03-27 20:06:31Z alexus2033
17_EGPM2LAN.pm 12092 2016-08-30 10:39:50Z alexus2033
73_ElectricityCalculator.pm 12278 2016-10-05 18:40:28Z sailor-fhem
00_FBAHA.pm 12235 2016-10-02 09:37:41Z rudolfkoenig
10_FBDECT.pm 12520 2016-11-07 09:41:47Z rudolfkoenig
72_FB_CALLMONITOR.pm 12393 2016-10-21 14:46:48Z markusbloch
No Id found for 96_FB_SIP.pm
01_FHEMWEB.pm 12504 2016-11-04 19:35:20Z rudolfkoenig
92_FileLog.pm 12378 2016-10-18 19:45:22Z rudolfkoenig
72_FRITZBOX.pm 12221 2016-09-29 18:30:14Z grompo
10_FS20.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
73_GasCalculator.pm 12279 2016-10-05 18:40:55Z sailor-fhem
98_GEOFANCY.pm 12048 2016-08-22 08:09:11Z loredo
20_GUEST.pm 12317 2016-10-10 23:12:02Z loredo
88_HMCCU.pm 12542 2016-11-10 21:03:03Z fhemzap
88_HMCCUDEV.pm 12542 2016-11-10 21:03:03Z fhemzap
98_HMinfo.pm 12552 2016-11-12 19:20:48Z martinp876
00_HMLAN.pm 12351 2016-10-16 18:18:00Z martinp876
00_HMUARTLGW.pm 12433 2016-10-26 08:36:40Z mgernoth
95_holiday.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
98_HTTPMOD.pm 12220 2016-09-29 18:25:09Z ststrobel
30_HUEBridge.pm 12426 2016-10-25 17:32:41Z justme1968
31_HUEDevice.pm 12551 2016-11-12 16:06:27Z justme1968
98_JsonList2.pm 12275 2016-10-05 14:33:55Z rudolfkoenig
31_LightScene.pm 12528 2016-11-08 12:39:32Z justme1968
32_mailcheck.pm 12339 2016-10-14 18:11:14Z justme1968
75_msgConfig.pm 12317 2016-10-10 23:12:02Z loredo
76_MSGMail.pm 12024 2016-08-21 09:48:42Z gandy92
99_MyUtils.pm 1932 2013-03-06 20:15:33Z Bernd
91_notify.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
73_PRESENCE.pm 12344 2016-10-15 23:08:28Z markusbloch
70_Pushover.pm 12371 2016-10-18 08:39:35Z loredo
33_readingsGroup.pm 12556 2016-11-12 19:56:15Z justme1968
95_remotecontrol.pm 10724 2016-02-04 18:17:33Z ulimaass
10_RESIDENTS.pm 12317 2016-10-10 23:12:02Z loredo
20_ROOMMATE.pm 12317 2016-10-10 23:12:02Z loredo
91_sequence.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
00_SONOS.pm 11082 2016-03-19 12:16:40Z rleins
21_SONOSPLAYER.pm 11082 2016-03-19 12:16:40Z rleins
98_statistics.pm 12218 2016-09-27 19:25:42Z grompo
98_structure.pm 12500 2016-11-04 10:42:50Z rudolfkoenig
99_SUNRISE_EL.pm 12485 2016-11-01 15:18:51Z rudolfkoenig
98_SVG.pm 12482 2016-11-01 09:25:59Z rudolfkoenig
98_telnet.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
98_TRAFFIC.pm 12293 2016-10-07 19:34:28Z jm1ke
98_update.pm 12450 2016-10-28 06:46:52Z rudolfkoenig
99_Utils.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
98_version.pm 11987 2016-08-19 17:13:41Z markusbloch
91_watchdog.pm 12534 2016-11-09 18:22:23Z rudolfkoenig
59_Weather.pm 12464 2016-10-29 08:58:29Z borisneubert
98_weblink.pm 11984 2016-08-19 12:47:50Z rudolfkoenig
No Id found for 74_XiaomiFlowerSens.pm
32_yowsup.pm 12219 2016-09-29 10:03:25Z justme1968
Blocking.pm 12521 2016-11-07 14:29:48Z rudolfkoenig
Color.pm 11159 2016-03-30 16:08:06Z justme1968
Common.pm 10759 2016-02-07 20:00:12Z rleins
ControlPoint.pm 10759 2016-02-07 20:00:12Z rleins
DevIo.pm 12515 2016-11-06 18:22:36Z rudolfkoenig
FritzBoxUtils.pm 6574 2014-09-19 17:32:48Z rudolfkoenig
HMCCUConf.pm 12542 2016-11-10 21:03:03Z fhemzap
HMConfig.pm 12552 2016-11-12 19:20:48Z martinp876
HttpUtils.pm 12174 2016-09-19 05:53:59Z rudolfkoenig
Info.pm 28 2008-11-09 01:08:44Z dsully
msgSchema.pm 12402 2016-10-22 13:23:25Z loredo
RESIDENTStk.pm 12404 2016-10-22 13:23:55Z loredo
RTypes.pm 10476 2016-01-12 21:03:33Z borisneubert
SetExtensions.pm 11513 2016-05-24 17:56:05Z rudolfkoenig
SubProcess.pm 11128 2016-03-26 17:55:58Z borisneubert
TcpServerUtils.pm 11908 2016-08-06 15:09:55Z rudolfkoenig
YahooWeatherAPI.pm 12465 2016-10-29 09:01:31Z borisneubert
schau mal ins fhem log ob dort etwa steht
Das bekomme ich:
Verbose level ist 5
RPI3 mit aktuellem Jessie.
2016.11.13 22:00:21 5: Notify from Device: Allgemein recieved
2016.11.13 22:00:21 4: name: /fhem?XHR=1&cmd=set%20Allgemein%20S3%20on&fw_id=5050 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2016.11.13 22:00:23 4: WEB_172.21.0.4_61308 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem.log; BUFLEN:0
Funktioniert jetzt, man muss natürlich auch den Reading state ändern damit das Icon sich ändert. Das hatte mein Dummy zuerst so nicht gemacht,
habs jetzt geändert jetzt funktionierts.
Riesengrosses DANKE!