Just came across this thread again and thought I link to this solution which I think is much more elegant, works with more than 2 switches, and is shorter as well:
2 Switches - 1 Light - Configuration - Home Assistant Community (home-assistant.io)
Just came across this thread again and thought I link to this solution which I think is much more elegant, works with more than 2 switches, and is shorter as well:
2 Switches - 1 Light - Configuration - Home Assistant Community (home-assistant.io)