You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -67,15 +69,15 @@ During the integration setup you can change the default http request timeout of
67
69
68
70
The integration exposes a media player entity for each supported request command. These entities only support the source feature. Just enter the desired url (including http(s)://) or mac address in the source field when you configure your activity/macro sequences or activity ui.
69
71
70
-
### Wake-on-lan
72
+
### 1 - Wake-on-lan
71
73
72
74
Choose the Wake on lan entity from the integration setup and add it to an activity or macro. Enter the desired hostname, mac or ip address (ipv4/v6) in the source field when you configure your activity/macro sequence or activity ui. Multiple addresses can be separated by a comma.
73
75
74
76
#### Supported parameters
75
77
76
78
All parameters from [pywakeonlan](https://github.com/remcohaszing/pywakeonlan) are supported (interface, port, ip_address)
77
79
78
-
### HTTP requests
80
+
### 2 - HTTP requests
79
81
80
82
Choose one or more HTTP request method entities from the integration setup and add it to an activity or macro. Enter the desired url (including http(s)://) in the source field when you configure your activity/macro sequences or activity ui.
81
83
@@ -99,12 +101,21 @@ Optional payload data can be added to the request body with a specific separator
99
101
100
102
If your actual url contains one or more of the above separators or other special characters that are not url reserved control characters you need to url-encode them first (e.g. with <https://www.urlencoder.io>)
101
103
102
-
### Text over TCP
104
+
### 3 - Text over TCP
103
105
104
106
This protocol is used by some home automation systems, IoT devices or tools like [win-remote-control](https://github.com/moefh/win-remote-control).
105
107
106
108
Example: 192.168.1.1:1234, "Hello World"
107
109
110
+
#### Control characters
111
+
112
+
C++ and hex style control characters are supported to e.g. add a new line (\\n or 0x0A), tab (\\t or 0x09) or a carriage return (\\r or 0x0D)
113
+
114
+
##### Escaping
115
+
116
+
- C++ style characters can be escaped with a single additional backslash (e.g. \\\n)
117
+
- Hex style characters can be escaped with "0\\\\\\" (e.g. 0\\\\\\0x09)
118
+
108
119
## Installation
109
120
110
121
### Run on the remote as a custom integration driver
data=data.strip().strip('"\'') #Remove spaces and (double) quotes at the beginning and the end
221
219
data=tcp_text_process_control_data(data)
222
-
#data = data.encode("utf-8").decode("unicode_escape") #Convert possible control characters like \n or \r from the string. Escaped characters (e.g. \\n) will not be converted
0 commit comments