IKEA Tradfri Light Panel

Hi!

I am trying to figure out how to configure the tradfri lights in HA.
When I set up HA, it automatically detected my tradfri gateway and added all the lights in a “tile” group called group.all_lights with the friendly name “Light”.

Now I’ve made a group with my light groups and would like to remove/hide/move to Lights to it’s own tab.
But I can’t find it defined anywhere! I’ve checked the whole configuration.yaml file, groups.yaml and customize.yaml but it’s nowhere to be found.

The only reference I see to tradfri is this:

tradfri:
host: IP HERE
api_key: API KEY HERE
allow_tradfri_groups: true
(the code is working, I just failed at indention here)

Last command is just to get the groups from Tradfri to show in HA so I can turn off light groups (Living Room, Hall, etc)

Hope someone can help me!

Hi @DanielM

You should have a look at the documentation for grouping entities here: https://home-assistant.io/components/group/
You can make your own Groups and Views (= Tabs) there.
For example my groups.yaml looks like this:

####Views
 flur_view:
  view: yes
  name: Flur
  entities:
   - group.flur
 wohnzimmer_view:
  view: yes
  name: Wohnzimmer
  entities:
   - group.wohnzimmer
   - media_player.philips_tv
   - media_player.chromecast_wohnzimmer
   - media_player.sonos_wohnzimmer
 kueche_view:
  view: yes
  name: Küche
  entities:
   - group.kueche
 bad_view:
  view: yes
  name: Bad
  entities:
   - media_player.sonos_bad
 schlafzimmer_view:
  view: yes
  name: Schlafzimmer
  entities:
   - media_player.sonos_schlafzim
 buero_view:
  view: yes
  name: Simon Büro
  entities:
   - camera.android_ip_webcam
   - group.buero
####Groups
 wetter:
  name: Wetter
  entities:
   - sensor.wetter_symbol
   - sun.sun
   - sensor.wetter_temperature 
   - sensor.wetter_wind_speed 
   - sensor.wetter_wind_direction
   - sensor.wetter_pressure
   - sensor.wetter_humidity 
   - sensor.wetter_cloudiness
   - sensor.wetter_precipitation 
   - sensor.wetter_fog
 wohnzimmer:
  name: Wohnzimmer
  entities:
   - light.licht_wohnzimmer
 flur:
  name: Flur
  entities:
   - light.licht_flur1
   - light.licht_flur2
 kueche:
  name: Küche
  entities:
   - light.licht_kuche
   - light.licht_kuche_schirmlampe
 buero:
  name: Simon Büro
  entities:
   - sensor.fritz_netmonitor
   - sensor.speedtest_download
   - sensor.speedtest_upload
   - sensor.speedtest_ping   
   - switch.simonpc
   - sensor.android_ip_webcam_battery_level
   - sensor.android_ip_webcam_light_level
   - sensor.android_ip_webcam_pressure
   - sensor.android_ip_webcam_motion

And in the Frontend it then will look like this, for example:

BTW: I’m also using the Tradfri Lamps :wink:

Hi @CM000n

Thanks for the feedback, I’ve done some changes to the config to match yours with the groups, plus it helped to read up on groups, so shame on me for not doing that earlier.

Anyway, thank you so much for your comment! :slight_smile: