/tradfri_to_zabbix_trapper

Collects metrics from Tradfri gateway and sends them to a Zabbix server

Primary LanguagePythonMIT LicenseMIT

pytradfri to zabbix.

  • messing about for now and it's still a bit of a hack.
  • prints out and can send values from remotes, motion detectors, light bulbs
  • sends unique identifier ( device_id + created_at ) for discovery.
  • key format is 'tradfri.device.(dict{application_type}).[device_id_created_at,parameter/key....]'

config

  • see config.yml and own_config.yml
  • own_config.yml overwrites the defaults in config if present.
  • can use the same psk file from pytradfri examples. (tradfri_standalone_psk.conf)

Zabbix

Zabbix Templates

See the Zabbix Templates directory

modules used

Trådfri Gateway

Recent changes

  • gateway items
  • get groups, put group name into devices data/inventory
  • slow down polling the gateway
  • poll lights, outlets and devices undergoing ota update regularly
  • poll other items less often, first run + every quarter hour.

Todo:

  • use my api polling module for sending stategies, polling intervals
  • update zabbix templates
  • test making a new PSK from Gateway secret