-
Notifications
You must be signed in to change notification settings - Fork 11
payload message needs to be customizable #3
Copy link
Copy link
Open
Description
I'm using a Sonoff as a smart Actuator and Sensor. Sensor is working nicely, but the actuating message is fixed in code
Line 35 in 1f36edc
| self.api.cache["mqtt"].client.publish(self.topic, payload=json.dumps({"state": "on"}), qos=0, retain=False) |
{"state": "on"} which is not compatible in my case. My Sonoff is expecting a mere string on in this regard.
Therefore, I would like to ask to make the on and off messages customizable, a user could just predefine two string parameter as off and on.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels