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.

industrial_dual_analog_in_v2_bricklet MQTT topic voltage liefert channel0 und channel1

Featured Replies

Geschrieben

industrial_dual_analog_in_v2_bricklet wird auf raspberrypi betrieben und tinkerforge_mqtt gibt die Spannungen beider Eingänge auf entfernten MQTT-Broker aus.

{
        "tinkerforge/register/industrial_dual_analog_in_v2_bricklet/28d5/voltage": {"register": true},
        "tinkerforge/request/industrial_dual_analog_in_v2_bricklet/28d5/set_voltage_callback_configuration": {"channel": 0, "period": 1000, "value_has_to_change": false, "option": "x", "min": 0, "max": 0},
        "tinkerforge/request/industrial_dual_analog_in_v2_bricklet/28d5/set_voltage_callback_configuration": {"channel": 1, "period": 1000, "value_has_to_change": false, "option": "x", "min": 0, "max": 0},
        "tinkerforge/request/industrial_dual_analog_in_v2_bricklet/28d5/set_status_led_config": {"config": 0},
        "tinkerforge/request/industrial_dual_analog_in_v2_bricklet/28d5/set_channel_led_status_config": {"channel": 0, "config": 0},
        "tinkerforge/request/industrial_dual_analog_in_v2_bricklet/28d5/set_channel_led_status_config": {"channel": 1, "config": 0}
}

jetzt versuche ich, von Home Assistant aus, die beiden Spannungswerte separat auszulesen, bekomme dort aber immer nur das Topic voltage und darin nacheinander channel0 und channel1.

Kann das json oben vielleicht separate topics konfigurieren?
 

Kleiner Anstoß wäre super :-)

 

Geschrieben

Such mal nach "value_template" für HomeAssistant. Vielleicht könnte das hier schon funktionieren, ist aber geraten:

{{ value_json['channel0'] }}

Dann nutzt du das "voltage"-Topic nochmal und holst stattdessen channel1 raus.

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.