I am preparing a plugin pimatic-mqtt for Pimatic 0.9. I have one problem.
In Pimatic 0.8.x working:
{
"class": "MqttSensor",
"id": "sensor-with-lookup",
"name": "Sensor with lookup",
"attributes": [
{
"name": "state",
"topic": "pimatic/lookup",
"type": "string",
"unit": "",
"acronym": "",
"messageMap": {
"0": "Not ready",
"1": "Ready",
"2": "Completed"
}
}
]
}
I can not figure out how to get to device-config-schema.coffee for Pimatic 0.9.
This setup
messageMap:
description: "messageMap"
type: "array"
items:
message:
description: "message"
type: "string"
lookup:
description: "lookup"
type: "string"
create this config
"attributes": [
{
"name": "map",
"topic": "pimatic/lookup",
"type": "string",
"messageMap": {
"message": "0",
"lookup": "Test"
}
}
]
Perhaps it will be trivial, but I can not figure it out.