code examples for homezilla