I would tend to doubt it but since that's a scenario not typically found in cases of Home Detention that might allow it if the fact that the person found guilty of a crime and sentenced to home detention isn't excluded from serving in a political office. I would like to think anyone having committed a crime serious enough to be punished with confinement is automatically excluded but with the way our system is set up that might not always be the case. If it was allowed however I imagine it would be handled the same as a normal job and the person in that situation would have to coordinate ahead of time with their Parole/Probation officer and would only be allowed to attend during a pre-determined period of time and only at the location of the rally with their location being monitored by an ankle bracelet.Does holding political rallies count as work?