Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Moin,

vielleicht kann mir jemand weiterhelfen. Ich versuche über Linux bash via mosquitto_pub das set_selected_value korrekt abzusetzen. Das set_value mit beiden Relays funktioniert auch problemlos, aber egal, was ich versuche, wenn ich einzeln schalten möchte, ich bekomme immer entweder

{"_ERROR": "Could not parse payload for set_selected_value call of industrial_dual_relay_bricklet FLg as JSON: Extra data: line 1 column 3 - line 1 column 7 (char 2 - 6)"}

oder

{"_ERROR": "The arguments ['channel', 'value'] where missing for a call of set_selected_value of device FLg of type industrial_dual_relay_bricklet."}

zurück.. Nach meinem Verständnis und der Doku entsprechend sollte der korrekte Befehl

mosquitto_pub -t tinkerforge/request/industrial_dual_relay_bricklet/FLg/set_selected_value -m '{"0", true}'

sein. Oder habe ich hier einen Denkfehler? MQTT Broker ist in meinem Fall IOBroker.

Würde mich freuen, falls jemand helfen kann.

Geschrieben

Moin,

Du musst die Parameternamen mitgeben, in deinem Fall sollte das wie folgt sein:

mosquitto_pub -t tinkerforge/request/industrial_dual_relay_bricklet/FLg/set_selected_value -m '{"channel": 0, "value": true}'

 

Geschrieben
  • Autor

Moin rtrbt,

Funktioniert 😁 Ich bin fast verzweifelt. Meine Lösung war nun am Ende ein Blocklyscript, welches mir einen String aus den Relaisstati gebaut hat, um das set_value zu nutzen. Hat auch funktioniert, aber gezielt schalten ist deutlich eleganter.

Vielen Dank für die Hilfe 🙂

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.