SEPIA-Framework / sepia-assist-server

Core server of the SEPIA Framework responsible for NLU, conversation, smart-service integration, user-accounts and more.
https://sepia-framework.github.io/
MIT License
94 stars 15 forks source link

Sepia <> openHAB 3 --> Can not set "Type" and "Room" for SmartHome devices #32

Closed SHU-red closed 2 years ago

SHU-red commented 2 years ago

Im absolutely new to Sepia but could manage to read all my devices from my HomeServer > Docker > openHAB3 to HomeServer > Docker > Sepia Assistant SmartHome Configuration

I can turn the items configured in OH3 on and off via pushing the Button of the Item with my mouse But it does not work to set Type and Room for the devices

The message appears if i want to set one of these

{
  "result": "fail",
  "error": "one or more attributes could not be set! Success: 0 of 1 - see server log"
}

The log sais:

2022-03-31 15:20:08 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:20:17 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:20:31 LOG - JSON-Backup-worker: START
2022-03-31 15:20:31 LOG - JSON-Backup-worker: Data has been stored! (1 time(s)) It took (ms): 44, average (ms): 10000
2022-03-31 15:20:47 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:20:58 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:21:02 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:21:30 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:22:27 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:22:30 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:22:57 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:25:45 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:20:08 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:20:17 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:20:31 LOG - JSON-Backup-worker: START
2022-03-31 15:20:31 LOG - JSON-Backup-worker: Data has been stored! (1 time(s)) It took (ms): 44, average (ms): 10000
2022-03-31 15:20:47 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:20:58 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:21:02 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:21:30 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:22:27 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:22:30 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:22:57 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}
2022-03-31 15:25:45 ERROR - OpenHAB - 'writeDeviceAttribute' FAILED - Device: dLedStrpBedRoom_Swt - Response: {"code":405,"error":"java.lang.NullPointerException","HTTP_REST_SUCCESS":false}

Is this something also related to openHAB settings (like REST API) or is this a Sepia-exclusive problem?

I could imagine, that (because you mentioned it) there have been some changes made regarding items or REST API from OH2 to OH3?

Can i provide you with some more information?

fquirin commented 2 years ago

Thanks for the log data. It seems this is the same issue as mentioned here: https://github.com/SEPIA-Framework/sepia-docs/issues/174

I prefer collecting all SEPIA client, server and setup related issues in the 'docs' repository, so lets keep discussing it there. I will close this one for now.