sieren / Homepoint

Espressif ESP32 Based Smarthome screen for MQTT
MIT License
630 stars 89 forks source link

Enhancement: Different icons for group entities #137

Closed htvekov closed 3 years ago

htvekov commented 3 years ago

Hi' @sieren

It would be nice if different icons could be specified for each child entity in a group šŸ˜ If nothing is specified then each entity enherits parent icon, else specific entity icons are used.

Example below where group parent icon is office2, Two of the child entities has tablelamp as icon and last entity has ceilinglampas icon.

"scenes": [{
    "name": "Office",
    "type": "Light",
    "icon": "office2",
    "devices": [{
      "name": "Ceiling",
      "icon": "ceilinglamp",
      "setTopic": "homepoint/light.kontor_loft/set",
      "getTopic": "homepoint/light.kontor_loft/get",
      "onValue": "on",
      "offValue": "off"
    },
    {
      "name": "Desk",
      "icon": "tablelamp",
      "setTopic": "zigbee2mqtt/Office desk lamp/set",
      "getTopic": "zigbee2mqtt/Office desk lamp/get",
      "onValue": "ON",
      "offValue": "OFF"
    },
    {
      "name": "Bed lamp",
      "icon": "tablelamp",
      "setTopic": "zigbee2mqtt/Office bed lamp/set",
      "getTopic": "zigbee2mqtt/Office bed lamp/get",
      "onValue": "ON",
      "offValue": "OFF"
    }]
  }

Ciao !

sieren commented 3 years ago

Can do :)

sieren commented 3 years ago

homepoint_release.zip

Here's a build that should do this :) Let me know if it works for you

htvekov commented 3 years ago

Hi' @sieren

I'll test and get back to you ASAP šŸš€šŸš€

htvekov commented 3 years ago

Working perfectly šŸ‘šŸ‘šŸ‘šŸ˜Ž

Thank you, Matt !

image