Manuel83 / cbpi-mqtt

3 stars 11 forks source link

Allow for arbitrary payload dictionary #1

Closed mrillies closed 7 years ago

mrillies commented 7 years ago

Provide a mechanism to pull values from arbitrary dictionary based payloads Example: Payload = {"Time":"XX:XX:XX", "DS18B20":{"Temperature":23.0}, "TempUnit":"C"} To extract the number 23.0 set "Payload Dict" to DS18B20.Temperature

This is a working suggestion only. It allows for multiple mqtt sensor types. If payload is value only eg payload = "23.0" then "Payload Dict" should be blank

mrillies commented 7 years ago

Comments suggestions and improvements welcome