MQTT2 set attrTemplate

Begonnen von Wolfgang Hochweller, 21 September 2020, 14:17:04

Vorheriges Thema - Nächstes Thema

Wolfgang Hochweller

Folgendes Kommando :


set attrTemplate wallpanel_app


fuehrt zu diesem Listing :


Internals:
   CFGFN     
   CID        HowiTab
   DEF        HowiTab
   DEVICETOPIC MQTT2_HowiTab
   FUUID      5f687dd5-f33f-775d-620b-6c75291dc7b25c12
   IODev      mqtthome
   LASTInputDev mqtthome
   MSGCNT     755
   NAME       MQTT2_HowiTab
   NR         518
   STATE      ???
   TYPE       MQTT2_DEVICE
   mqtthome_MSGCNT 755
   mqtthome_TIME 2020-09-21 14:14:39
   JSONMAP:
     FACE_value face
     MOTION_value motion
   READINGS:
     2020-09-21 14:14:39   acPlugged       false
     2020-09-21 14:09:44   attrTemplateVersion 20200522 or prior
     2020-09-21 14:09:39   battery_acPlugged true
     2020-09-21 14:09:39   battery_charging true
     2020-09-21 14:09:39   battery_unit    %
     2020-09-21 14:09:39   battery_usbPlugged false
     2020-09-21 14:09:39   battery_value   100
     2020-09-21 14:14:39   brightness      48
     2020-09-21 14:14:39   charging        false
     2020-09-21 14:14:39   currentUrl      http:\/\/10.0.0.41:8083\/fhem\/ftui\/index.html
     2020-09-21 12:38:07   face_value      false
     2020-09-21 14:14:39   light_id        als-apds9251
     2020-09-21 14:14:39   light_unit      lx
     2020-09-21 14:14:39   light_value     90
     2020-09-21 14:14:39   magneticField_id mag-akm09911
     2020-09-21 14:14:39   magneticField_unit uT
     2020-09-21 14:14:39   magneticField_value -37.5625
     2020-09-21 13:41:38   motion_value    false
     2020-09-21 14:14:39   screenOn        true
     2020-09-21 14:09:39   state_brightness 48
     2020-09-21 14:09:39   state_currentUrl http:\/\/10.0.0.41:8083\/fhem\/ftui\/index.html
     2020-09-21 14:09:39   state_screenOn  true
     2020-09-21 12:17:57   subscriptions   wallpanel/HowiTab/command
     2020-09-21 14:14:39   unit            %
     2020-09-21 14:14:39   usbPlugged      false
     2020-09-21 14:14:39   value           100
Attributes:
   IODev      mqtthome
   comment    For further info on configuration and available commands see <a href="https://thanksmister.com/wallpanel-android/">project page</a>.
   event-on-change-reading .*
   icon       kindle
   jsonMap    MOTION_value:motion FACE_value:face
   model      wallpanel_app
   readingList wallpanel/HowiTab/state:.* { json2nameValue($EVENT) }
  wallpanel/HowiTab/sensor/battery:.* { json2nameValue($EVENT) }
  wallpanel/HowiTab/sensor/motion:.* { json2nameValue($EVENT, 'MOTION_', $JSONMAP) }
  wallpanel/HowiTab/sensor/face:.* { json2nameValue($EVENT, 'FACE_', $JSONMAP) }
HowiTab:wallpanel/HowiTab/sensor/light:.* { json2nameValue($EVENT, 'light_', $JSONMAP) }
HowiTab:wallpanel/HowiTab/sensor/magneticField:.* { json2nameValue($EVENT, 'magneticField_', $JSONMAP) }
   room       MQTT2_DEVICE,Zentrale
   setList    alert:textField wallpanel/HowiTab/command {"eval": "alert('$EVTPART1');;"}
  audio:textField wallpanel/HowiTab/command {"$EVTPART0": "$EVTPART1"}
  brightness:colorpicker,BRI,0,1,255 wallpanel/HowiTab/command {"$EVTPART0": $EVTPART1}
  camera:noArg wallpanel/HowiTab/command {"$EVTPART0": "true"}
  clearCache:noArg wallpanel/HowiTab/command {"$EVTPART0": true}
  google:noArg wallpanel/HowiTab/command {"url": "https://www.google.com"}
  relaunch:noArg wallpanel/HowiTab/command {"$EVTPART0": true}
  reload:noArg wallpanel/HowiTab/command {"$EVTPART0": true}
  screenoff:noArg wallpanel/mywallpanel/command {"wake": false}
  screenon:select,60,600,3600,86400 wallpanel/wz_tablet/command {"wake": true, "wakeTime": $EVTPART1}
  speak:textField {"wallpanel/HowiTab/command {'$EVTPART0': '".substr($EVENT,5)."'}"}
  url:textField wallpanel/HowiTab/command {"$EVTPART0": "$EVTPART1"}
  volume:slider,0,1,100 wallpanel/HowiTab/command {"$EVTPART0": $EVTPART1}


Alles fast gut, ausser dass in der Setlist Devices auftauchen, die da nicht hingehoeren :
wz_tablet
mywallpanel

Letzteres gibt es auch, ersteres ist mir fremd.

Beta-User

Thx für's melden, sollte mit dem nächsten update passen, war ausweislich der desc noch "Experimental", jetzt ist es "Early"...
Server: HP-elitedesk@Debian 12, 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

Wolfgang Hochweller

Danke, alles ok.
Ging mir auch mehr um die Info, ich kann das ja leicht korrigieren.