I need to write a cron job, to send an mqtt message to "homie/$HOSTNAME/$state"
.
In the case of $HOSTNAME - it needs to use the env variable, but $state - it must use as is.
How would I add "homie/$HOSTNAME/$state"
without bash thinking the $state is a variable as well?