Rules API 를 사용하려면~~~
문서는 아래
https://developer.smartthings.com/docs/automations/getting-started-with-automations
Getting Started with Automations | Developer Documentation | SmartThings
Automations allow you to create powerful routines, incorporating Devices and Connected Services that are on the SmartThings Platform. The different types of Automations you can create are outlined below.
developer.smartthings.com
https://developer.smartthings.com/docs/automations/rules
Rules | Developer Documentation | SmartThings
Visit the Rules API documentation to learn more about the Rules API calls available to you.
developer.smartthings.com
https://developer.smartthings.com/docs/automations/scenes
Scenes | Developer Documentation | SmartThings
Scenes are used to simultaneously set a group of Devices to a particular state. Scenes do not have triggers, and are activated either by tapping the Scene in a SmartThings client (such as the SmartThings app) or by using the Scenes API.
developer.smartthings.com
postman을 직접 쓰거나 cli를 통해서 생성 및 편집 삭제를 했었어야 했다
동그라미 창고 블로그에 가면 다양한 방법들이 소개되어있으니 여기를 참고하세요
https://thelightway.tistory.com/5
근데 SmartThings web에서 그나마 간편하게 rules api를 추가 삭제 편집을 할수 있게 제공을 해주고있다.
룰루해피님이 알려주셔서 나도 얼마전에 알았다...
방법은 아래 링크로 진입해서
https://my.smartthings.com/advanced/rules
삼성계정
하나의 계정으로, 모든 기기에서, 나만을 위한 서비스를! 삼성 계정에 로그인하세요.
account.samsung.com
"+ Add a new Rule" 을 클릭해서
payload를 쉽게 붙여서 추가 가능하다.
만들고 나면 바로 목록에서 보여지고 아래처럼 SOURCE에서 API로 표시된다 삭제도 가능 편집도 가능
다만 불편한점은 기기의 id를 다 따와야한다는건데...
기존 CLI보단 그래도 편하다
점점 발전하길 기대해본다!!!
'붱이 Story > IoT' 카테고리의 다른 글
SmartThings Custom capability를 쉽게 만들자 with WEB CLI (1) | 2024.07.25 |
---|---|
Philips hue x SmartThings matter 연결(with Hue tab dial) (0) | 2024.07.04 |
SmartThings 자동화 이해하기 - 특정 시간 동안 조건 알아보기 (0) | 2024.06.29 |
SmartThings 카페를 개설하였습니다. (0) | 2024.06.28 |
우리 집 자동화를 소개합니다. (3) | 2022.09.14 |