HomeAssistant API connection is broken #2

Closed
opened 2019-11-22 13:41:43 +00:00 by Rich · 51 comments
Rich commented 2019-11-22 13:41:43 +00:00 (Migrated from gitlab.rickelobe.com)

As of HomeAssistant v0.100.0, API passwords have been disabled; The new method is to use "Long-Lived Access Tokens". Since API requests to homeassistant are now broken, the $printstat command fails. It is unable to query homeassistant for the light status by the 3d printer and does not fail gracefully (granted that is it's own issue that needs to be dealt with separately)

What the user see when issuing command $printstat:

Printstat_User_exp

Error on chatbot console:

Printstat_console_error

Auth error in homeassistant log:

homeassistant_invalid_auth_error

As of HomeAssistant v0.100.0, API passwords have been disabled; The new method is to use "Long-Lived Access Tokens". Since API requests to homeassistant are now broken, the $printstat command fails. It is unable to query homeassistant for the light status by the 3d printer and does not fail gracefully (granted that is it's own issue that needs to be dealt with separately) **What the user see when issuing command $printstat:** ![Printstat_User_exp](/uploads/1f3dd23075872c3d52313aae968fa7d5/Printstat_User_exp.png) **Error on chatbot console:** ![Printstat_console_error](/uploads/7f6a0c56daf5af5d7db598b19b04ea8c/Printstat_console_error.png) **Auth error in homeassistant log:** ![homeassistant_invalid_auth_error](/uploads/c2236349d2a4fa6b287f32f41b1a7128/homeassistant_invalid_auth_error.png)
Rich commented 2019-11-22 14:47:35 +00:00 (Migrated from gitlab.rickelobe.com)

Now that #3 is closed, it's apparent that first two screenshots no were not part of this specific issue. Those have been eliminated by gracefully handling the API error.

Now that #3 is closed, it's apparent that first two screenshots no were not part of this specific issue. Those have been eliminated by gracefully handling the API error.
Rich commented 2019-11-22 14:49:07 +00:00 (Migrated from gitlab.rickelobe.com)

Issue is no longer breaking, we are now able to gracefully handle issue. Downgrading to "Bug".

Issue is no longer breaking, we are now able to gracefully handle issue. Downgrading to "Bug".
Rich commented 2019-11-22 19:22:16 +00:00 (Migrated from gitlab.rickelobe.com)

Will need to use RESTful api, documented here: (https://developers.home-assistant.io/docs/en/external_api_rest.html)

Will need to use RESTful api, documented here: (https://developers.home-assistant.io/docs/en/external_api_rest.html)
Rich commented 2019-11-22 19:54:50 +00:00 (Migrated from gitlab.rickelobe.com)

created branch 2-homeassistant-api-connection-is-broken to address this issue

created branch [`2-homeassistant-api-connection-is-broken`](/Bots/r0b3BOT/compare/master...2-homeassistant-api-connection-is-broken) to address this issue
Rich commented 2019-11-22 20:15:42 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !6

mentioned in merge request !6
Rich commented 2019-11-22 20:25:18 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !7

mentioned in merge request !7
Rich commented 2019-11-22 20:32:20 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !8

mentioned in merge request !8
Rich commented 2019-11-22 20:39:55 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !9

mentioned in merge request !9
Rich commented 2019-11-22 20:50:59 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !10

mentioned in merge request !10
Rich commented 2019-11-22 20:51:55 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !11

mentioned in merge request !11
Rich commented 2019-11-22 20:55:14 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !12

mentioned in merge request !12
Rich commented 2019-11-22 20:55:19 +00:00 (Migrated from gitlab.rickelobe.com)

closed via merge request !12

closed via merge request !12
Rich commented 2019-11-22 20:55:20 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 3a3846df85

mentioned in commit 3a3846df8583782463ba4ea5fa0ef3ecbc3c839a
Rich commented 2019-11-22 21:12:17 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !13

mentioned in merge request !13
Rich commented 2019-11-27 19:03:11 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !14

mentioned in merge request !14
Rich commented 2019-11-27 19:11:37 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !15

mentioned in merge request !15
Rich commented 2019-11-27 19:11:42 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 1eedc900f2

mentioned in commit 1eedc900f2070405bbe4c6799a7360e3a8db8216
Rich commented 2019-11-27 19:20:09 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !16

mentioned in merge request !16
Rich commented 2019-11-27 19:24:42 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !17

mentioned in merge request !17
Rich commented 2019-11-27 19:28:03 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !18

mentioned in merge request !18
Rich commented 2019-11-27 19:34:29 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !19

mentioned in merge request !19
Rich commented 2019-11-27 19:36:41 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !20

mentioned in merge request !20
Rich commented 2019-11-27 19:43:39 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !21

mentioned in merge request !21
Rich commented 2019-11-27 19:45:28 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !22

mentioned in merge request !22
Rich commented 2019-11-27 19:50:11 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !23

mentioned in merge request !23
Rich commented 2019-11-27 19:54:36 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !24

mentioned in merge request !24
Rich commented 2019-11-27 19:56:36 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !25

mentioned in merge request !25
Rich commented 2019-11-27 20:05:09 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !26

mentioned in merge request !26
Rich commented 2019-11-27 20:05:14 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit fbc1b79b7c

mentioned in commit fbc1b79b7cd2db81ba8aa2f289e9900bba7480bb
Rich commented 2019-11-27 20:08:11 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !27

mentioned in merge request !27
Rich commented 2019-11-27 20:08:20 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 349c0b9631

mentioned in commit 349c0b9631234b6e02d424834dfd5e238d1eeb2f
Rich commented 2019-11-27 20:10:34 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !28

mentioned in merge request !28
Rich commented 2019-11-27 20:10:41 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 90d2808480

mentioned in commit 90d2808480fc9625c63c4df8e339a3fdc2c08544
Rich commented 2019-11-27 20:13:15 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !29

mentioned in merge request !29
Rich commented 2019-11-27 20:13:20 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 7cd570979d

mentioned in commit 7cd570979dc6d66e25b29233d5218a74531ada61
Rich commented 2019-11-27 20:15:26 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !30

mentioned in merge request !30
Rich commented 2019-11-27 20:15:40 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit e3f373333f

mentioned in commit e3f373333faebf2fdc559d22b41be97f36530ecd
Rich commented 2019-11-27 20:27:57 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !31

mentioned in merge request !31
Rich commented 2019-11-27 20:28:02 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit ce6ae512ca

mentioned in commit ce6ae512ca8a552ed2ef017db6ae6c9b41510089
Rich commented 2019-11-27 20:29:49 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !32

mentioned in merge request !32
Rich commented 2019-11-27 20:30:02 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 37766daada

mentioned in commit 37766daada3ee95bd11ec434216cae06e9d27c11
Rich commented 2019-11-27 20:35:07 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !33

mentioned in merge request !33
Rich commented 2019-11-27 20:35:13 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 9180aef86e

mentioned in commit 9180aef86ee16ac103377cc0766e706d56e75f1c
Rich commented 2019-11-27 20:36:38 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !34

mentioned in merge request !34
Rich commented 2019-11-27 20:36:43 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 7a18bdcc43

mentioned in commit 7a18bdcc4358c9f292643c64e9f15af23da2c714
Rich commented 2019-11-27 20:38:05 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !35

mentioned in merge request !35
Rich commented 2019-11-27 20:38:10 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 18551d30aa

mentioned in commit 18551d30aad7eccaec9dd3385a6c8d17ece4b22a
Rich commented 2019-11-27 20:39:32 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !36

mentioned in merge request !36
Rich commented 2019-11-27 20:39:46 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 16c68d3189

mentioned in commit 16c68d31898dc8c821a64a57d787022928d9618b
Rich commented 2019-11-27 20:42:30 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in merge request !37

mentioned in merge request !37
Rich commented 2019-11-27 20:42:43 +00:00 (Migrated from gitlab.rickelobe.com)

mentioned in commit 5083659dbf

mentioned in commit 5083659dbf62f02ba05297ff223c738b1694b34c
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rich/r0b3BOT#2