<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Gelöst] selectSendTo mag nicht]]></title><description><![CDATA[<p dir="auto">Aus unbekannten Gründen wird "selectSendTo" nicht gerendert.</p>
<pre><code>{ 
    "type": "tabs",
    "i18n": true,
    "items": { 
        "mainTab": { 
            "type": "panel",
            "label": "main settings",
            "items": {
                "testfield": {
                  "type": "selectSendTo",
                  "command": "testcommand",
                  "label": "test",
                  "newLine": true
                },
                "hostname": {
                    "i18n": true,
                    "type": "text",
                    "label": "ip or hostname",
                    "newLine": true
........
</code></pre>
<p dir="auto">Die language files sind vorhanden und gepflegt, "testfield" steht in der io-package.json in native. Ändere ich den type in "text", dann wird das Item auch angezeigt. Ich scheine irgendetwas vergessen zu haben.</p>
]]></description><link>https://forum.iobroker.net/topic/62668/gelöst-selectsendto-mag-nicht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 08:20:03 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/62668.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Feb 2023 21:14:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Gelöst] selectSendTo mag nicht on Mon, 06 Feb 2023 15:04:40 GMT]]></title><description><![CDATA[<p dir="auto">Noch mal zusammenfassend</p>
<ul>
<li>selectSendTo ist in jsonConfig.json eingetragen</li>
<li>In io-package.json ist custom.messagebox auf true gesetzt</li>
<li>In main.js ist onMessage aktiviert</li>
</ul>
<p dir="auto"><em>main.js Auszug</em></p>
<pre><code>class Domiqbase extends utils.Adapter {
  /**
     * @param {Partial&lt;utils.AdapterOptions&gt;} [options={}]
     */
  constructor (options) {
    super({
      name: 'domiqbase'
    })
    this.on('ready', this.onReady.bind(this))
    this.on('stateChange', this.onStateChange.bind(this))
    this.on('message', this.onMessage.bind(this))
    this.on('unload', this.onUnload.bind(this))
  }

  async onMessage(obj) {
    this.log.debug('called onMessage')
...
</code></pre>
<p dir="auto">Ich hätte jetzt erwartet, dass zum Einen das Feld in der Admin UI angezeigt wird und/oder ein Logeintrag erzeugt wird, weil eine Message beim Adapter ankommt und verarbeitet werden muss. Beides ist nicht der Fall.<br />
Ich habe alternative Beispiele gesucht, gefunden, aber keine wesentliche Unterschiede festgestellt.</p>
<p dir="auto">Mir ist außerdem aufgefallen, dass man bei Aufruf von SendTo bei Blockly nicht alle Adapter auswählen kann. Ich ging davon aus, dass nur die auswählbar sind, die auch messagebox auf true gesetzt haben. Dieser Parameter hat aber anscheinend keinen Effekt.</p>
]]></description><link>https://forum.iobroker.net/post/942186</link><guid isPermaLink="true">https://forum.iobroker.net/post/942186</guid><dc:creator><![CDATA[claus]]></dc:creator><pubDate>Mon, 06 Feb 2023 15:04:40 GMT</pubDate></item></channel></rss>