IKEA Trådfri Modul

Begonnen von Peter Kappelt, 16 April 2017, 15:07:07

Vorheriges Thema - Nächstes Thema

rudeboy

Hallo Peter,

super, vielen Dank, werde ich dann gleich mal testen und geb Dir dann nochmal Bescheid. 

Gruß
Rudy
FHEM 5.9
nanoCUL868: HM-LC-DIM1T-FM/nanoCUL433 (V 1.26.05 a-culfw Build: 156): 3x Hama Funksteckdosen/1x BroadLink für TV und TECVANCE Funksteckdosen/1x Echo Dot/2xMagic UFO-WiFi LED-Controller: LED RGBW Warm White LED Strip/Tradfri Gateway: 6x Tradfri LED/2xEQ3 Bluetooth Thermostat

rudeboy

Hallo Peter,

die Leuchten funktionieren jetzt ohne Probleme mit Alexa.
Vielen Dank nochmal an dieser Stelle für Deine Arbeit!!!

Gruß
Rudy
FHEM 5.9
nanoCUL868: HM-LC-DIM1T-FM/nanoCUL433 (V 1.26.05 a-culfw Build: 156): 3x Hama Funksteckdosen/1x BroadLink für TV und TECVANCE Funksteckdosen/1x Echo Dot/2xMagic UFO-WiFi LED-Controller: LED RGBW Warm White LED Strip/Tradfri Gateway: 6x Tradfri LED/2xEQ3 Bluetooth Thermostat

pronson

Hallo zusammen, ist das richtig, dass ich die Lampe via Homebridge nicht dimmen kann?I Ich habe es bereits mit dem HomebridgeMapping versucht (homebridgeMapping Brightness=dim::dim) jedoch wird mir der Homebrige Schalter nur als ON/OFF angezeit.

rudeboy

Hallo pronson,

versuch mal Bitte:
attr "Dein device" webCMD on:off:dimvalue

Wenn du anstelle des Bereiches von 0 bis 254 lieber von 0 bis 100 haben willst musst du noch:
attr "Dein device" usePercentDimming 1

Gruß
Rudy
FHEM 5.9
nanoCUL868: HM-LC-DIM1T-FM/nanoCUL433 (V 1.26.05 a-culfw Build: 156): 3x Hama Funksteckdosen/1x BroadLink für TV und TECVANCE Funksteckdosen/1x Echo Dot/2xMagic UFO-WiFi LED-Controller: LED RGBW Warm White LED Strip/Tradfri Gateway: 6x Tradfri LED/2xEQ3 Bluetooth Thermostat

justme1968

schau mal weiter oben wie das homebridgeMapping korrekt aussehen muss. dein kommando heißt ja nicht dim sondern dimvalue.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

NDR008

Hi,

Sorry in English,

I am using Tradfri lights with gateway and FHEM for 1 week.

I have one problem. If the lights are already on, before opening FHEM, FHEM indicates lights state as "off".
If I type "get <device> state", it returns "on". After this FHEM interfaces (Dashboard / FTUI / etc) looks okay.

Questions:
a) Can I force a get <device> state whenever FHEM index.html or ftui/index.html is loaded?
b) Is it okay to set AutoUpdateInterval to a low value (like 5s)?
RPi2 + FHEM + FTUI + Max! Cube + Ikea Tradfri

amenomade

Try in FHEMWeb
attr <FHEMWEBinstance> longpoll 1

and in FTUI html:
<head>
    ...
    <meta name="longpoll" content="1">
    ...
</head>
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

reibuehl

Shouldn't the module do a status check of all devices that it controls when it initializes?
Reiner.

amenomade

ZitatShouldn't the module do a status check of all devices that it controls when it initializes?

It does.... depending on the poll method which is used.
See here: https://wiki.fhem.de/wiki/FHEM_Tablet_UI_FAQ#Das_UI_zeigt_Status.C3.A4nderungen_erst_nach_30s
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

NDR008

I added
<meta name="longpoll" content="1">
Restarted FHEM.

But the problem persists, maybe with the module?

Zitat von: amenomade am 31 Mai 2017, 14:05:17
Ich vermute ein longpoll Problem. Siehe hier: https://wiki.fhem.de/wiki/FHEM_Tablet_UI#Verbindung_zu_FHEM

Aber um das sicher zu stellen, poste mal bitte ein "list" von dem Dimmer (in FHEMWeb im Kommandofeld "list Study") und das Ergebnis hier in code tags (der # Knopf im Editieren Menü hieroben).

Mich interessieren auch die <meta> tags, die Du in index.html hast (wegen longpoll).

Ohne diese zusätzliche Informationen ist es schwierig zu helfen.


PS: if you prefer, we can do it in english.

I tried "list Study" and got:



Internals:
   CHANGED
   DEF        65537
   IODev      TradfriGW
   NAME       Study
   NR         62
   STATE      off
   TYPE       TradfriDevice
   deviceAddress 65537
   name       Study
   Readings:
     2017-05-30 20:04:49   color           f1e0b5
     2017-05-30 18:56:44   createdAt       Sun, 30 Apr 2017 10:10:04 GMT
     2017-05-31 11:04:52   dimvalue        101
     2017-05-31 15:49:52   lastSeen        Wed, 31 May 2017 15:35:34 GMT
     2017-05-30 18:56:44   manufacturer    IKEA of Sweden
     2017-05-30 18:56:44   name            Study
     2017-05-30 18:56:44   reachableState  1
     2017-05-30 18:56:44   softwareVersion 1.1.1.1-5.7.2.0
     2017-05-31 10:57:55   state           off
     2017-05-30 18:56:44   type            TRADFRI bulb E27 WS opal 980lm
Attributes:
   autoUpdateInterval 900
   icon       light_ceiling_light
   room       LivingRoom


But if I type "get Study state", I get "on", if I repeat list:

Internals:
   DEF        65537
   IODev      TradfriGW
   NAME       Study
   NR         62
   STATE      on
   TYPE       TradfriDevice
   deviceAddress 65537
   name       Study
   Readings:
     2017-05-30 20:04:49   color           f1e0b5
     2017-05-30 18:56:44   createdAt       Sun, 30 Apr 2017 10:10:04 GMT
     2017-05-31 11:04:52   dimvalue        101
     2017-05-31 15:49:52   lastSeen        Wed, 31 May 2017 15:35:34 GMT
     2017-05-30 18:56:44   manufacturer    IKEA of Sweden
     2017-05-30 18:56:44   name            Study
     2017-05-30 18:56:44   reachableState  1
     2017-05-30 18:56:44   softwareVersion 1.1.1.1-5.7.2.0
     2017-05-31 17:45:26   state           on
     2017-05-30 18:56:44   type            TRADFRI bulb E27 WS opal 980lm
Attributes:
   autoUpdateInterval 900
   icon       light_ceiling_light
   room       LivingRoom


Of course, the light was always on. ;)
RPi2 + FHEM + FTUI + Max! Cube + Ikea Tradfri

NDR008

RPi2 + FHEM + FTUI + Max! Cube + Ikea Tradfri

amenomade

Yes, because probably on your web page there is no data to actualize so often. If it is generally working (you do get the values when they change), see here : https://forum.fhem.de/index.php/topic,68491.msg600700.html#msg600700
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

NDR008

I never get the values that have changed without manually typing get state or waiting for the next AutoUpdateInterval cycle.
RPi2 + FHEM + FTUI + Max! Cube + Ikea Tradfri

Mac

Hi zusammen,

die recht günstigen Lampen von Ikea und dieses Modul (vielen Dank Peter!) haben mich dazu verleitet mit FHEM zu beginnen. Ich bin also noch ziemlicher Einsteiger. Die Installation hat super funktioniert und meine erste Glühbirne hört auf jeden Klick  :)

Was mir noch fehlt, bevor ich mein ganzes Wohnzimmer mit den Tradfri-Lampen ausstatte, ist die Möglichkeit die Lampen langsam zu Dimmen. Bei anderen Dimmern kann man ja eine "Ramp-Time" mitgeben. Ist dies auch irgendwie mit den Tradfri-Lampen möglich? Falls das (noch) nicht geht, könnte das in diesem Modul noch irgendwann hinzugefügt werden, oder gibt es Hardwaretechnische Gründe, die es bei den Tradfri-Lampen nicht möglich machen?

Vielen Dank für eure Hilfe und schöne Grüße

mbrak

Hallo Peter

ist vielleicht nur ein Schönheitsfehler....

Bei meinem Gateway ist der Status seit der initialen Installation auf STATE "???"

Ist das nur bei mir so?


Gruß Michael