Rolladensteuerung über Alexa

Begonnen von juemuc, 26 Januar 2020, 20:38:28

Vorheriges Thema - Nächstes Thema

juemuc

gerne  :)
Internals:
   CFGFN     
   FUUID      5e30a973-f33f-ca7c-1d73-f3a53e036132ad07
   NAME       TestRollo
   NR         16223
   STATE      pct-10
   TYPE       ROLLO
   stoptime   1580248103
   OLDREADINGS:
   READINGS:
     2020-01-28 22:48:22   command         pct-10
     2020-01-28 22:48:22   desired_pct     10
     2020-01-28 22:48:22   drive-type      modul
     2020-01-28 22:48:22   last_drive      drive-up
     2020-01-28 22:48:23   pct             10
     2020-01-28 22:48:23   state           pct-10
Attributes:
   alexaName  TestRollo
   cmdIcon    open:fts_shutter_up closed:fts_shutter_down stop:fts_shutter_manual half:fts_shutter_50
   devStateIcon open:fts_shutter_10:closed closed:fts_shutter_100:open half:fts_shutter_50:closed drive-up:fts_shutter_up@red:stop drive-down:fts_shutter_down@red:stop pct-100:fts_shutter_100:open pct-90:fts_shutter_80:closed pct-80:fts_shutter_80:closed pct-70:fts_shutter_70:closed pct-60:fts_shutter_60:closed pct-50:fts_shutter_50:closed pct-40:fts_shutter_40:open pct-30:fts_shutter_30:open pct-20:fts_shutter_20:open pct-10:fts_shutter_10:open pct-0:fts_shutter_10:closed
   genericDeviceType blind
   rl_autoStop 0
   rl_excessBottom 1
   rl_excessTop 1
   rl_secondsDown 1
   rl_secondsUp 1
   rl_switchTime 1
   rl_type    normal
   room       Büro
   webCmd     open:closed:half:stop:pct


Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

amenomade

OK pct reading ist da.
Kannst du jetzt bitte in der Log gucken, wie das Device von alexa erkannt wird?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

juemuc

#17
Meinst Du dies?
ZitatRollo_Test, r: büro","friendlyName":"rollo test","displayCategories":["EXTERIOR_BLIND"],"additionalAttributes":{"manufacturer":"FHEM","model":"<unknown>"},"capabilities":[{"type":"AlexaInterface","interface":"Alexa.RangeController","instance":"Blind.Position","version":"3","properties":{"supported":[{"name":"rangeValue"}],"proactivelyReported":false,"retrievable":true},"capabilityResources":{"friendlyNames":[{"@type":"asset","value":{"assetId":"Alexa.Setting.Opening"}}]},"configuration":{"supportedRange":{"minimumValue":0,"maximumValue":100,"precision":1},"unitOfMeasure":"Alexa.Unit.Percent"}}],"cookie":{"device":"Rollo_Test","fuuid":"5e2ddf9b-f33f-ca7c-2f33-361c6fe1aa70679a"}},{"endpointId":"5c50c7bb-f33f-ca7c-07b2-490c89fa789dcc59","manufacturerName":"dummy","description":"n:

So wird auch mein Dummy erkannt.

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

amenomade

Ne, was vorher kommt, wie :
[12/19/2019, 12:17:33 AM] [FHEM] wz_Rolladen is blind
[12/19/2019, 12:17:33 AM] [FHEM] wz_Rolladen has
[12/19/2019, 12:17:33 AM] [FHEM]   CurrentPosition [pct]
[12/19/2019, 12:17:33 AM] [FHEM]   TargetPosition [pct]
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

juemuc

Ja das steht auch bei mir  :D

Zitat[2020-1-28 22:39:12] [FHEM] Rollo_Buero is blind
[2020-1-28 22:39:12] [FHEM] Rollo_Buero has
[2020-1-28 22:39:12] [FHEM]   CurrentPosition [pct]
[2020-1-28 22:39:12] [FHEM]   TargetPosition [pct]
[2020-1-28 22:39:12] [FHEM] Rollo_Test is blind
[2020-1-28 22:39:12] [FHEM] Rollo_Test has
[2020-1-28 22:39:12] [FHEM]   CurrentPosition [pct]
[2020-1-28 22:39:12] [FHEM]   TargetPosition [pct]
[2020-1-28 22:39:12] [FHEM] Rollos_Ost is blind
[2020-1-28 22:39:12] [FHEM] Rollos_Ost has
[2020-1-28 22:39:12] [FHEM]   CurrentPosition [pct]
[2020-1-28 22:39:12] [FHEM]   TargetPosition [pct]
[2020-1-28 22:39:12] [FHEM] Rollos_West is blind
[2020-1-28 22:39:12] [FHEM] Rollos_West has
[2020-1-28 22:39:12] [FHEM]   CurrentPosition [pct]
[2020-1-28 22:39:12] [FHEM]   TargetPosition [pct]

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

juemuc

Hallo zusammen,

ich habe nun weiter gestestet und auch ein homebridgemapping eingebaut. Leider weiterhin kein Erfolg. Über den Schieberegler in der Alexa-App wird an FHEM übergeben. Das Device zeigt aber weiterhin an, das es ein Problem gibt und erkennt auch keine Änderungen in FHEM. Hier mein aktuelles List
ZitatInternals:
   CFGFN     
   FUUID      5e3341b3-f33f-ca7c-be12-22739d05e26c253b
   NAME       Rollo_Test
   NR         809
   STATE      pct 50
   TYPE       dummy
   READINGS:
     2020-01-30 22:59:18   state           pct 50
Attributes:
   alexaName  Rollo Test
   alias      Rollo Test
   devStateIcon pct.0:fts_roof_window_shutter_0 pct.25:fts_roof_window_shutter_02 pct.50:fts_roof_window_shutter_05 pct.75:fts_roof_window_shutter_07 pct.100:fts_roof_window_shutter_10 pct.*:unknown
   event-on-change-reading .*
   genericDeviceType blind
   homebridgeMapping CurrentPosition=pct,minValue=0,maxValue=100,minStep=1 TargetPosition=pct::CurrentPosition,minValue=0,maxValue=100,minStep=25
   icon       it_remote@black
   readingList state
   room       Büro
   setList    state:pct#0,pct#25,pct#50,pct#75,pct#100,STOP
   sortby     01
   webCmd     state

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

amenomade

Aber dein Device hat jetzt kein Reading pct mehr. Wie soll das funktionieren?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

juemuc

Auch das bringt leider keinen Erfolg. Was nun?

ZitatInternals:
   FUUID      5e3341b3-f33f-ca7c-be12-22739d05e26c253b
   NAME       Rollo_Test
   NR         337
   STATE      pct 75
   TYPE       dummy
   READINGS:
     2020-01-31 22:24:33   pct             75
     2020-01-31 22:24:33   state           pct 75
Attributes:
   alexaName  Rollo Test
   alias      Rollo Test
   devStateIcon pct.0:fts_roof_window_shutter_0 pct.25:fts_roof_window_shutter_02 pct.50:fts_roof_window_shutter_05 pct.75:fts_roof_window_shutter_07 pct.100:fts_roof_window_shutter_10 pct.*:unknown
   event-on-change-reading .*
   genericDeviceType blind
   homebridgeMapping CurrentPosition=pct,minValue=0,maxValue=100,minStep=1 TargetPosition=pct::CurrentPosition,minValue=0,maxValue=100,minStep=25
   icon       it_remote@black
   readingList state
   room       Büro
   setList    state:pct#0,pct#25,pct#50,pct#75,pct#100,STOP
   sortby     01
   userReadings pct {ReadingsNum($name,"state","")}
   webCmd     state

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

amenomade

Du solltest vielleicht die Doku über homeBridgeMapping wieder lesen.
So kann es nicht gehen.

ZitatTargetPosition=pct::CurrentPosition
Command = pct, aber pct ist nicht in der setList
::CurrentPosition = Reading CurrentPositiongibt es nicht

ZitatCurrentPosition=pct,minValue=0,maxValue=100,minStep=1
CurrentPosition=pct => ok, aber was soll dann minValue maxValue und minStep für die CurrentPosition bedeuten?

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

juemuc

Hallo zusammen,

ich glaube nun die Ursache gefunden zu haben.

Es ligt am genericDeviceType. Wenn ich diesen nicht definiere, wird der Dummy als Lampe erkannt und ich kann per Sprachbefehl die Prozentzahl übergeben. Wenn ich allerdings genericDeviceType "blind" definiere, funktioniert zwar die Kommunikation mit Alexa über die App per Schieberegler aber nicht per Sprache. Hier kommt immer die Info "Alexa unterstützt das nicht". Ein homebridgemapping ist also nicht notwendig.
Hier meine aktuelles List.
ZitatInternals:
   FUUID      5e3341b3-f33f-ca7c-be12-22739d05e26c253b
   NAME       Rollo_Test
   NR         337
   STATE      pct 0
   TYPE       dummy
   READINGS:
     2020-02-01 17:11:27   pct             0
     2020-02-01 17:11:27   state           pct 0
Attributes:
   alexaName  Rollo Test
   alias      Rollo Test
   devStateIcon pct.0:fts_roof_window_shutter_0 pct.25:fts_roof_window_shutter_02 pct.50:fts_roof_window_shutter_05 pct.75:fts_roof_window_shutter_07 pct.100:fts_roof_window_shutter_10 pct.*:unknown
   event-on-change-reading .*
   icon       it_remote@black
   readingList state
   room       Büro
   setList    pct:0,25,50,75,100,STOP
   sortby     01
   userReadings pct {ReadingsNum($name,"state","")}
   webCmd     pct

Ich hoffe, dieses Poblem kann nun jemand nachvollziehenund bestätigen.

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

amenomade

Du hast aber vor allem setList auf pct gesetzt...
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

juemuc

3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

juemuc

Hallo amenomade,

aus meiner Sicht sind alle Punkte erfüllt. setList ist gesetzt und nun alles mit "position" definiert. Hier das defmod bzw. das list:

defmod Rollo_Test dummy
attr Rollo_Test alexaName Rollo Test
attr Rollo_Test alias Rollo Test
attr Rollo_Test event-on-change-reading .*
attr Rollo_Test genericDeviceType blind
attr Rollo_Test icon it_remote@black
attr Rollo_Test readingList position
attr Rollo_Test room Büro
attr Rollo_Test setList position
attr Rollo_Test stateFormat position
attr Rollo_Test userReadings position

Internals:
   FUUID      5e3341b3-f33f-ca7c-be12-22739d05e26c253b
   NAME       Rollo_Test
   NR         337
   STATE      14
   STILLDONETIME 0
   TYPE       dummy
   OLDREADINGS:
   READINGS:
     2020-02-02 22:02:10   position        14
Attributes:
   alexaName  Rollo Test
   alias      Rollo Test
   event-on-change-reading .*
   genericDeviceType blind
   icon       it_remote@black
   readingList position
   room       Büro
   setList    position
   stateFormat position
   userReadings position


Laut hombridgeMapping-Doku sollte kein Mapping notwendig sein. Es funktioniert weiterhin nur über den Schieberegler aber nicht per Sprachbefehl. (auch ein Test mit hombrideMapping war erfolglos). Es kommt weiterhin die Ansage "Rollo_Test unterstützt das nicht".
Alexa habe ich immer dazwischen "reloaded". In der App habe ich das Gerät gelöscht und neu suchen lassen. Was mache ich noch falsch? Ich sege es leider nicht und bitte um Hilfe. Das ganze mit "pct" funktioniert bei mir auch nicht.

Viele Grüße
Jürgen

PS.: Ich war nur in den anderen Thread gewechselt, da ich die Hoffnung hatte, dass es mit dem Alexa-Modul zusammenhängt.



3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

amenomade

#29
Deine Definition ist jetzt OK (das attr userReadings ist allerdings überflüssig, aber das stört nicht).
Ich habe sie 1 zu 1 inkl userReadings übernommen, ein "set alexa reload" gemacht, und schon funktioniert es
Ich habe "PossibleSets":"position" in jsonlist2, und tatsächlich ist kein homeBridgeMapping nötig

Alexa, setze Rollo Test auf 10 prozent => geht
Alexa, Rollo Test auf 40 prozent => geht

Zeig mal die Log wenn Du das "set alexa reload" machst, und bei  "Alexa, setze Rollo Test auf 20 prozen" (tokens anonymisieren), und guck in der Historie von der alexa App, was für ein Befehl erkannt wurde,

Im alexa Device, hast Du diese 2 Readings?
     2020-01-28 02:32:56   alexaFHEM       running /usr/bin/alexa-fhem
     2020-02-02 03:04:41   alexaFHEM.ProxyConnection running; SSH connected
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus