This will be the issue.
The 5V relay is only refering the the power. The logic will be hte same as most relays…
logic:
0 - 2.79v = LOW
2.8 - 5v = HIGH
(or vice verca if your relay is active LOW)
So your 3.3v logic from your Photon will still trigger the state change fine.