Hi,
hab mich mal an das hervorragende "Erste Schritte in FHEM-Dokument" gewagt und hätte da mal eine Frage.
Wenn ich per Port 8084 mich mit meinem Smartphone "einlogge" kann ich zwar die Zustände von myLamp1 und mySwitch1 sehen, diese jedoch nicht schalten.
Woran kann das liegen?
Gruß Chris
Hmm... schwierig zu sagen.
Ein "list" von myLamp1 und von WEBphone und ein Extrakt von der Log wären hilfreich...
Internals:
NAME mySwitch1
NR 20
STATE on
TYPE dummy
Readings:
2018-05-27 19:42:52 state on
Attributes:
fhem_widget_channels [{"allowed_values":[]}]
room Training
webCmd on:off
Internals:
NAME myLamp1
NR 21
STATE on
TYPE dummy
Readings:
2018-05-27 19:42:52 state on
Attributes:
room Training
2018.05.27 07:46:41 1: Including fhem.cfg
2018.05.27 07:46:42 3: telnetPort: port 7072 opened
2018.05.27 07:46:43 3: WEB: port 8083 opened
2018.05.27 07:46:43 3: WEBphone: port 8084 opened
2018.05.27 07:46:43 3: WEBtablet: port 8085 opened
2018.05.27 07:46:43 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2018.05.27 07:46:44 1: usb create starting
2018.05.27 07:46:46 3: Probing CUL device /dev/ttyAMA0
2018.05.27 07:46:46 3: Can't open /dev/ttyAMA0: Permission denied
2018.05.27 07:46:46 1: usb create end
2018.05.27 07:46:46 2: SecurityCheck: WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpassword. Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2018.05.27 07:46:46 0: Featurelevel: 5.8
2018.05.27 07:46:46 0: Server started with 9 defined entities (fhem.pl:13447/2017-02-19 perl:5.024001 os:linux user:fhem pid:19705)
2018.05.27 11:24:14 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:24:18 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:24:19 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:24:21 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:24:21 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:24:22 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:24:22 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:24:23 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:24:23 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 11:29:59 3: FHEMWEB WEB CSRF error: ne fhem_106998779117565. For detals see the csrfToken FHEMWEB attribute
2018.05.27 18:56:28 1: Including fhem.cfg
2018.05.27 18:56:29 3: telnetPort: port 7072 opened
2018.05.27 18:56:29 3: WEB: port 8083 opened
2018.05.27 18:56:29 3: WEBphone: port 8084 opened
2018.05.27 18:56:29 3: WEBtablet: port 8085 opened
2018.05.27 18:56:30 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2018.05.27 18:56:30 1: Including ./log/fhem.save
2018.05.27 18:56:27 0: Server shutdown
2018.05.27 18:57:06 1: Including fhem.cfg
2018.05.27 18:57:07 3: telnetPort: port 7072 opened
2018.05.27 18:57:23 3: WEB: port 8083 opened
2018.05.27 18:57:23 3: WEBphone: port 8084 opened
2018.05.27 18:57:23 3: WEBtablet: port 8085 opened
2018.05.27 18:57:24 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2018.05.27 18:57:26 1: Including ./log/fhem.save
2018.05.27 18:57:27 1: usb create starting
2018.05.27 18:57:36 3: Probing CUL device /dev/ttyAMA0
2018.05.27 18:57:37 3: Can't open /dev/ttyAMA0: Permission denied
2018.05.27 18:57:37 1: usb create end
2018.05.27 18:57:37 0: Featurelevel: 5.8
2018.05.27 18:57:37 0: Server started with 14 defined entities (fhem.pl:13447/2017-02-19 perl:5.024001 os:linux user:fhem pid:605)
Internals:
CONNECTS 69
CSRFTOKEN fhem_13569423514047.5
DEF 8084 global
FD 8
NAME WEBphone
NR 7
NTFY_ORDER 50-WEBphone
PORT 8084
STATE Initialized
TYPE FHEMWEB
Attributes:
stylesheetPrefix smallscreen
Bitte deine Posts editieren, und die versch. Auszüge in Code Tags einschliessen (den Text markieren, und im Edit Menü, das # Zeichen nutzen)
Bist Du sicher, dass du den richtigen Status von den Devcies siehst?
Zitat2018.05.27 18:57:36 3: Probing CUL device /dev/ttyAMA0
2018.05.27 18:57:37 3: Can't open /dev/ttyAMA0: Permission denied
Ja, definitiv. Funktioniert sogar (fast) in Echtzeit.
Gruß Chris
Und kannst Du die aus dem PC auf 8083 steuern?
Wenn ja, aus dem PC auf 8084 auch?
EDIT: dein attr fhem_widget_channels finde ich fragwürdig: allowedValues ist leer?
Für myLamp, würde ich noch evtl ein attr setList hinzufügen.
Hi,
steuern vom PC aus via Port 8083 geht; via 8084 ebenfalls nicht.
"attr fhem_widget_channels" kenne ich (noch nicht).
Werde es mir genauer in der commandList anschauen, danke.
Gruß Chris
Edit: attr mySwitch1 setList on off führte zum gewünschten Ziel. Danke! :)