Autor Thema: M5Stack Atom Matrix mit BH1750 Sensor  (Gelesen 357 mal)

Offline Klaus Heynen

  • Jr. Member
  • **
  • Beiträge: 56
M5Stack Atom Matrix mit BH1750 Sensor
« am: 20 September 2022, 10:19:39 »
Ich habe einen M5Stack Atom Matrix mit ESPresense Firmware und mit einem BH1750 Lux Sensor auf I2C Adresse 0x23 über MQTT, der ist offensichtlich auch angebunden. Aber FHEM Zeigt keine Werte für die Helligkeit an.
Die ESPresense Funktion läuft reibungslos, auch der Taster des Matrix wird angezeigt und die LED werden auch angesteuert nur der Helligkeitswert fehlt.
Liegt das vielleicht am falschen Template?

Weiß jemand Rat?

Hier das List:
Internals:
   CFGFN     
   CID        espresense_743c92
   DEF        espresense_743c92
   DEVICETOPIC MQTT2_espresense_743c92
   FUUID      6328ae98-f33f-f012-695b-fbaf68ffe4f12fa1
   IODev      KHdb_Blumen_MQTT_Broker
   KHdb_Blumen_MQTT_Broker_MSGCNT 1577
   KHdb_Blumen_MQTT_Broker_TIME 2022-09-19 23:56:03
   LASTInputDev KHdb_Blumen_MQTT_Broker
   MSGCNT     1577
   NAME       MQTT2_espresense_743c92
   NR         9724
   STATE      ???
   TYPE       MQTT2_DEVICE
   READINGS:
     2022-09-19 23:47:14   743c92_disc     221f6c84f1aa68
     2022-09-19 23:55:39   743c92_distance 1.13
     2022-09-19 23:55:39   743c92_id       exp:20
     2022-09-19 23:55:39   743c92_idType   120
     2022-09-19 23:55:39   743c92_interval 320
     2022-09-19 23:55:39   743c92_mac      5cb669d9af98
     2022-09-19 23:55:39   743c92_raw      0.63
     2022-09-19 23:55:39   743c92_rssi     -70
     2022-09-19 23:55:39   743c92_rssi_1m  -77
     2022-09-19 23:55:39   743c92_speed    -0.03
     2022-09-19 23:55:34   absorption      3.50
     2022-09-19 23:55:34   arduino_ota     OFF
     2022-09-19 23:55:34   auto_update     OFF
     2022-09-19 23:55:34   config         
     2022-09-19 23:55:35   config__        espresense/rooms/743c92
     2022-09-19 23:55:35   config_avty_t   ~/status
     2022-09-19 23:55:35   config_cmd_t    ~/enroll/set
     2022-09-19 23:55:35   config_dev_cla  illuminance
     2022-09-19 23:55:35   config_dev_cns_1_1 mac
     2022-09-19 23:55:35   config_dev_cns_1_2 50:02:91:92:3C:74
     2022-09-19 23:55:35   config_dev_cu   http://172.16.14.63
     2022-09-19 23:55:35   config_dev_ids_1 espresense_743c92
     2022-09-19 23:55:35   config_dev_mdl  ESP32-PICO-D4
     2022-09-19 23:55:35   config_dev_mf   ESPresense (m5atom)
     2022-09-19 23:55:35   config_dev_name ESPresense 743c92
     2022-09-19 23:55:35   config_dev_sa   743c92
     2022-09-19 23:55:35   config_dev_sw   v3.1.0
     2022-09-19 23:55:35   config_entity_category config
     2022-09-19 23:55:35   config_frc_upd  false
     2022-09-19 23:55:34   config_json_attr_t ~/telemetry
     2022-09-19 23:55:35   config_name     ESPresense 743c92 BH1750 Lux
     2022-09-19 23:55:34   config_pl_off   offline
     2022-09-19 23:55:34   config_pl_on    online
     2022-09-19 23:55:35   config_stat_t   ~/bh1750_lux
     2022-09-19 23:55:34   config_step     0.1
     2022-09-19 23:55:35   config_uniq_id  espresense_743c92_bh1750_lux
     2022-09-19 23:55:35   config_unit_of_meas lx
     2022-09-19 23:55:34   config_value_template {{ value_json.freeHeap }}
     2022-09-19 23:55:34   count_ids       
     2022-09-19 23:55:34   exclude         
     2022-09-19 23:55:34   include         
     2022-09-19 23:55:34   known_irks     
     2022-09-19 23:55:34   known_macs     
     2022-09-19 23:55:34   led_1_state     OFF
     2022-09-19 23:55:34   max_distance    16.00
     2022-09-19 20:03:04   motion          ON
     2022-09-19 23:55:34   pir_timeout     0.50
     2022-09-19 23:55:34   prerelease      OFF
     2022-09-19 23:55:34   query           
     2022-09-19 20:03:04   radar           ON
     2022-09-19 23:55:34   radar_timeout   0.50
     2022-09-19 23:56:03   status          offline
     2022-09-19 23:47:14   telemetry_adverts 398
     2022-09-19 23:47:14   telemetry_firm  m5atom
     2022-09-19 23:47:14   telemetry_freeHeap 93948
     2022-09-19 23:47:14   telemetry_ip    172.16.14.63
     2022-09-19 23:47:14   telemetry_maxAllocHeap 81908
     2022-09-19 23:47:14   telemetry_memFrag 12.81560012
     2022-09-19 23:47:14   telemetry_reportHighWater 1048
     2022-09-19 23:47:14   telemetry_reported 150
     2022-09-19 23:47:14   telemetry_rssi  -72
     2022-09-19 23:47:14   telemetry_scanHighWater 1040
     2022-09-19 23:47:14   telemetry_seen  392
     2022-09-19 23:47:14   telemetry_uptime 570
     2022-09-19 23:47:14   telemetry_ver   v3.1.0
Attributes:
   IODev      KHdb_Blumen_MQTT_Broker
   readingList espresense_743c92:espresense/rooms/743c92:.* { json2nameValue($EVENT, '743c92_', $JSONMAP) }
espresense_743c92:espresense/devices/exp_20/743c92:.* { json2nameValue($EVENT, '743c92_', $JSONMAP) }
espresense_743c92:espresense/devices/msft_cdp_0902/743c92:.* { json2nameValue($EVENT, '743c92_', $JSONMAP) }
espresense_743c92:espresense/devices/iBeacon_ee2150ae-03da-41a2-8b1d-1573740e4700-0-0/743c92:.* { json2nameValue($EVENT, '743c92_', $JSONMAP) }
espresense_743c92:espresense/rooms/743c92/telemetry:.* { json2nameValue($EVENT, 'telemetry_', $JSONMAP) }
espresense_743c92:espresense/rooms/743c92/radar:.* radar
espresense_743c92:espresense/rooms/743c92/motion:.* motion
espresense_743c92:espresense/devices/apple_1007_11-7/743c92:.* { json2nameValue($EVENT, '743c92_', $JSONMAP) }
espresense_743c92:espresense/rooms/743c92/status:.* status
espresense_743c92:espresense/rooms/743c92/max_distance:.* max_distance
espresense_743c92:espresense/rooms/743c92/absorption:.* absorption
espresense_743c92:espresense/rooms/743c92/query:.* query
espresense_743c92:espresense/rooms/743c92/include:.* include
espresense_743c92:espresense/rooms/743c92/exclude:.* exclude
espresense_743c92:espresense/rooms/743c92/known_macs:.* known_macs
espresense_743c92:espresense/rooms/743c92/known_irks:.* known_irks
espresense_743c92:espresense/rooms/743c92/count_ids:.* count_ids
espresense_743c92:espresense/rooms/743c92/arduino_ota:.* arduino_ota
espresense_743c92:espresense/rooms/743c92/auto_update:.* auto_update
espresense_743c92:espresense/rooms/743c92/prerelease:.* prerelease
espresense_743c92:espresense/rooms/743c92/pir_timeout:.* pir_timeout
espresense_743c92:espresense/rooms/743c92/radar_timeout:.* radar_timeout
espresense_743c92:espresense/rooms/743c92/led_1:.* { json2nameValue($EVENT, 'led_1_', $JSONMAP) }
espresense_743c92:homeassistant/binary_sensor/espresense_743c92/connectivity/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/sensor/espresense_743c92/uptime/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/sensor/espresense_743c92/free_mem/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/sensor/espresense_743c92/count/config:.* config
espresense_743c92:homeassistant/button/espresense_743c92/restart/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/number/espresense_743c92/max_distance/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/number/espresense_743c92/absorption/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/switch/espresense_743c92/status_led/config:.* config
espresense_743c92:homeassistant/switch/espresense_743c92/active_scan/config:.* config
espresense_743c92:homeassistant/switch/espresense_743c92/auto_update/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/switch/espresense_743c92/arduino_ota/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/switch/espresense_743c92/prerelease/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/button/espresense_743c92/update/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/number/espresense_743c92/radar_timeout/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/binary_sensor/espresense_743c92/motion/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/button/espresense_743c92/enroll/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:homeassistant/sensor/espresense_743c92/bh1750_lux/config:.* { json2nameValue($EVENT, 'config_', $JSONMAP) }
espresense_743c92:espresense/devices/ad_cbbfe0e2-f7f3-4206-84e0-84cbb3d09dfc/743c92:.* { json2nameValue($EVENT, '743c92_', $JSONMAP) }
   room       MQTT2_DEVICE

Offline Beta-User

  • Developer
  • Hero Member
  • ****
  • Beiträge: 19373
Antw:M5Stack Atom Matrix mit BH1750 Sensor
« Antwort #1 am: 20 September 2022, 10:26:04 »
Na ja, autocreate hat ja funktioniert, von daher würde ich behaupten, dass der M5 halt noch nichts gesendet hatte, warum auch immer.

Aber bitte entsorge doch den homeassistant-autodiscovery-Teil, der bringt für FHEM nichts (ignoreRegexp am IO).
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 Klaus Heynen

  • Jr. Member
  • **
  • Beiträge: 56
Antw:M5Stack Atom Matrix mit BH1750 Sensor
« Antwort #2 am: 20 September 2022, 12:02:54 »
Hi Beta-User, was meinst du mit IO?

Offline Beta-User

  • Developer
  • Hero Member
  • ****
  • Beiträge: 19373
Antw:M5Stack Atom Matrix mit BH1750 Sensor
« Antwort #3 am: 20 September 2022, 12:05:16 »
KHdb_Blumen_MQTT_Broker

https://wiki.fhem.de/wiki/MQTT2_CLIENT#ignoreRegexp (gilt sinngemäß auch für m2server).
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 Klaus Heynen

  • Jr. Member
  • **
  • Beiträge: 56
Antw:M5Stack Atom Matrix mit BH1750 Sensor
« Antwort #4 am: 20 September 2022, 12:56:46 »
Ich glaube ich habe den Fehler entdeckt, liegt wohl an falschem Port Mapping von I2C zu GPIO am M5Stack Atom Matrix.
Werde berichten wenn klappt.