*Gelöst* MQTT device einbinden (SmartPusher)

Begonnen von Tueftler1983, 26 Oktober 2022, 21:22:17

Vorheriges Thema - Nächstes Thema

Tueftler1983

Hallo zusammen.

Ich würde gerne SmartPusher in Fhem einbinden, Kommunikation findet über MQTT statt, die Verbindung zum Server in FHEM funktioniert aber wie bekomme ich da jetzt Geräte angelegt?

SmartPusher ist eine Schalter leiste mit OLED display basierend auf einem ESP32, Hier der link https://blueforcer.de/produkt/smartpusher-set/

Hier ist die Kommunikation über MQTT beschrieben
Receive Buttonstates
SmartPusher publish the button states via MQTT to following topics:
[prefix]/button[x]/click
[prefix]/button[x]/double_click
[prefix]/button[x]/long_click
[prefix]/button[x]/push (only in pushmode)

while [prefix] is "SmartPusher" by default and [x] represents the number of the pressed button (1-8)

Control LEDs
If you set the LED Mode to extern youre able to control the LED state of each button by yourself. Topic
[prefix]/button[x]/state
Payload
0 = Off
1 = On
2 = Fade

Brightness
You can set the brightness of your smartpusher. This will control the OLED and button leds.
Topic
[prefix]/brightness
Payload
Number from 0-255. 0 will turn off the oled and button leds.

Render Text
Youre able to send a text to the OLED display to show a response from your Smarthome
Topic
[prefix]/message
Payload
The text you want to render

The Message will scroll vertically if it not fit

Render Image
You can render your own image on the SmartPusher OLED

create a 128x64 image in your favorite photo editor like Photoshop, GIMP, Paint etc. and save it as a .png file. e.g. test.png

Download the png2bin converter and copy your png file to the same directory. open a terminal and use it like
png2bin [source-PNG] [destination-bin]
e.g.
png2bin test.png test.bin

open a webbrowser and navigate to [SmartPusher-IP]/files
Then upload your .bin file to the SmartPusher flash memory

Without a reboot you can show the image by publish to the image topic.
Topic
[prefix]/image
Payload
name of the bin file without extension (e.g. test)


Wie Richte ich jetzt Device ein oder ein Templet??

Hoffe ihr könnt mir helfen

Otto123

Hi,

hat der MQTT2_SERVER denn schon ein Gerät angelegt?
Oder wie meinst Du das
Zitatdie Verbindung zum Server in FHEM funktioniert

Siehe https://wiki.fhem.de/wiki/MQTT2-Module_-_Praxisbeispiele

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Tueftler1983

Nabend,
Nein ein Device würde noch nicht automatisch angelegt, aber in FHEM unter MQTT2_SERVER ist die Verbindung zu sehen zum SmartPusher die steht auf connected.

Danke für die Hilfe

Otto123

#3
ok ist autocreate denn aktive?
list autocreate
list TYPE=MQTT2_SERVER:FILTER=state=Initialized a:autocreate


Wenn Du im MQTT2_SERVER oben auf show MQTT traffic drückst, siehst Du da Nachrichten von dem Teil?
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Tueftler1983

#4
Ja ist aktiv die zigbee2MQTT device sind auch automatisch angelegt worden.

list autocreate
Internals:
   FUUID      631206dd-f33f-b458-de1d-cc7a78e0e7889924
   NAME       autocreate
   NOTIFYDEV  global
   NR         8
   NTFY_ORDER 50-autocreate
   STATE      active
   TYPE       autocreate
Attributes:
   filelog    ./log/%NAME-%Y.log


list TYPE=MQTT2_SERVER:FILTER=state=Initialized a:autocreate
Internals:
   CONNECTS   7
   Clients    :MQTT2_DEVICE:MQTT_GENERIC_BRIDGE:
   ClientsKeepOrder 1
   DEF        1883 global
   FD         20
   FUUID      635388e6-f33f-b458-adfc-569128518d64534f
   NAME       Fhem_MQTT2_Server
   NR         46
   PORT       1883
   STATE      Initialized
   TYPE       MQTT2_SERVER
   eventCount 61
   stacktrace  TcpServer_Close:122 MQTT2_SERVER_Undef:82 MQTT2_SERVER_Define:3950 CallFn:2210 CommandModify:1273 AnalyzeCommand:2802 FW_fC:982 FW_answerCall:608 FW_Read:3950 CallFn:781
   MatchList:
     1:MQTT2_DEVICE ^.
     2:MQTT_GENERIC_BRIDGE ^.
   READINGS:
     2022-10-26 20:38:19   RETAIN          {"zigbee2mqtt/bridge/devices":"[{\u0022definition\u0022:null,\u0022endpoints\u0022:{\u00221\u0022:{\u0022bindings\u0022:[],\u0022clusters\u0022:{\u0022input\u0022:[\u0022genBasic\u0022,\u0022genTime\u0022,\u0022genOta\u0022],\u0022output\u0022:[\u0022genPowerCfg\u0022,\u0022genPollCtrl\u0022,\u0022ssIasZone\u0022]},\u0022configured_reportings\u0022:[],\u0022scenes\u0022:[]},\u0022242\u0022:{\u0022bindings\u0022:[],\u0022clusters\u0022:{\u0022input\u0022:[],\u0022output\u0022:[\u0022greenPower\u0022]},\u0022configured_reportings\u0022:[],\u0022scenes\u0022:[]}},\u0022friendly_name\u0022:\u0022Coordinator\u0022,\u0022ieee_address\u0022:\u00220x00212effff0948e0\u0022,\u0022interview_completed\u0022:true,\u0022interviewing\u0022:false,\u0022network_address\u0022:0,\u0022supported\u0022:false,\u0022type\u0022:\u0022Coordinator\u0022},{\u0022date_code\u0022:\u0022\u0022,\u0022definition\u0022:{\u0022description\u0022:\u0022Door sensor\u0022,\u0022exposes\u0022:[{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the contact is closed (= true) or open (= false)\u0022,\u0022name\u0022:\u0022contact\u0022,\u0022property\u0022:\u0022contact\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:true,\u0022value_on\u0022:false},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the battery of this device is almost empty\u0022,\u0022name\u0022:\u0022battery_low\u0022,\u0022property\u0022:\u0022battery_low\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates whether the device is tampered\u0022,\u0022name\u0022:\u0022tamper\u0022,\u0022property\u0022:\u0022tamper\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Remaining battery in %\u0022,\u0022name\u0022:\u0022battery\u0022,\u0022property\u0022:\u0022battery\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022%\u0022,\u0022value_max\u0022:100,\u0022value_min\u0022:0},{\u0022access\u0022:1,\u0022description\u0022:\u0022Voltage of the battery in millivolts\u0022,\u0022name\u0022:\u0022voltage\u0022,\u0022property\u0022:\u0022voltage\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022mV\u0022},{\u0022access\u0022:1,\u0022description\u0022:\u0022Link quality (signal strength)\u0022,\u0022name\u0022:\u0022linkquality\u0022,\u0022property\u0022:\u0022linkquality\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022lqi\u0022,\u0022value_max\u0022:255,\u0022value_min\u0022:0}],\u0022model\u0022:\u0022TS0203\u0022,\u0022options\u0022:[],\u0022supports_ota\u0022:false,\u0022vendor\u0022:\u0022TuYa\u0022},\u0022endpoints\u0022:{\u00221\u0022:{\u0022bindings\u0022:[{\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022target\u0022:{\u0022endpoint\u0022:1,\u0022ieee_address\u0022:\u00220x00212effff0948e0\u0022,\u0022type\u0022:\u0022endpoint\u0022}}],\u0022clusters\u0022:{\u0022input\u0022:[\u0022genPowerCfg\u0022,\u0022genIdentify\u0022,\u0022ssIasZone\u0022,\u0022genBasic\u0022],\u0022output\u0022:[\u0022genIdentify\u0022,\u0022genGroups\u0022,\u0022genScenes\u0022,\u0022genOnOff\u0022,\u0022genLevelCtrl\u0022,\u0022touchlink\u0022,\u0022genOta\u0022,\u0022genTime\u0022]},\u0022configured_reportings\u0022:[{\u0022attribute\u0022:\u0022batteryPercentageRemaining\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0},{\u0022attribute\u0022:\u0022batteryVoltage\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0}],\u0022scenes\u0022:[]}},\u0022friendly_name\u0022:\u0022Fenster1\u0022,\u0022ieee_address\u0022:\u00220xa4c138e20f7e965f\u0022,\u0022interview_completed\u0022:true,\u0022interviewing\u0022:false,\u0022manufacturer\u0022:\u0022_TZ3000_osu834un\u0022,\u0022model_id\u0022:\u0022TS0203\u0022,\u0022network_address\u0022:40239,\u0022power_source\u0022:\u0022Battery\u0022,\u0022supported\u0022:true,\u0022type\u0022:\u0022EndDevice\u0022},{\u0022date_code\u0022:\u0022\u0022,\u0022definition\u0022:{\u0022description\u0022:\u0022Door sensor\u0022,\u0022exposes\u0022:[{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the contact is closed (= true) or open (= false)\u0022,\u0022name\u0022:\u0022contact\u0022,\u0022property\u0022:\u0022contact\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:true,\u0022value_on\u0022:false},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the battery of this device is almost empty\u0022,\u0022name\u0022:\u0022battery_low\u0022,\u0022property\u0022:\u0022battery_low\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates whether the device is tampered\u0022,\u0022name\u0022:\u0022tamper\u0022,\u0022property\u0022:\u0022tamper\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Remaining battery in %\u0022,\u0022name\u0022:\u0022battery\u0022,\u0022property\u0022:\u0022battery\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022%\u0022,\u0022value_max\u0022:100,\u0022value_min\u0022:0},{\u0022access\u0022:1,\u0022description\u0022:\u0022Voltage of the battery in millivolts\u0022,\u0022name\u0022:\u0022voltage\u0022,\u0022property\u0022:\u0022voltage\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022mV\u0022},{\u0022access\u0022:1,\u0022description\u0022:\u0022Link quality (signal strength)\u0022,\u0022name\u0022:\u0022linkquality\u0022,\u0022property\u0022:\u0022linkquality\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022lqi\u0022,\u0022value_max\u0022:255,\u0022value_min\u0022:0}],\u0022model\u0022:\u0022TS0203\u0022,\u0022options\u0022:[],\u0022supports_ota\u0022:false,\u0022vendor\u0022:\u0022TuYa\u0022},\u0022endpoints\u0022:{\u00221\u0022:{\u0022bindings\u0022:[{\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022target\u0022:{\u0022endpoint\u0022:1,\u0022ieee_address\u0022:\u00220x00212effff0948e0\u0022,\u0022type\u0022:\u0022endpoint\u0022}}],\u0022clusters\u0022:{\u0022input\u0022:[\u0022genPowerCfg\u0022,\u0022genIdentify\u0022,\u0022ssIasZone\u0022,\u0022genBasic\u0022],\u0022output\u0022:[\u0022genIdentify\u0022,\u0022genGroups\u0022,\u0022genScenes\u0022,\u0022genOnOff\u0022,\u0022genLevelCtrl\u0022,\u0022touchlink\u0022,\u0022genOta\u0022,\u0022genTime\u0022]},\u0022configured_reportings\u0022:[{\u0022attribute\u0022:\u0022batteryPercentageRemaining\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0},{\u0022attribute\u0022:\u0022batteryVoltage\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0}],\u0022scenes\u0022:[]}},\u0022friendly_name\u0022:\u0022Fenster2\u0022,\u0022ieee_address\u0022:\u00220xa4c138f754ac6e64\u0022,\u0022interview_completed\u0022:true,\u0022interviewing\u0022:false,\u0022manufacturer\u0022:\u0022_TZ3000_osu834un\u0022,\u0022model_id\u0022:\u0022TS0203\u0022,\u0022network_address\u0022:26003,\u0022power_source\u0022:\u0022Battery\u0022,\u0022supported\u0022:true,\u0022type\u0022:\u0022EndDevice\u0022},{\u0022date_code\u0022:\u0022\u0022,\u0022definition\u0022:{\u0022description\u0022:\u0022Door sensor\u0022,\u0022exposes\u0022:[{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the contact is closed (= true) or open (= false)\u0022,\u0022name\u0022:\u0022contact\u0022,\u0022property\u0022:\u0022contact\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:true,\u0022value_on\u0022:false},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the battery of this device is almost empty\u0022,\u0022name\u0022:\u0022battery_low\u0022,\u0022property\u0022:\u0022battery_low\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates whether the device is tampered\u0022,\u0022name\u0022:\u0022tamper\u0022,\u0022property\u0022:\u0022tamper\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Remaining battery in %\u0022,\u0022name\u0022:\u0022battery\u0022,\u0022property\u0022:\u0022battery\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022%\u0022,\u0022value_max\u0022:100,\u0022value_min\u0022:0},{\u0022access\u0022:1,\u0022description\u0022:\u0022Voltage of the battery in millivolts\u0022,\u0022name\u0022:\u0022voltage\u0022,\u0022property\u0022:\u0022voltage\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022mV\u0022},{\u0022access\u0022:1,\u0022description\u0022:\u0022Link quality (signal strength)\u0022,\u0022name\u0022:\u0022linkquality\u0022,\u0022property\u0022:\u0022linkquality\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022lqi\u0022,\u0022value_max\u0022:255,\u0022value_min\u0022:0}],\u0022model\u0022:\u0022TS0203\u0022,\u0022options\u0022:[],\u0022supports_ota\u0022:false,\u0022vendor\u0022:\u0022TuYa\u0022},\u0022endpoints\u0022:{\u00221\u0022:{\u0022bindings\u0022:[{\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022target\u0022:{\u0022endpoint\u0022:1,\u0022ieee_address\u0022:\u00220x00212effff0948e0\u0022,\u0022type\u0022:\u0022endpoint\u0022}}],\u0022clusters\u0022:{\u0022input\u0022:[\u0022genPowerCfg\u0022,\u0022genIdentify\u0022,\u0022ssIasZone\u0022,\u0022genBasic\u0022],\u0022output\u0022:[\u0022genIdentify\u0022,\u0022genGroups\u0022,\u0022genScenes\u0022,\u0022genOnOff\u0022,\u0022genLevelCtrl\u0022,\u0022touchlink\u0022,\u0022genOta\u0022,\u0022genTime\u0022]},\u0022configured_reportings\u0022:[{\u0022attribute\u0022:\u0022batteryPercentageRemaining\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0},{\u0022attribute\u0022:\u0022batteryVoltage\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0}],\u0022scenes\u0022:[]}},\u0022friendly_name\u0022:\u0022Fenster3\u0022,\u0022ieee_address\u0022:\u00220xa4c138e79681c2b4\u0022,\u0022interview_completed\u0022:true,\u0022interviewing\u0022:false,\u0022manufacturer\u0022:\u0022_TZ3000_osu834un\u0022,\u0022model_id\u0022:\u0022TS0203\u0022,\u0022network_address\u0022:64307,\u0022power_source\u0022:\u0022Battery\u0022,\u0022supported\u0022:true,\u0022type\u0022:\u0022EndDevice\u0022},{\u0022date_code\u0022:\u0022\u0022,\u0022definition\u0022:{\u0022description\u0022:\u0022Door sensor\u0022,\u0022exposes\u0022:[{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the contact is closed (= true) or open (= false)\u0022,\u0022name\u0022:\u0022contact\u0022,\u0022property\u0022:\u0022contact\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:true,\u0022value_on\u0022:false},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the battery of this device is almost empty\u0022,\u0022name\u0022:\u0022battery_low\u0022,\u0022property\u0022:\u0022battery_low\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates whether the device is tampered\u0022,\u0022name\u0022:\u0022tamper\u0022,\u0022property\u0022:\u0022tamper\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Remaining battery in %\u0022,\u0022name\u0022:\u0022battery\u0022,\u0022property\u0022:\u0022battery\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022%\u0022,\u0022value_max\u0022:100,\u0022value_min\u0022:0},{\u0022access\u0022:1,\u0022description\u0022:\u0022Voltage of the battery in millivolts\u0022,\u0022name\u0022:\u0022voltage\u0022,\u0022property\u0022:\u0022voltage\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022mV\u0022},{\u0022access\u0022:1,\u0022description\u0022:\u0022Link quality (signal strength)\u0022,\u0022name\u0022:\u0022linkquality\u0022,\u0022property\u0022:\u0022linkquality\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022lqi\u0022,\u0022value_max\u0022:255,\u0022value_min\u0022:0}],\u0022model\u0022:\u0022TS0203\u0022,\u0022options\u0022:[],\u0022supports_ota\u0022:false,\u0022vendor\u0022:\u0022TuYa\u0022},\u0022endpoints\u0022:{\u00221\u0022:{\u0022bindings\u0022:[{\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022target\u0022:{\u0022endpoint\u0022:1,\u0022ieee_address\u0022:\u00220x00212effff0948e0\u0022,\u0022type\u0022:\u0022endpoint\u0022}}],\u0022clusters\u0022:{\u0022input\u0022:[\u0022genPowerCfg\u0022,\u0022genIdentify\u0022,\u0022ssIasZone\u0022,\u0022genBasic\u0022],\u0022output\u0022:[\u0022genIdentify\u0022,\u0022genGroups\u0022,\u0022genScenes\u0022,\u0022genOnOff\u0022,\u0022genLevelCtrl\u0022,\u0022touchlink\u0022,\u0022genOta\u0022,\u0022genTime\u0022]},\u0022configured_reportings\u0022:[{\u0022attribute\u0022:\u0022batteryPercentageRemaining\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0},{\u0022attribute\u0022:\u0022batteryVoltage\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0}],\u0022scenes\u0022:[]}},\u0022friendly_name\u0022:\u0022Fenster4\u0022,\u0022ieee_address\u0022:\u00220xa4c13882867c9350\u0022,\u0022interview_completed\u0022:true,\u0022interviewing\u0022:false,\u0022manufacturer\u0022:\u0022_TZ3000_osu834un\u0022,\u0022model_id\u0022:\u0022TS0203\u0022,\u0022network_address\u0022:39611,\u0022power_source\u0022:\u0022Battery\u0022,\u0022supported\u0022:true,\u0022type\u0022:\u0022EndDevice\u0022},{\u0022definition\u0022:{\u0022description\u0022:\u0022Door sensor\u0022,\u0022exposes\u0022:[{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the contact is closed (= true) or open (= false)\u0022,\u0022name\u0022:\u0022contact\u0022,\u0022property\u0022:\u0022contact\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:true,\u0022value_on\u0022:false},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates if the battery of this device is almost empty\u0022,\u0022name\u0022:\u0022battery_low\u0022,\u0022property\u0022:\u0022battery_low\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Indicates whether the device is tampered\u0022,\u0022name\u0022:\u0022tamper\u0022,\u0022property\u0022:\u0022tamper\u0022,\u0022type\u0022:\u0022binary\u0022,\u0022value_off\u0022:false,\u0022value_on\u0022:true},{\u0022access\u0022:1,\u0022description\u0022:\u0022Remaining battery in %\u0022,\u0022name\u0022:\u0022battery\u0022,\u0022property\u0022:\u0022battery\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022%\u0022,\u0022value_max\u0022:100,\u0022value_min\u0022:0},{\u0022access\u0022:1,\u0022description\u0022:\u0022Voltage of the battery in millivolts\u0022,\u0022name\u0022:\u0022voltage\u0022,\u0022property\u0022:\u0022voltage\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022mV\u0022},{\u0022access\u0022:1,\u0022description\u0022:\u0022Link quality (signal strength)\u0022,\u0022name\u0022:\u0022linkquality\u0022,\u0022property\u0022:\u0022linkquality\u0022,\u0022type\u0022:\u0022numeric\u0022,\u0022unit\u0022:\u0022lqi\u0022,\u0022value_max\u0022:255,\u0022value_min\u0022:0}],\u0022model\u0022:\u0022TS0203\u0022,\u0022options\u0022:[],\u0022supports_ota\u0022:false,\u0022vendor\u0022:\u0022TuYa\u0022},\u0022endpoints\u0022:{\u00221\u0022:{\u0022bindings\u0022:[{\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022target\u0022:{\u0022endpoint\u0022:1,\u0022ieee_address\u0022:\u00220x00212effff0948e0\u0022,\u0022type\u0022:\u0022endpoint\u0022}}],\u0022clusters\u0022:{\u0022input\u0022:[\u0022genPowerCfg\u0022,\u0022genIdentify\u0022,\u0022ssIasZone\u0022,\u0022genBasic\u0022],\u0022output\u0022:[\u0022genIdentify\u0022,\u0022genGroups\u0022,\u0022genScenes\u0022,\u0022genOnOff\u0022,\u0022genLevelCtrl\u0022,\u0022touchlink\u0022,\u0022genOta\u0022,\u0022genTime\u0022]},\u0022configured_reportings\u0022:[{\u0022attribute\u0022:\u0022batteryPercentageRemaining\u0022,\u0022cluster\u0022:\u0022genPowerCfg\u0022,\u0022maximum_report_interval\u0022:62000,\u0022minimum_report_interval\u0022:3600,\u0022reportable_change\u0022:0}],\u0022scenes\u0022:[]}},\u0022friendly_name\u0022:\u0022Tuere\u0022,\u0022ieee_address\u0022:\u00220xa4c138b24e873fb2\u0022,\u0022interview_completed\u0022:true,\u0022interviewing\u0022:false,\u0022manufacturer\u0022:\u0022_TZ3000_osu834un\u0022,\u0022model_id\u0022:\u0022TS0203\u0022,\u0022network_address\u0022:35383,\u0022power_source\u0022:\u0022Battery\u0022,\u0022supported\u0022:true,\u0022type\u0022:\u0022EndDevice\u0022}]"}
     2022-10-26 22:17:21   nrclients       2
     2022-10-26 20:33:34   state           Initialized
   clients:
     Fhem_MQTT2_Server_192.168.2.148_52846 1
     Fhem_MQTT2_Server_192.168.2.160_64138 1
   retain:
     zigbee2mqtt/bridge/devices:
       ts         1666809499.70886
       val        [{"definition":null,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","genTime","genOta"],"output":["genPowerCfg","genPollCtrl","ssIasZone"]},"configured_reportings":[],"scenes":[]},"242":{"bindings":[],"clusters":{"input":[],"output":["greenPower"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Coordinator","ieee_address":"0x00212effff0948e0","interview_completed":true,"interviewing":false,"network_address":0,"supported":false,"type":"Coordinator"},{"date_code":"","definition":{"description":"Door sensor","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"description":"Indicates if the battery of this device is almost empty","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates whether the device is tampered","name":"tamper","property":"tamper","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Voltage of the battery in millivolts","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TS0203","options":[],"supports_ota":false,"vendor":"TuYa"},"endpoints":{"1":{"bindings":[{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00212effff0948e0","type":"endpoint"}}],"clusters":{"input":["genPowerCfg","genIdentify","ssIasZone","genBasic"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","touchlink","genOta","genTime"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0},{"attribute":"batteryVoltage","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0}],"scenes":[]}},"friendly_name":"Fenster1","ieee_address":"0xa4c138e20f7e965f","interview_completed":true,"interviewing":false,"manufacturer":"_TZ3000_osu834un","model_id":"TS0203","network_address":40239,"power_source":"Battery","supported":true,"type":"EndDevice"},{"date_code":"","definition":{"description":"Door sensor","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"description":"Indicates if the battery of this device is almost empty","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates whether the device is tampered","name":"tamper","property":"tamper","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Voltage of the battery in millivolts","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TS0203","options":[],"supports_ota":false,"vendor":"TuYa"},"endpoints":{"1":{"bindings":[{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00212effff0948e0","type":"endpoint"}}],"clusters":{"input":["genPowerCfg","genIdentify","ssIasZone","genBasic"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","touchlink","genOta","genTime"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0},{"attribute":"batteryVoltage","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0}],"scenes":[]}},"friendly_name":"Fenster2","ieee_address":"0xa4c138f754ac6e64","interview_completed":true,"interviewing":false,"manufacturer":"_TZ3000_osu834un","model_id":"TS0203","network_address":26003,"power_source":"Battery","supported":true,"type":"EndDevice"},{"date_code":"","definition":{"description":"Door sensor","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"description":"Indicates if the battery of this device is almost empty","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates whether the device is tampered","name":"tamper","property":"tamper","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Voltage of the battery in millivolts","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TS0203","options":[],"supports_ota":false,"vendor":"TuYa"},"endpoints":{"1":{"bindings":[{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00212effff0948e0","type":"endpoint"}}],"clusters":{"input":["genPowerCfg","genIdentify","ssIasZone","genBasic"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","touchlink","genOta","genTime"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0},{"attribute":"batteryVoltage","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0}],"scenes":[]}},"friendly_name":"Fenster3","ieee_address":"0xa4c138e79681c2b4","interview_completed":true,"interviewing":false,"manufacturer":"_TZ3000_osu834un","model_id":"TS0203","network_address":64307,"power_source":"Battery","supported":true,"type":"EndDevice"},{"date_code":"","definition":{"description":"Door sensor","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"description":"Indicates if the battery of this device is almost empty","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates whether the device is tampered","name":"tamper","property":"tamper","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Voltage of the battery in millivolts","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TS0203","options":[],"supports_ota":false,"vendor":"TuYa"},"endpoints":{"1":{"bindings":[{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00212effff0948e0","type":"endpoint"}}],"clusters":{"input":["genPowerCfg","genIdentify","ssIasZone","genBasic"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","touchlink","genOta","genTime"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0},{"attribute":"batteryVoltage","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0}],"scenes":[]}},"friendly_name":"Fenster4","ieee_address":"0xa4c13882867c9350","interview_completed":true,"interviewing":false,"manufacturer":"_TZ3000_osu834un","model_id":"TS0203","network_address":39611,"power_source":"Battery","supported":true,"type":"EndDevice"},{"definition":{"description":"Door sensor","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"description":"Indicates if the battery of this device is almost empty","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates whether the device is tampered","name":"tamper","property":"tamper","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Remaining battery in %","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Voltage of the battery in millivolts","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TS0203","options":[],"supports_ota":false,"vendor":"TuYa"},"endpoints":{"1":{"bindings":[{"cluster":"genPowerCfg","target":{"endpoint":1,"ieee_address":"0x00212effff0948e0","type":"endpoint"}}],"clusters":{"input":["genPowerCfg","genIdentify","ssIasZone","genBasic"],"output":["genIdentify","genGroups","genScenes","genOnOff","genLevelCtrl","touchlink","genOta","genTime"]},"configured_reportings":[{"attribute":"batteryPercentageRemaining","cluster":"genPowerCfg","maximum_report_interval":62000,"minimum_report_interval":3600,"reportable_change":0}],"scenes":[]}},"friendly_name":"Tuere","ieee_address":"0xa4c138b24e873fb2","interview_completed":true,"interviewing":false,"manufacturer":"_TZ3000_osu834un","model_id":"TS0203","network_address":35383,"power_source":"Battery","supported":true,"type":"EndDevice"}]
Attributes:
   autocreate simple
   room       System


P.s. die 192.168.2.160 ist Smartpusher
       Die 192.168.2.148 ist mein Smartphone

Otto123

Hast Du den Smartpusher mal neu gestartet ?
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Tueftler1983

Ja mehrfach

Anbei die Konfigurationsseite vom SmartPusher

Tueftler1983

Noch ein Screenshot von der Verbindung zum MQTT SERVER in FHEM

Otto123

naja scheinbar verbindet der sich nur und sendet nichts? Weigert er sich aus Sicherheitsgründen weil es ohne Username Password erfolgen soll? Nur so eine Idee..

Ansonsten bin ich ratlos.
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Tueftler1983

Ich Frage Grade über Discord, aber FHEM ist da oldscool und es nützt keiner mehr.

Tueftler1983

Device ist angelegt, das Problem war das das Präfix große Buchstaben hatte.

Hier ein list vom MQTT_Devise smartpusher

CFGFN     
   CID        smartpusher
   DEF        smartpusher
   FUUID      635a1eb7-f33f-b458-a072-0248cfc8556921c9
   Fhem_MQTT2_Server_CONN Fhem_MQTT2_Server_192.168.2.160_62221
   Fhem_MQTT2_Server_MSGCNT 82
   Fhem_MQTT2_Server_TIME 2022-10-27 08:10:57
   IODev      Fhem_MQTT2_Server
   LASTInputDev Fhem_MQTT2_Server
   MSGCNT     82
   NAME       MQTT2_smartpusher
   NR         4523
   STATE      ???
   TYPE       MQTT2_DEVICE
   eventCount 114
   READINGS:
     2022-10-27 08:01:27   IODev           Fhem_MQTT2_Server
     2022-10-27 08:05:19   click           false
     2022-10-27 08:05:19   double_click    false
     2022-10-27 08:10:37   long_click      false
     2022-10-27 08:10:57   push            false
     2022-10-27 08:01:27   subscriptions   smartpusher/brightness smartpusher/button1/state smartpusher/button2/state smartpusher/button3/state smartpusher/button4/state smartpusher/button5/state smartpusher/button6/state smartpusher/button7/state smartpusher/button8/state smartpusher/image smartpusher/message
Attributes:
   readingList smartpusher:smartpusher/button1/click:.* click
smartpusher:smartpusher/button1/double_click:.* double_click
smartpusher:smartpusher/button1/long_click:.* long_click
smartpusher:smartpusher/button1/push:.* push
smartpusher:smartpusher/button2/click:.* click
smartpusher:smartpusher/button2/double_click:.* double_click
smartpusher:smartpusher/button2/long_click:.* long_click
smartpusher:smartpusher/button2/push:.* push
smartpusher:smartpusher/button3/click:.* click
smartpusher:smartpusher/button3/double_click:.* double_click
smartpusher:smartpusher/button3/long_click:.* long_click
smartpusher:smartpusher/button3/push:.* push
smartpusher:smartpusher/button4/click:.* click
smartpusher:smartpusher/button4/double_click:.* double_click
smartpusher:smartpusher/button4/long_click:.* long_click
smartpusher:smartpusher/button4/push:.* push
smartpusher:smartpusher/button5/click:.* click
smartpusher:smartpusher/button5/double_click:.* double_click
smartpusher:smartpusher/button5/long_click:.* long_click
smartpusher:smartpusher/button5/push:.* push
smartpusher:smartpusher/button6/click:.* click
smartpusher:smartpusher/button6/double_click:.* double_click
smartpusher:smartpusher/button6/long_click:.* long_click
smartpusher:smartpusher/button6/push:.* push
smartpusher:smartpusher/button7/click:.* click
smartpusher:smartpusher/button7/double_click:.* double_click
smartpusher:smartpusher/button7/long_click:.* long_click
smartpusher:smartpusher/button7/push:.* push
smartpusher:smartpusher/button8/click:.* click
smartpusher:smartpusher/button8/double_click:.* double_click
smartpusher:smartpusher/button8/long_click:.* long_click
smartpusher:smartpusher/button8/push:.* push
   room       MQTT2_DEVICE


Wie mache ich daraus jetzt die 8 Taster und das OLED display?
Wobei die Taster wohl clich, dubbel click und long click senden.

Danke für die hilfe

Tueftler1983

So habe es geschafft das ich jetzt von jedem Button die 4 Readings bekomme, click, dubbel click, long click, und Push.
Internals:
   CFGFN     
   CID        smartpusher
   DEF        smartpusher
   FUUID      635a1eb7-f33f-b458-a072-0248cfc8556921c9
   Fhem_MQTT2_Server_CONN Fhem_MQTT2_Server_192.168.2.160_62221
   Fhem_MQTT2_Server_MSGCNT 328
   Fhem_MQTT2_Server_TIME 2022-10-27 08:48:45
   IODev      Fhem_MQTT2_Server
   LASTInputDev Fhem_MQTT2_Server
   MSGCNT     328
   NAME       MQTT2_smartpusher
   NR         4523
   STATE      ???
   TYPE       MQTT2_DEVICE
   eventCount 360
   OLDREADINGS:
   READINGS:
     2022-10-27 08:41:29   click1          false
     2022-10-27 08:47:24   click2          false
     2022-10-27 08:47:28   click3          false
     2022-10-27 08:47:43   click4          false
     2022-10-27 08:47:39   click5          false
     2022-10-27 08:47:51   click6          false
     2022-10-27 08:46:25   click7          false
     2022-10-27 08:46:51   click8          false
     2022-10-27 08:41:24   double_click1   false
     2022-10-27 08:44:35   double_click2   false
     2022-10-27 08:45:45   double_click3   false
     2022-10-27 08:45:56   double_click4   false
     2022-10-27 08:46:03   double_click5   false
     2022-10-27 08:46:12   double_click6   false
     2022-10-27 08:46:26   double_click7   false
     2022-10-27 08:46:50   double_click8   false
     2022-10-27 08:41:27   long_click1     false
     2022-10-27 08:44:27   long_click2     false
     2022-10-27 08:45:47   long_click3     false
     2022-10-27 08:45:53   long_click4     false
     2022-10-27 08:46:06   long_click5     false
     2022-10-27 08:46:18   long_click6     false
     2022-10-27 08:46:39   long_click7     false
     2022-10-27 08:46:53   long_click8     false
     2022-10-27 08:48:45   push2           false
     2022-10-27 08:48:26   push3           false
     2022-10-27 08:48:27   push4           false
     2022-10-27 08:48:28   push5           false
     2022-10-27 08:48:29   push6           false
     2022-10-27 08:48:31   push7           false
     2022-10-27 08:48:32   push8           false
Attributes:
   readingList smartpusher:smartpusher/button1/click:.* click1
smartpusher:smartpusher/button1/double_click:.* double_click1
smartpusher:smartpusher/button1/long_click:.* long_click1
smartpusher:smartpusher/button1/push:.* push1
smartpusher:smartpusher/button2/click:.* click2
smartpusher:smartpusher/button2/double_click:.* double_click2
smartpusher:smartpusher/button2/long_click:.* long_click2
smartpusher:smartpusher/button2/push:.* push2
smartpusher:smartpusher/button3/click:.* click3
smartpusher:smartpusher/button3/double_click:.* double_click3
smartpusher:smartpusher/button3/long_click:.* long_click3
smartpusher:smartpusher/button3/push:.* push3
smartpusher:smartpusher/button4/click:.* click4
smartpusher:smartpusher/button4/double_click:.* double_click4
smartpusher:smartpusher/button4/long_click:.* long_click4
smartpusher:smartpusher/button4/push:.* push4
smartpusher:smartpusher/button5/click:.* click5
smartpusher:smartpusher/button5/double_click:.* double_click5
smartpusher:smartpusher/button5/long_click:.* long_click5
smartpusher:smartpusher/button5/push:.* push5
smartpusher:smartpusher/button6/click:.* click6
smartpusher:smartpusher/button6/double_click:.* double_click6
smartpusher:smartpusher/button6/long_click:.* long_click6
smartpusher:smartpusher/button6/push:.* push6
smartpusher:smartpusher/button7/click:.* click7
smartpusher:smartpusher/button7/double_click:.* double_click7
smartpusher:smartpusher/button7/long_click:.* long_click7
smartpusher:smartpusher/button7/push:.* push7
smartpusher:smartpusher/button8/click:.* click8
smartpusher:smartpusher/button8/double_click:.* double_click8
smartpusher:smartpusher/button8/long_click:.* long_click8
smartpusher:smartpusher/button8/push:.* push8
   room       MQTT2_DEVICE


Jetzt noch die LED's an den Tastern und das Display,

Dazu gibt es diese Infos:
Control LEDs
If you set the LED Mode to extern youre able to control the LED state of each button by yourself. Topic
[prefix]/button[x]/state
Payload
0 = Off
1 = On
2 = Fade

Brightness
You can set the brightness of your smartpusher. This will control the OLED and button leds.
Topic
[prefix]/brightness
Payload
Number from 0-255. 0 will turn off the oled and button leds.

Render Text
Youre able to send a text to the OLED display to show a response from your Smarthome
Topic
[prefix]/message
Payload
The text you want to render

The Message will scroll vertically if it not fit

Render Image
You can render your own image on the SmartPusher OLED

create a 128x64 image in your favorite photo editor like Photoshop, GIMP, Paint etc. and save it as a .png file. e.g. test.png

Download the png2bin converter and copy your png file to the same directory. open a terminal and use it like
png2bin [source-PNG] [destination-bin]
e.g.
png2bin test.png test.bin

open a webbrowser and navigate to [SmartPusher-IP]/files
Then upload your .bin file to the SmartPusher flash memory

Without a reboot you can show the image by publish to the image topic.
Topic
[prefix]/image
Payload
name of the bin file without extension (e.g. test)

Tueftler1983

So das schalten der LED's pro Button habe ich auch hin bekommen. Geht bestimmt auch eleganter, sowohl reading list als auch Setlist.
Aber jetzt kommt noch die Helligkeitssteuerung von den LED und dem Display, dafür hätte ich gerne einen slider
dim smartpusher/brightness:slider,0,10,255

Laut Doku sieht die Ansteuerung so aus
[prefix]/brightness
Payload
Number from 0-255. 0 will turn off the oled and button leds.

Otto123

#13
Moin,

ich habe noch kein setList von Dir gesehen, aber so in der Art:
dim:slider,0,10,255 smartpusher/brightness $EVTPART1
sendText:textField smartpusher/message $EVTPART1

usw.

Das mit den Großbuchstaben im topic als Problem mag ich nicht glauben.

Insgesamt ist es jetzt ein spezielles mqtt Thema, was Du eventuell in diesen Forenbereich verschieben solltest. Da lesen ein paar andere Leute mit.

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Otto123

Zitat von: Tueftler1983 am 27 Oktober 2022, 08:15:43
Device ist angelegt, das Problem war das das Präfix große Buchstaben hatte.
Ich würde da gerne widersprechen:
Dieser Befehl
mosquitto_pub -h 192.168.56.83 -i SmartPusher -t SmartPusher/raspib/temperature -m 22 -u xxx -P xxx
Erzeugt sofort ein entsprechendes Gerät.
defmod MQTT2_SmartPusher MQTT2_DEVICE SmartPusher
attr MQTT2_SmartPusher readingList SmartPusher:SmartPusher/raspib/temperature:.* temperature
attr MQTT2_SmartPusher room MQTT2_DEVICE
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz