Ping devices on the local network via hostname

I added avahi (based on this example) and can now view some of my devices at their .local hostname. I can’t find my philips-hue even though I have another raspberry pi running raspbian on the same network where I can do API calls to the philips-hue hostname. Any ideas on this?