Skip to content

Listen to Alternate MQTT Topic #211

Answered by helgeerbe
broswell asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @broswell ,

if you already running home assistant I would propose to create a simple automation.
Code could look like this:

alias: remote next image
description: next image on picframe when pushing button on remote
mode: single
trigger:
  - platform: mqtt
    topic: rtl_433/alarm/devices/Generic_Remote/57173/cmd 48
condition: []
action:
  - service: mqtt.publish
    data:
      topic: homeassistant/switch/picframe_next/set
      payload: 'ON'

If you don't use home assistant. I would recommend your option 2.

I wouldn't modify picframe's code. You will have to patch it on every update.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by helgeerbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants