Hi,
I’m struggeling to get this to work.
I have a samsung developers account and got the api.
In postman i did a GET request https://api.smartthings.com/v1/devices
under the authorization tab i select bearer token and filled this token as secret in my secret yaml file.
to test i pushed send and got as result and saved it to my collection in postman.
[partial copy and paste]
{
“items”: [
{
“deviceId”: "d5026f8e-9ba7-
“name”: “[washer] Samsung”,
“label”: “[washer] Samsung”,
“manufacturerName”: “Samsung Electronics”,
“presentationId”: “DA-WM-WM-000001”,
“deviceManufacturerCode”: “Samsung Electronics”,
“locationId”: "df136aef-c3ef-
“ownerId”: "6df67325-2414-
“roomId”: "9dec5879-ece4
“deviceTypeName”: “Samsung OCF Washer”,
“components”: [
{
“id”: “main”,
“label”: “main”,
“capabilities”: [
[ end partial copy and paste postman bearer token]
I don’t get the sensors smartthings.api as shown in you screenshot. i get:
If i take your code and copy it into Development->templates
I get the error:
UndefinedError: ‘None’ has no attribute ‘main’
So from the section:
### Template sensor for Maq Lavar number of cycles until drum cleaning is required ###
wasmachine_cycles:
until:
### Template sensor for information taken directly from SmartThings API ###
washer_consumption:
in adition i checked the resouce link in platform rest: and this gives me i asume a good responce hence the fact i get all data from the waschingmachine.
I’m totaly out of clues how to proceed further
any pointers would be verry nice!
Kind regards