This is what I am trying to do but have the single virtual device show the sensor state and operate the momentary switch. I am almost there - just can’t figure out how to get the momentary switch to show the sensor state. I will look at some sample code from others who have done virtual devices to figure out how to do this. Looks like I found just the thing here: