edfungus/Crouton

What am I doing wrong? 6 endpoints in deviceInfo, but only 2 are shown and updated in dashboard

beegee-tokyo opened this issue · 1 comments

I have created a deviceInfo which is sent to topic /outbox/weather/deviceInfo and it contains

{
  "deviceInfo": {
    "name": "weather",
    "description": "MHC weather display",
    "status": "good",
    "endPoints": {
      "temp_in": {
        "title": "Temperature inside",
        "card-type": "crouton-simple-text",
        "units": "C",
        "values": {
          "value": 0
        }
      },
      "humid_in": {
        "title": "Humidity inside",
        "card-type": "crouton-simple-text",
        "units": "1/100",
        "values": {
          "value": 0
        }
      },
      "heat_in": {
        "title": "Heat index inside",
        "card-type": "crouton-simple-text",
        "units": "C",
        "values": {
          "value": 0
        }
      },
      "temp_out": {
        "title": "Temperature outside",
        "card-type": "crouton-simple-text",
        "units": "C",
        "values": {
          "value": 0
        }
      },
      "humid_out": {
        "title": "Humidity outside",
        "card-type": "crouton-simple-text",
        "units": "1/100",
        "values": {
          "value": 0
        }
      },
      "heat_out": {
        "title": "Heat index outside",
        "card-type": "crouton-simple-text",
        "units": "C",
        "values": {
          "value": 0
        }
      }
    }
  }
}

The endpoints are updated by sending values to /outbox/weather/temp_in, /outbox/weather/humid_in, /outbox/weather/heat_in, /outbox/weather/temp_out, /outbox/weather/humid_out and /outbox/weather/heat_out in the format (e.g.) {"value": 36}.
I verified the correct JSON's on my MQTT dashboard. I am using EMQ.
On the Crouton dashboard -> Connections I can successfull connect to my EMQ broker and add the device weather.
But on the Crouton dashboard -> Dashboard I see only two widgets for Temperature inside and Temperature outside and they are updated whenever the device sends a value. The other endpoints are not shown.
What am I doing wrong?

Never mind, seems I needed to restart my EMQ broker to get all data to be shown.
Just don't understand why the new deviceInfo was not recognized by Crouton even after I disconnected from the device and the broker and reconnected. Only a restart of the broker solved the problem.