getHomieAttributes() {
        let result = {
            "$name": this.friendlyName,
            "$datatype": this.dataType,
            "$settable": this.marshalHomie(this.settable, DataType.BOOLEAN),
            "$retained": this.marshalHomie(this.retained, DataType.BOOLEAN),
        };

        if (this.unit !== undefined) {
            result["$unit"] = this.unit;
        }

        if (this.format !== undefined) {
            result["$format"] = this.format;
        }

        return result;
    }
Returns Homie attributes for the current property

@return {object}