Skip to content

issue: Not reading data after converting server to https #5

Description

@nokel

Hi, I created a skin that would read the various states of my sensors which was working for the whole time I was using homeassistant before I added https to the server, however since changing the server over to https the skin no longer seems to work?

I've tried adding
"ssl=True
port=443"

I've also tried adding "https://" homeassistant.local, as well as adding ":443" and ":8123" without adding "port=443" to the .ini file but nothing seems to have worked, I've also tried using a new access token, but that doesn't seem to have done anything either...

I also figure that it's getting something, because when this skin doesn't read anything it crashes the whole program and needs to be forced to close with ctrl-alt-del,
"curl -k -H "Authorization: Bearer (api key hidden)" -H "Content-Type: application/json" https://homeassistant.local:8123/api/states" shows that the api still seems to be working...

the ini file is the following:
`Author=Nokel
AppVersion=1
Background=#@#Background.png
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
Description=Shows your inside temp and humidity from HomeAssistant.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[hassio]
Measure=Plugin
Plugin=#SETTINGSPATH#\Plugins\HomeAssitantPlugin.dll
server=homeassistant.local
auth=(hidden)
ssl=True
port=443
entityId=sensor.rtemp
isInt=true

[hassio2]
Measure=Plugin
Plugin=#SETTINGSPATH#\Plugins\HomeAssitantPlugin.dll
server=homeassistant.local
auth=(hidden)
entityId=sensor.rhum
isInt=true

[hassio3]
Measure=Plugin
Plugin=#SETTINGSPATH#\Plugins\HomeAssitantPlugin.dll
server=homeassistant.local
auth=(hidden)
entityId=sensor.c02
isInt=true

[hassio4]
Measure=Plugin
Plugin=#SETTINGSPATH#\Plugins\HomeAssitantPlugin.dll
server=homeassistant.local
auth=(hidden)
entityId=sensor.tvoc
isInt=true

[Variables]
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205

[MeasureTempRound]
Measure=Calc
Formula=[hassio]
DynamicVariables=1

[MeasureHumRound]
Measure=Calc
Formula=[hassio2]
DynamicVariables=1

;style

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1

[styleLeftText]
StringAlign=LEFT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,15

[styleSeperator]
SolidColor=255,255,255,15

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
X=100
Y=12
W=190
H=18
Text="Room"

[meterstyleTempText]
Meter=String
MeterStyle=styleLeftText
X=10
Y=43
Text="Temperature"

[MeterTemperature]
Meter=String
MeterStyle=styleTitle
MeasureName=measureTempRound
X=154
Y=37
FontSize=15
FontColor=255,255,255
AntiAlias=1
StringAlign=Center
NumOfDecimals=1
Text=%1°C

[meterStyleHumText]
Meter=String
MeterStyle=styleLeftText
X=10
Y=77
Text="Humidity"

[MeterHumidity]
Meter=String
MeterStyle=styleTitle
MeasureName=MeasureHumRound
X=159
Y=70
FontSize=15
FontColor=255,255,255
AntiAlias=1
StringAlign=Center
NumOfDecimals=1
Text=%1%`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions