I recently decided to migrate my smart devices from Samsung SmartThings to Home Assistant (HA) and it’s been an exciting journey! One of my main goals was to replicate the functionality of my SmartThings motion sensor automation, which used to turn on my porch light after sundown. While the process had its hurdles, I’m thrilled to share that I’ve successfully got everything up and running in HA. Here’s my story and some tips for anyone looking to make the switch.First, I paired my SmartThings motion sensor with HA. The sensor itself worked perfectly, detecting motion as expected. However, setting up the automation to control my LiFX bulb was where I hit a snag. Despite configuring the automation through the web interface, the light wouldn’t turn on when motion was detected. After some research and troubleshooting, I realized the issue might be related to how the bulb was being addressed in the automation.I decided to dive into the automations.yaml file to manually configure the automation. I set up two automations: one to turn the light on when motion is detected and another to turn it off after a delay when motion stops. Here’s a snippet of how I structured it:yaml- id: ‘1611685629235’ alias: Porch Motion Light description: ‘’ trigger: - platform: state entity_id: binary_sensor.smartthings_motionv4_eaa80001_ias_zone attribute: friendly_name from: ‘off’ to: ‘on’ condition: - condition: sun before: sunrise after: sunset action: - type: turn_on device_id: cc8621c49a021d835d53f0b9efe7ecdc entity_id: light.porch domain: light brightness_pct: 100 mode: singleFor turning the light off after motion stops:yaml- id: ‘1611685735386’ alias: Port Motion Light Off description: ‘’ trigger: - platform: state entity_id: binary_sensor.smartthings_motionv4_eaa80001_ias_zone attribute: friendly_name from: ‘on’ to: ‘off’ for: ‘60’ condition: - condition: sun before: sunrise after: sunset action: - type: turn_off device_id: cc8621c49a021d835d53f0b9efe7ecdc entity_id: light.porch domain: light mode: singleAfter carefully reviewing the configuration and ensuring all entity IDs and device IDs were correctly specified, the automation finally worked as intended! The porch light now turns on when motion is detected after sunset and turns off after 60 seconds of no motion. It’s such a relief to have this functionality back and running smoothly in HA.For anyone else making the switch from SmartThings to HA, here are a few tips:1. Check Device Status: Ensure all devices are properly paired and recognized in HA before setting up automations.2. Validate Entity IDs: Double-check that the entity IDs in your automations match exactly what’s shown in HA.3. Test Manually First: Before setting up complex automations, test individual actions (like turning the light on/off) to ensure they work.4. Use the Configuration File: If the web interface isn’t working as expected, don’t hesitate to edit the automations.yaml file directly for more control.This experience has been a great learning opportunity, and I’m even more impressed with HA’s flexibility and power. If anyone has questions or needs help with similar setups, feel free to reach out—I’m happy to share what I’ve learned!