RaspberryPi MQTT high temp sensor code

Would it be possible to have the full Cayenne setup on the RaspberryPi so it would also have the shutdown widget button on the dashboard?

Add a button and read the state of the button in your code. if state is 1 then do use sudo shutdown –h now