Skip to content

Simple network map for zigbee2mqtt plugin using custom template page

Notifications You must be signed in to change notification settings

kovainfo/Domoticz-zigbee2mqtt-network-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Domoticz zigbee2mqtt network map

Prerequisites

This project is made directly for RaspberryPi, but can be easily adapted for other systems.

$ apt-get install mosquitto-clients

Installation

  1. Copy content of folder templates in your templates folder in Domoticz
  2. Set eXecutive attribute for /home/pi/domoticz/www/templates/zigbeemap/zigbeemap.sh
$ sudo chmod +x /home/pi/domoticz/www/templates/zigbeemap/zigbeemap.sh
  1. Open Domoticz script editor and create dzVents script named "dz_ZigBeeMapGenerator" (don't forget to check path to template folder):
return {
	on = {
		customEvents = {
			'CreateZigbeeMap' -- event triggered by emitEvent
		}
	},
	data = {},
	logger = {},
	execute = function(domoticz, triggeredItem)
	    
	    local Path   = "/home/pi/domoticz/www/templates/zigbeemap/"                  -- template path
	    
	    function SendCommand()
            cmd = Path.."zigbeemap.sh "..Path
            domoticz.utils.osExecute(cmd)
        end  
	    
		if (triggeredItem.isCustomEvent) then
			domoticz.utils._.print("Create ZigbeeMap...")
			SendCommand()
		end
	end
}


About

Simple network map for zigbee2mqtt plugin using custom template page

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published