-
Hi I am 74 retired Telecom Engineer and my hobby is IoT. My openHASP sends and receives fine with my other MQTT broker and the nodes. # Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
openhasp:
plate35:
objects:
- obj: "p0b1" # temperature label on all pages
properties:
"text": '{{ states("sensor.my_room_temperature") }}°C'
- obj: "p1b2" # light-switch toggle button
properties:
"val": '{{ 1 if states("light.my_room") == "on" else 0 }}'
"text": '{{ "\uE6E8" if is_state("light.my_room", "on") else "\uE335" | e }}'
event:
"up":
- service: homeassistant.toggle
entity_id: "light.my_room"
- obj: "p1b3" # dropdown
event:
"changed":
- service: persistent_notification.create
data:
message: I like {{ text }} The " /config/custom_components" folder shows 2 folders 1. "HACS", 2. "open Hasp" . The open Hasp folder has list of related files. Please help me. Thank and best wishes. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 5 replies
-
Try adding this (temporarily) to your
Reboot HA to enable it and then check the logs for errors or clues what might be happening when the plate connects. |
Beta Was this translation helpful? Give feedback.
-
Dear friend, thank you for the response.
Here is the /config/configuration.yaml code for your views:
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
openhasp:
plate35:
objects:
- obj: "p0b1" # temperature label on all pages
properties:
"text": '{{ states("sensor.my_room_temperature") }}°C'
- obj: "p1b2" # light-switch toggle button
properties:
"val": '{{ 1 if states("light.my_room") == "on" else 0 }}'
"text": '{{ "\uE6E8" if is_state("light.my_room", "on") else
"\uE335" | e }}'
event:
"up":
- service: homeassistant.toggle
entity_id: "light.my_room"
- obj: "p1b3" # dropdown
event:
"changed":
- service: persistent_notification.create
data:
message: I like {{ text }}
############################
Thanks again with best regards.
…On Fri, Apr 29, 2022 at 1:07 AM H. Árkosi Róbert ***@***.***> wrote:
Post your /config/configuration.yaml
—
Reply to this email directly, view it on GitHub
<#326 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOZMCQSFCFIDBNNH53WGXDVHNU73ANCNFSM5UTV3OFA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Screenshot of information, OpenHASP for your views:plate35
------------------------------
openHASP
Version: 0.6.2
Build DateTime: Oct 20 2021 14:29:53 UTC
Uptime: 1m 9s
Device Memory
Free Heap: 97.70 KiB
Free Block: 96.98 KiB
Fragmentation: 0
LVGL Memory
Total: 48.00 KiB
Free: 32.41 KiB
Fragmentation: 1
HASP State
Idle: short
Active Page: 1
MQTT
Server: 192.168.86.100
Username: homeassistant
Client ID: plate35-7b4acc
Status: Authorization failed
Received: 0
Published: 0
Failed: 1
Wifi
SSID: FBI
Signal Strength: -56dBm (Good)
IP Address: 192.168.86.22
Gateway: 192.168.86.1
DNS Server: 192.168.86.1
MAC Address: 24:6F:28:7B:4A:CC
Module
Model: ESP32
Frequency: 240MHz
Core Version: v3.3.5-1-g85c43024c
Reset Reason: CPU0: POWERON_RESET / CPU1: EXT_CPU_RESET
Flash Size: 4.00 MiB
Program Size Used: 1.48 MiB
Program Size Free: 1.62 MiB
Main Menu
------------------------------
openHASP 0.6.2 by Francis Van Roie <http://192.168.86.22/about>
…On Fri, Apr 29, 2022 at 7:06 AM RagoTube ***@***.***> wrote:
For your views and suggestion: /config/home-assistant.log
2022-04-28 18:26:10 WARNING (SyncWorker_0) [homeassistant.loader] We found
a custom integration openhasp which has not been tested by Home Assistant.
This component might cause stability problems, be sure to disable it if you
experience issues with Home Assistant
2022-04-28 18:26:10 WARNING (SyncWorker_1) [homeassistant.loader] We found
a custom integration hacs which has not been tested by Home Assistant. This
component might cause stability problems, be sure to disable it if you
experience issues with Home Assistant
2022-04-28 18:26:13 WARNING (Recorder)
[homeassistant.components.recorder.util] The system could not validate that
the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-04-28 18:26:55 ERROR (MainThread) [aiohttp.server] Error handling
request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py",
line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line
504, in _handle
resp = await handler(request)
File
"/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line
117, in impl
return await handler(request)
File
"/usr/src/homeassistant/homeassistant/components/http/security_filter.py",
line 60, in security_filter_middleware
return await handler(request)
File
"/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line
100, in forwarded_middleware
return await handler(request)
File
"/usr/src/homeassistant/homeassistant/components/http/request_context.py",
line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line
79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py",
line 219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py",
line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/hassio/http.py",
line 73, in _handle
return await self._command_proxy(path, request)
File "/usr/src/homeassistant/homeassistant/components/hassio/http.py",
line 109, in _command_proxy
await response.prepare(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py",
line 421, in prepare
return await self._start(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py",
line 429, in _start
await self._write_headers()
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py",
line 502, in _write_headers
await writer.write_headers(status_line, self._headers)
File "/usr/local/lib/python3.9/site-packages/aiohttp/http_writer.py",
line 131, in write_headers
self._write(buf)
File "/usr/local/lib/python3.9/site-packages/aiohttp/http_writer.py",
line 76, in _write
raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
On Fri, Apr 29, 2022 at 6:30 AM RagoTube ***@***.***> wrote:
> Dear friend, thank you for the response.
> Here is the /config/configuration.yaml code for your views:
>
> # Loads default set of integrations. Do not remove.
> default_config:
>
> # Text to speech
> tts:
> - platform: google_translate
>
> automation: !include automations.yaml
> script: !include scripts.yaml
> scene: !include scenes.yaml
>
> openhasp:
> plate35:
> objects:
> - obj: "p0b1" # temperature label on all pages
> properties:
> "text": '{{ states("sensor.my_room_temperature") }}°C'
> - obj: "p1b2" # light-switch toggle button
> properties:
> "val": '{{ 1 if states("light.my_room") == "on" else 0 }}'
> "text": '{{ "\uE6E8" if is_state("light.my_room", "on") else
> "\uE335" | e }}'
> event:
> "up":
> - service: homeassistant.toggle
> entity_id: "light.my_room"
> - obj: "p1b3" # dropdown
> event:
> "changed":
> - service: persistent_notification.create
> data:
> message: I like {{ text }}
>
> ############################
> Thanks again with best regards.
>
> On Fri, Apr 29, 2022 at 1:07 AM H. Árkosi Róbert <
> ***@***.***> wrote:
>
>> Post your /config/configuration.yaml
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#326 (reply in thread)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ABOZMCQSFCFIDBNNH53WGXDVHNU73ANCNFSM5UTV3OFA>
>> .
>> You are receiving this because you authored the thread.Message ID:
>> ***@***.***
>> com>
>>
>
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you, but it is like that only and no line break is there. Anyhow I
will try once again.
Thank you.
…On Fri, Apr 29, 2022 at 7:45 AM H. Árkosi Róbert ***@***.***> wrote:
Problem is likely caused by this line:
"text": '{{ "\uE6E8" if is_state("light.my_room", "on") else
"\uE335" | e }}'
You must not use any *wrapping* or *automatic line breaking* in your text
editor as it will break the yaml syntax when you save the file.
You have to use it like:
"text": '{{ "\uE6E8" if is_state("light.my_room", "on") else "\uE335" | e }}'
—
Reply to this email directly, view it on GitHub
<#326 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOZMCU766QDAOIYEULE3PDVHPDXBANCNFSM5UTV3OFA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Home Assistant generated a long password for mqtt and HASP didn't take it
and that was the problem. I reinstalled the Mqtt and changed the password
now it works.
Thank you for your advice.
…On Fri, 29 Apr, 2022, 11:52 am RagoTube, ***@***.***> wrote:
Thank you, but it is like that only and no line break is there. Anyhow I
will try once again.
Thank you.
On Fri, Apr 29, 2022 at 7:45 AM H. Árkosi Róbert ***@***.***>
wrote:
> Problem is likely caused by this line:
>
> "text": '{{ "\uE6E8" if is_state("light.my_room", "on") else
> "\uE335" | e }}'
>
> You must not use any *wrapping* or *automatic line breaking* in your
> text editor as it will break the yaml syntax when you save the file.
>
> You have to use it like:
>
> "text": '{{ "\uE6E8" if is_state("light.my_room", "on") else "\uE335" | e }}'
>
> —
> Reply to this email directly, view it on GitHub
> <#326 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABOZMCU766QDAOIYEULE3PDVHPDXBANCNFSM5UTV3OFA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. The issue was with the long Mqtt password and
when I changed it, works ok
Thank you for your help.
…On Thu, 28 Apr, 2022, 6:11 pm fvanroie, ***@***.***> wrote:
Try adding this (temporarily) to your configuration.yaml to enable
logging:
logger:
default: warning
logs:
custom_components.openhasp: debug
Reboot HA to enable it and then check the logs for errors or clues what
might be happening when the plate connects.
—
Reply to this email directly, view it on GitHub
<#326 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOZMCXZFT5URQRD3VCZ7X3VHMEIPANCNFSM5UTV3OFA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your support.
…On Sat, 30 Apr, 2022, 4:39 am fvanroie, ***@***.***> wrote:
I'm glad you found the problem!
—
Reply to this email directly, view it on GitHub
<#326 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOZMCRBWZP323EIW3XLLI3VHTWSVANCNFSM5UTV3OFA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
For your views and suggestion: /config/home-assistant.log
2022-04-28 18:26:10 WARNING (SyncWorker_0) [homeassistant.loader] We found
a custom integration openhasp which has not been tested by Home Assistant.
This component might cause stability problems, be sure to disable it if you
experience issues with Home Assistant
2022-04-28 18:26:10 WARNING (SyncWorker_1) [homeassistant.loader] We found
a custom integration hacs which has not been tested by Home Assistant. This
component might cause stability problems, be sure to disable it if you
experience issues with Home Assistant
2022-04-28 18:26:13 WARNING (Recorder)
[homeassistant.components.recorder.util] The system could not validate that
the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-04-28 18:26:55 ERROR (MainThread) [aiohttp.server] Error handling
request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py",
line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line
504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py",
line 117, in impl
return await handler(request)
File
"/usr/src/homeassistant/homeassistant/components/http/security_filter.py",
line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py",
line 100, in forwarded_middleware
return await handler(request)
File
"/usr/src/homeassistant/homeassistant/components/http/request_context.py",
line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line
79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line
219, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line
137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/hassio/http.py",
line 73, in _handle
return await self._command_proxy(path, request)
File "/usr/src/homeassistant/homeassistant/components/hassio/http.py",
line 109, in _command_proxy
await response.prepare(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py",
line 421, in prepare
return await self._start(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py",
line 429, in _start
await self._write_headers()
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_response.py",
line 502, in _write_headers
await writer.write_headers(status_line, self._headers)
File "/usr/local/lib/python3.9/site-packages/aiohttp/http_writer.py",
line 131, in write_headers
self._write(buf)
File "/usr/local/lib/python3.9/site-packages/aiohttp/http_writer.py",
line 76, in _write
raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
…On Fri, Apr 29, 2022 at 6:30 AM RagoTube ***@***.***> wrote:
Dear friend, thank you for the response.
Here is the /config/configuration.yaml code for your views:
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
openhasp:
plate35:
objects:
- obj: "p0b1" # temperature label on all pages
properties:
"text": '{{ states("sensor.my_room_temperature") }}°C'
- obj: "p1b2" # light-switch toggle button
properties:
"val": '{{ 1 if states("light.my_room") == "on" else 0 }}'
"text": '{{ "\uE6E8" if is_state("light.my_room", "on") else
"\uE335" | e }}'
event:
"up":
- service: homeassistant.toggle
entity_id: "light.my_room"
- obj: "p1b3" # dropdown
event:
"changed":
- service: persistent_notification.create
data:
message: I like {{ text }}
############################
Thanks again with best regards.
On Fri, Apr 29, 2022 at 1:07 AM H. Árkosi Róbert ***@***.***>
wrote:
> Post your /config/configuration.yaml
>
> —
> Reply to this email directly, view it on GitHub
> <#326 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABOZMCQSFCFIDBNNH53WGXDVHNU73ANCNFSM5UTV3OFA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
Status: Authorization failed
indicates that the MqttUser and/or MqttPassword are not accepted by the broker.Please check the credentials entered in openHASP are correct and also verify that they work using a tool like MQTT Explorer.