Google Smart Home Integration Fix

Job ID: 39593672

Budget: ₹1,500 – ₹12,500 INR

I am seeking an experienced Google Smart Home developer, preferably from India, to address specific integration issues in our system. You will have full remote access to the backend and logs to facilitate the troubleshooting process.

Key Issues to Address:
1. **Offline State Not Reported**: The device state is not updating to "online: false" within 5 minutes after going offline. This requires detecting hub/device disconnection, possibly through MQTT or heartbeat, and calling `reportStateAndNotification()` with the correct `deviceId` and `agentUserId` as per the SYNC payload.

2. **Device Type Check Failed**: Ensure that the SYNC payload reflects the correct canonical values for device types, specifically for LIGHT, BLINDS, FAN, SCENE, SWITCH.

3. **Refresh Token Rotation Issue**: Implement a solution where both old and new refresh tokens remain valid temporarily (e.g., 15 minutes) and ensure the old token is only invalidated after the new one is used by Google.

Key Requirements:
- Strong experience with Google Smart Home integrations
- Proficiency in handling OAuth 2.0 authentication
- Ability to troubleshoot and resolve device state reporting issues
- Familiarity with MQTT or similar protocols for device communication

Ideal Skills and Experience:
- Proven track record with Google Smart Home projects
- Experience in managing device types such as LIGHT, BLINDS, and FAN
- Strong understanding of authentication mechanisms and token management

Please only bid if you have relevant experience and are ready to tackle these specific issues. Your expertise will be crucial in ensuring seamless integration and functionality of our smart home devices.