diff --git a/python_scripts/shellies_discovery_gen2.py b/python_scripts/shellies_discovery_gen2.py index ab74a4c..39de98c 100644 --- a/python_scripts/shellies_discovery_gen2.py +++ b/python_scripts/shellies_discovery_gen2.py @@ -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,