Autor Thema: (Gelöst) Alexa mit Zigbee2Mqtt Dimmen  (Gelesen 1468 mal)

Offline TomLee

  • Tester
  • Hero Member
  • ****
  • Beiträge: 4623
  • ... wer sät, der erntet ...
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #15 am: 02 Dezember 2022, 15:26:25 »
Zitat
... aber zum einen ist das irritierend, dass man zwar nur 254 reinkloppen darf, aber (fast) 255 zurückkommt?!?

Das war ein Kopierfehler, hatte das gestern nur so nebenbei bei einer kurzen Pause am Tablet nachvollzogen.

Heute kränkle ich sowieso und es hat mich nicht losgelassen bis ich den korrekten Umrechnungsfaktor rausgefunden habe  ::), der ist:
0.39370078740157425
15:25:12.449

SENT

zigbee2mqtt/0x00158d0003278378/set

{"state":"on","brightness":"100"}
15:25:12.532

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Received MQTT message on 'zigbee2mqtt/0x00158d0003278378/set' with data '{\"state\":\"on\",\"brightness\":\"100\"}'"}
15:25:12.550

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Publishing 'set' 'brightness' to '0x00158d0003278378'"}
15:25:12.561

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/0x00158d0003278378', payload '{\"brightness\":100,\"color_mode\":\"color_temp\",\"color_temp\":320,\"linkquality\":143,\"state\":\"ON\"}'"}
15:25:12.572

mqttjs_91f275c4

zigbee2mqtt/0x00158d0003278378

{"brightness":100,"color_mode":"color_temp","color_temp":320,"linkquality":143,"state":"ON"}
15:25:17.885

SENT

zigbee2mqtt/0x00158d0003278378/set

{"state":"on","brightness":"75"}
15:25:17.967

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Received MQTT message on 'zigbee2mqtt/0x00158d0003278378/set' with data '{\"state\":\"on\",\"brightness\":\"75\"}'"}
15:25:17.977

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Publishing 'set' 'brightness' to '0x00158d0003278378'"}
15:25:18.000

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/0x00158d0003278378', payload '{\"brightness\":75,\"color_mode\":\"color_temp\",\"color_temp\":320,\"linkquality\":143,\"state\":\"ON\"}'"}
15:25:18.010

mqttjs_91f275c4

zigbee2mqtt/0x00158d0003278378

{"brightness":75,"color_mode":"color_temp","color_temp":320,"linkquality":143,"state":"ON"}
15:25:23.440

SENT

zigbee2mqtt/0x00158d0003278378/set

{"state":"on","brightness":"49"}
15:25:23.522

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Received MQTT message on 'zigbee2mqtt/0x00158d0003278378/set' with data '{\"state\":\"on\",\"brightness\":\"49\"}'"}
15:25:23.532

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Publishing 'set' 'brightness' to '0x00158d0003278378'"}
15:25:23.552

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/0x00158d0003278378', payload '{\"brightness\":49,\"color_mode\":\"color_temp\",\"color_temp\":320,\"linkquality\":143,\"state\":\"ON\"}'"}
15:25:23.562

mqttjs_91f275c4

zigbee2mqtt/0x00158d0003278378

{"brightness":49,"color_mode":"color_temp","color_temp":320,"linkquality":143,"state":"ON"}
« Letzte Änderung: 02 Dezember 2022, 15:30:02 von TomLee »

Offline Beta-User

  • Developer
  • Hero Member
  • ****
  • Beiträge: 19680
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #16 am: 02 Dezember 2022, 15:36:49 »
der ist:
0.39370078740157425
...auf sowas ähnliches war ich auch gekommen, daher die Kurzform ohne den Kleinschmodder hinter den zwei Nullen...

Bedeutet: "Bitte übernehmen" (weil die damit ermittelten Zahlenwerte super-integer sind) oder "ich melde mich nochmal, wenn ich das im fitten Zustand getestet habe"?
(Ich kann das nicht aus eigener Anschauung beurteilen und werde aus dem Log auch nicht so schlau wie es vermutlich gedacht ist).
Server: HP-T620@Debian 11, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Offline TomLee

  • Tester
  • Hero Member
  • ****
  • Beiträge: 4623
  • ... wer sät, der erntet ...
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #17 am: 02 Dezember 2022, 16:14:36 »
Bedeutet, bitte genauso jetzt übernehmen, das gestern mit einer Stelle mehr, war einfach nur ein Schnellschuss, weil ich eh am schreiben war, du aber schneller warst und das mit factor schon angesprochen hattest.

Der Auszug aus dem letzten Beitrag ist der MQTT-Verkehr am MQTT2-Server, bei dem drei Sprachbefehle abgesetzt wurden.

Es kommt also genau das zurüxk was auch gesendet wurde.

Wenn jetzt noch fragen sind hab ich erstmal keine Zeit, weil eh heut schon alles liegengeblieben ist wegen der Kacke und ich trotz kränkeln noch was arbeiten will.

Offline SamNitro

  • Sr. Member
  • ****
  • Beiträge: 954
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #18 am: 08 Dezember 2022, 18:08:05 »
Hallo, ich habe wieder einen Fehler im system, jetzt bekomme ich einen brightness wert von:
set 254.00000000000034obwohl der factor=0.39370078740157425 ist..
(Intel-Nuc Proxmox) (Homematic) (EnOcean) (CUL868) (CUL433) (Zigbee2MQTT) (ESP8266) (Echo) (DUOFERN)

Offline Beta-User

  • Developer
  • Hero Member
  • ****
  • Beiträge: 19680
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #19 am: 08 Dezember 2022, 18:14:52 »
Bitte mal mit den ersten 4 stellen testen.
Server: HP-T620@Debian 11, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Offline SamNitro

  • Sr. Member
  • ****
  • Beiträge: 954
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #20 am: 08 Dezember 2022, 18:31:43 »
mit folgendem Faktor geht es:
0.39370078740159damit bekomme ich
brightness = 253.9999999999902
(Intel-Nuc Proxmox) (Homematic) (EnOcean) (CUL868) (CUL433) (Zigbee2MQTT) (ESP8266) (Echo) (DUOFERN)

Offline TomLee

  • Tester
  • Hero Member
  • ****
  • Beiträge: 4623
  • ... wer sät, der erntet ...
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #21 am: 08 Dezember 2022, 18:40:29 »
Interessant wär den MQTT Verkehr zu sehen mit factor=0.39370078740157425.

Ich vermute von Alexa kommt 100 zurück und in z2m wird bei dem dimmer wieder anders gerechnet wie mit den Leuchten mit denen ich getestet hatte.

Offline SamNitro

  • Sr. Member
  • ****
  • Beiträge: 954
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #22 am: 08 Dezember 2022, 19:04:15 »
Alexa log erst 50% dann 100%
[8.12.2022, 19:00:51] >>>> [ssh] {"directive":{"header":{"messageId":"78201bf7-a64e-4a46-971d-c8c5e8e795c1","namespace":"Alexa.BrightnessController","name":"SetBrightness","payloadVersion":"3","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"39F6EFCC-F7ADEA4A9C957841"},"endpointId":"638a23df-f33f-19ae-5f8a-24d32dfafe6ee68b","cookie":{"device":"MQTT2_zigbee_Stehlampe","fuuid":"638a23df-f33f-19ae-5f8a-24d32dfafe6ee68b"}},"payload":{"brightness":50}}}
[8.12.2022, 19:00:51] [FHEM]     caching: Brightness: NaN (as number; from 'set 254.00000000000034')
[8.12.2022, 19:00:51] [FHEM] MQTT2_zigbee_Stehlampe: executing set cmd for Brightness with value 50
[8.12.2022, 19:00:51] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=set%20MQTT2_zigbee_Stehlampe%20brightness%20127.00000000000017&XHR=1
[8.12.2022, 19:00:51] <<<< [ssh] {"context":{"properties":[{"namespace":"Alexa.BrightnessController","name":"brightness","value":50,"timeOfSample":"2022-12-08T18:00:51.254Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"Response","payloadVersion":"3","messageId":"9379a7ca-605b-4f91-ba3e-0a76bb810ebf","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"39F6EFCC-F7ADEA4A9C957841"},"endpointId":"638a23df-f33f-19ae-5f8a-24d32dfafe6ee68b"},"payload":{}}}
  2022-12-08 19:00:51 caching: MQTT2_zigbee_Stehlampe-brightness: set 127.00000000000017
[8.12.2022, 19:00:51] [FHEM]     caching: Brightness: NaN (as number; from 'set 127.00000000000017')
  2022-12-08 19:00:51 caching: MQTT2_zigbee_Stehlampe-brightness: 127.00000000000017
[8.12.2022, 19:00:51] [FHEM]     caching: Brightness: 50 (as number; from '127.00000000000017')
[8.12.2022, 19:00:55] >>>> [ssh] {"directive":{"header":{"messageId":"91ba84fd-1b17-4207-91e2-20bcb527a51d","namespace":"Alexa.BrightnessController","name":"SetBrightness","payloadVersion":"3","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"39F6EFCC-F7ADEA4A9C957841"},"endpointId":"638a23df-f33f-19ae-5f8a-24d32dfafe6ee68b","cookie":{"device":"MQTT2_zigbee_Stehlampe","fuuid":"638a23df-f33f-19ae-5f8a-24d32dfafe6ee68b"}},"payload":{"brightness":100}}}
[8.12.2022, 19:00:55] [FHEM]     caching: Brightness: 50 (as number; from '127.00000000000017')
[8.12.2022, 19:00:55] [FHEM] MQTT2_zigbee_Stehlampe: executing set cmd for Brightness with value 100
[8.12.2022, 19:00:55] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=set%20MQTT2_zigbee_Stehlampe%20brightness%20254.00000000000034&XHR=1
[8.12.2022, 19:00:55] <<<< [ssh] {"context":{"properties":[{"namespace":"Alexa.BrightnessController","name":"brightness","value":100,"timeOfSample":"2022-12-08T18:00:55.722Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"Response","payloadVersion":"3","messageId":"b41ec524-c066-4078-9b79-0f88c109e4be","correlationToken":"-"},"endpoint":{"scope":{"type":"BearerToken","token":"39F6EFCC-F7ADEA4A9C957841"},"endpointId":"638a23df-f33f-19ae-5f8a-24d32dfafe6ee68b"},"payload":{}}}
  2022-12-08 19:00:55 caching: MQTT2_zigbee_Stehlampe-brightness: set 254.00000000000034
[8.12.2022, 19:00:55] [FHEM]     caching: Brightness: NaN (as number; from 'set 254.00000000000034')

MQTT 50% und 100%
19:03:46.961
SENT
zigbee2mqtt/0x842e14fffe413dbb/set
{"state":"on","brightness":"127.00000000000017"}
19:03:47.083
zigbee2mqtt
zigbee2mqtt/bridge/logging
{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/0x842e14fffe413dbb', payload '{\"brightness\":127.00000000000017,\"linkquality\":160,\"power_on_behavior\":\"on\",\"state\":\"ON\",\"update\":{\"state\":\"idle\"},\"update_available\":false}'"}
19:03:47.087
zigbee2mqtt
zigbee2mqtt/0x842e14fffe413dbb
{"brightness":127.00000000000017,"linkquality":160,"power_on_behavior":"on","state":"ON","update":{"state":"idle"},"update_available":false}
19:03:51.713
SENT
zigbee2mqtt/0x842e14fffe413dbb/set
{"state":"on","brightness":"254.00000000000034"}
19:03:51.719
zigbee2mqtt
zigbee2mqtt/bridge/logging
{"level":"error","message":"Publish 'set' 'brightness' to '0x842e14fffe413dbb' failed: 'Error: Brightness value of message: '{\"state\":\"on\",\"brightness\":\"254.00000000000034\"}' invalid, must be a number >= 0 and =< 254'"}
19:03:51.723
zigbee2mqtt
zigbee2mqtt/bridge/logging
{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{\"message\":\"Publish 'set' 'brightness' to '0x842e14fffe413dbb' failed: 'Error: Brightness value of message: '{\\\"state\\\":\\\"on\\\",\\\"brightness\\\":\\\"254.00000000000034\\\"}' invalid, must be a number >= 0 and =< 254'\",\"meta\":{\"friendly_name\":\"0x842e14fffe413dbb\"},\"type\":\"zigbee_publish_error\"}'"}
19:03:51.727
zigbee2mqtt
zigbee2mqtt/bridge/log
{"message":"Publish 'set' 'brightness' to '0x842e14fffe413dbb' failed: 'Error: Brightness value of message: '{\"state\":\"on\",\"brightness\":\"254.00000000000034\"}' invalid, must be a number >= 0 and =< 254'","meta":{"friendly_name":"0x842e14fffe413dbb"},"type":"zigbee_publish_error"}
(Intel-Nuc Proxmox) (Homematic) (EnOcean) (CUL868) (CUL433) (Zigbee2MQTT) (ESP8266) (Echo) (DUOFERN)

Offline TomLee

  • Tester
  • Hero Member
  • ****
  • Beiträge: 4623
  • ... wer sät, der erntet ...
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #23 am: 08 Dezember 2022, 19:42:21 »
Hmm, keine Ahnung, bei mir siehts im Alexa_log gut aus.
Meine alexa-fhem Version ist die 0.5.61.


[8.12.2022, 19:32:49] >>>> [srv] {"directive":{"header":{"messageId":"0e69814c-fdbe-465c-bd6f-c365216d759a","namespace":"Alexa.BrightnessController","name":"SetBrightness","payloadVersion":"3","correlationToken":"bla"},"endpoint":{"scope":{"type":"BearerToken","token":"bla"},"endpointId":"5fcd1b4c-f33f-78f5-517f-83893558e44c8d56","cookie":{"device":"MQTT2_zigbee_gu10_6","fuuid":"5fcd1b4c-f33f-78f5-517f-83893558e44c8d56"}},"payload":{"brightness":50}}}
[8.12.2022, 19:32:49] accepted new token
[8.12.2022, 19:32:49] [FHEM] MQTT2_zigbee_gu10_6: executing set cmd for Brightness with value 50
[8.12.2022, 19:32:49] [FHEM]   executing: http://192.168.188.26:8083/fhem?cmd=set%20MQTT2_zigbee_gu10_6%20brightness%2050&fwcsrf=bla&XHR=1
[8.12.2022, 19:32:49] <<<< [srv] {"context":{"properties":[{"namespace":"Alexa.BrightnessController","name":"brightness","value":50,"timeOfSample":"2022-12-08T18:32:49.580Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"Response","payloadVersion":"3","messageId":"e7031e31-4203-450c-ac0e-2f6cf4562f34","correlationToken":"bla"},"endpoint":{"scope":{"type":"BearerToken","token":"bla"},"endpointId":"5fcd1b4c-f33f-78f5-517f-83893558e44c8d56"},"payload":{}}}
[8.12.2022, 19:32:56] >>>> [srv] {"directive":{"header":{"messageId":"d3e81897-c3e4-421c-8343-81b34931f1d4","namespace":"Alexa.BrightnessController","name":"SetBrightness","payloadVersion":"3","correlationToken":"bla"},"endpoint":{"scope":{"type":"BearerToken","token":"bla"},"endpointId":"5fcd1b4c-f33f-78f5-517f-83893558e44c8d56","cookie":{"device":"MQTT2_zigbee_gu10_6","fuuid":"5fcd1b4c-f33f-78f5-517f-83893558e44c8d56"}},"payload":{"brightness":100}}}
[8.12.2022, 19:32:56] accepted new token
[8.12.2022, 19:32:56] [FHEM] MQTT2_zigbee_gu10_6: executing set cmd for Brightness with value 100
[8.12.2022, 19:32:56] [FHEM]   executing: http://192.168.188.26:8083/fhem?cmd=set%20MQTT2_zigbee_gu10_6%20brightness%20100&fwcsrf=bla&XHR=1
[8.12.2022, 19:32:56] <<<< [srv] {"context":{"properties":[{"namespace":"Alexa.BrightnessController","name":"brightness","value":100,"timeOfSample":"2022-12-08T18:32:56.503Z","uncertaintyInMilliseconds":500}]},"event":{"header":{"namespace":"Alexa","name":"Response","payloadVersion":"3","messageId":"ac8ddf5c-f16d-4c23-b115-9ff271154173","correlationToken":"bla"},"endpoint":{"scope":{"type":"BearerToken","token":"bla"},"endpointId":"5fcd1b4c-f33f-78f5-517f-83893558e44c8d56"},"payload":{}}}



19:32:49.628

SENT

zigbee2mqtt/0x00158d0003278378/set

{"state":"on","brightness":"50"}
19:32:49.783

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Received MQTT message on 'zigbee2mqtt/0x00158d0003278378/set' with data '{\"state\":\"on\",\"brightness\":\"50\"}'"}
19:32:49.793

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Publishing 'set' 'brightness' to '0x00158d0003278378'"}
19:32:49.813

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/0x00158d0003278378', payload '{\"brightness\":50,\"color_mode\":\"color_temp\",\"color_temp\":320,\"linkquality\":143,\"state\":\"ON\"}'"}
19:32:49.823

mqttjs_91f275c4

zigbee2mqtt/0x00158d0003278378

{"brightness":50,"color_mode":"color_temp","color_temp":320,"linkquality":143,"state":"ON"}
19:32:56.544

SENT

zigbee2mqtt/0x00158d0003278378/set

{"state":"on","brightness":"100"}
19:32:56.696

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Received MQTT message on 'zigbee2mqtt/0x00158d0003278378/set' with data '{\"state\":\"on\",\"brightness\":\"100\"}'"}
19:32:56.706

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"debug","message":"Publishing 'set' 'brightness' to '0x00158d0003278378'"}
19:32:56.718

mqttjs_91f275c4

zigbee2mqtt/bridge/logging

{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/0x00158d0003278378', payload '{\"brightness\":100,\"color_mode\":\"color_temp\",\"color_temp\":320,\"linkquality\":143,\"state\":\"ON\"}'"}
19:32:56.729

mqttjs_91f275c4

zigbee2mqtt/0x00158d0003278378

{"brightness":100,"color_mode":"color_temp","color_temp":320,"linkquality":143,"state":"ON"}

define MQTT2_zigbee_gu10_6 MQTT2_DEVICE zigbee_0x00158d0003278378
attr MQTT2_zigbee_gu10_6 userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0 structexclude wzdl wzdl_map
attr MQTT2_zigbee_gu10_6 IODev MQTT2_Server
attr MQTT2_zigbee_gu10_6 alexaName decke6
attr MQTT2_zigbee_gu10_6 devStateIcon {zigbee2mqtt_devStateIcon255($name)}
attr MQTT2_zigbee_gu10_6 devicetopic zigbee2mqtt/0x00158d0003278378
attr MQTT2_zigbee_gu10_6 genericDeviceType light
attr MQTT2_zigbee_gu10_6 group Wohnzimmer
attr MQTT2_zigbee_gu10_6 homebridgeMapping Brightness=brightness::brightness,maxValue=100,0.393700787401574250 ,delay=true
attr MQTT2_zigbee_gu10_6 icon light_control
attr MQTT2_zigbee_gu10_6 imageLink /fhem/deviceimages/mqtt2/404006-404008-404004.jpg
attr MQTT2_zigbee_gu10_6 jsonMap color_temp:ct color_temp_startup:ct_startup
attr MQTT2_zigbee_gu10_6 model zigbee2mqtt_light_cct
attr MQTT2_zigbee_gu10_6 readingList $DEVICETOPIC:.* { json2nameValue($EVENT,'',$JSONMAP) }
attr MQTT2_zigbee_gu10_6 room MQTT2_DEVICE,Privat->OG->Wohnzimmer
attr MQTT2_zigbee_gu10_6 setList on:noArg $DEVICETOPIC/set {"brightness": 120 , "state":"ON", "color_temp": 320}\
  off:noArg $DEVICETOPIC/set {"state":"OFF"}\
  brightness:colorpicker,BRI,0,5,255 $DEVICETOPIC/set {"state":"on","$EVTPART0":"$EVTPART1"}\
  ct:colorpicker,CT,154,2,500 $DEVICETOPIC/set {"color_temp":"$EVTPART1"}\
  ct_startup:coolest,cool,neutral,warmest,previous $DEVICETOPIC/set {"color_temp_startup":"$EVTPART1"}
attr MQTT2_zigbee_gu10_6 setStateList on off
attr MQTT2_zigbee_gu10_6 verbose 2
attr MQTT2_zigbee_gu10_6 webCmd toggle:on:off:brightness:ct
attr MQTT2_zigbee_gu10_6 webCmdLabel Helligkeit\
:
#   CID        zigbee_0x00158d0003278378
#   DEF        zigbee_0x00158d0003278378
#   FUUID      5fcd1b4c-f33f-78f5-517f-83893558e44c8d56
#   IODev      MQTT2_Server
#   LASTInputDev MQTT2_Server
#   MQTT2_Server_CONN MQTT2_Server_127.0.0.1_44538
#   MQTT2_Server_MSGCNT 170
#   MQTT2_Server_TIME 2022-12-08 19:32:56
#   MSGCNT     170
#   NAME       MQTT2_zigbee_gu10_6
#   NR         280
#   STATE      ON
#   TYPE       MQTT2_DEVICE
#   eventCount 340
#   .DT:
#     DEVICETOPIC zigbee2mqtt/0x00158d0003278378
#   .attraggr:
#   .attrminint:
#   JSONMAP:
#     color_temp ct
#     color_temp_startup ct_startup
#   READINGS:
#     2022-12-02 15:19:30   IODev           MQTT2_Server
#     2022-12-08 19:32:56   brightness      100
#     2022-12-08 19:32:56   color_mode      color_temp
#     2022-12-08 19:32:56   ct              320
#     2022-12-08 19:32:56   linkquality     143
#     2022-12-08 19:32:56   state           ON
#
setstate MQTT2_zigbee_gu10_6 ON
setstate MQTT2_zigbee_gu10_6 2022-12-02 15:19:30 IODev MQTT2_Server
setstate MQTT2_zigbee_gu10_6 2022-12-08 19:32:56 brightness 100
setstate MQTT2_zigbee_gu10_6 2022-12-08 19:32:56 color_mode color_temp
setstate MQTT2_zigbee_gu10_6 2022-12-08 19:32:56 ct 320
setstate MQTT2_zigbee_gu10_6 2022-12-08 19:32:56 linkquality 143
setstate MQTT2_zigbee_gu10_6 2022-12-08 19:32:56 state ON

« Letzte Änderung: 08 Dezember 2022, 19:44:06 von TomLee »

Offline SamNitro

  • Sr. Member
  • ****
  • Beiträge: 954
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #24 am: 08 Dezember 2022, 19:48:30 »
ich habe die Alexa Version 0.5.64
(Intel-Nuc Proxmox) (Homematic) (EnOcean) (CUL868) (CUL433) (Zigbee2MQTT) (ESP8266) (Echo) (DUOFERN)

Offline TomLee

  • Tester
  • Hero Member
  • ****
  • Beiträge: 4623
  • ... wer sät, der erntet ...
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #25 am: 08 Dezember 2022, 19:51:13 »
Ich mach später oder morgen mal ein update, um auszuschliessen das es an der Version liegt.

Offline SamNitro

  • Sr. Member
  • ****
  • Beiträge: 954
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #26 am: 08 Dezember 2022, 19:56:19 »
bei dir rechnet der ja nix um.. mqtt sendet bei dir brightness 50 und 100
(Intel-Nuc Proxmox) (Homematic) (EnOcean) (CUL868) (CUL433) (Zigbee2MQTT) (ESP8266) (Echo) (DUOFERN)

Offline SamNitro

  • Sr. Member
  • ****
  • Beiträge: 954
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #27 am: 08 Dezember 2022, 20:20:18 »
Habe noch was gefunden:

homebridgeMapping Brightness=brightness::brightness,maxValue=100,max=100,factor=0.39371,delay=true

damit bekomme ich nur glatte werte
100% = brightness 254
50%   = brightness 127
(Intel-Nuc Proxmox) (Homematic) (EnOcean) (CUL868) (CUL433) (Zigbee2MQTT) (ESP8266) (Echo) (DUOFERN)

Offline TomLee

  • Tester
  • Hero Member
  • ****
  • Beiträge: 4623
  • ... wer sät, der erntet ...
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #28 am: 08 Dezember 2022, 20:22:30 »
Tatsache, ich hab tatsächlich das homebridgemapping falsch, da fehlt das factor und die ganze Zeit einen Denkfehler, sry an beide, schäm.

Offline TomLee

  • Tester
  • Hero Member
  • ****
  • Beiträge: 4623
  • ... wer sät, der erntet ...
Antw:(Gelöst) Alexa mit Zigbee2Mqtt Dimmen
« Antwort #29 am: 08 Dezember 2022, 20:27:44 »
Zitat
damit bekomme ich nur glatte werte

Ich halt zwar besser den Mund, aber ja ich auch.