Implements a simple LightDevice with state and brightness control properties
This example needs a running mqtt broker. Set the following environment variable to make it work:
export HOMIE_MQTT_HOST=[mqtt hostname]
export HOMIE_MQTT_PORT=1883
export HOMIE_MQTT_USERNAME=[username]
export HOMIE_MQTT_PASSWORD=[password]
export HOMIE_MQTT_CLIENT_ID=[client-id]
export HOMIE_MQTT_TOPIC_ROOT=[homie-dev]
RUST_LOG=error,device_example=debug,warn,info,error,verbose cargo run --example device_example
todo: add better documentation of the example