Home Assistant Zigbee Integration By Substitution Trigonometric Function