Skip to content

Commit

Permalink
Fix device triggers when using custom MQTT topic (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejmajewski authored Apr 7, 2022
1 parent 8c9163d commit 5941479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_scripts/shellies_discovery_gen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ def get_input(input_id, input_type, event):

payload = {
KEY_AUTOMATION_TYPE: VALUE_TRIGGER,
KEY_TOPIC: f"{device_id}/events/rpc",
KEY_TOPIC: f"{default_topic}events/rpc",
KEY_PAYLOAD: f"{input_id}_{event}",
KEY_VALUE_TEMPLATE: "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}",
KEY_QOS: qos,
Expand Down

0 comments on commit 5941479

Please sign in to comment.