@dmsgyn , continua o erro …agora nao sobe mais
MQTT_HOST - core-mosquitto
MQTT_PASS - Iv1vae3shoh3oyoheiJaephaoh9nishaR2apoo9Aesu1ahngohdoo3siijo6Toh3
Serial ports
total 0
drwxr-xr-x 2 root root 60 Feb 23 22:08 .
drwxr-xr-x 4 root root 80 Feb 23 22:08 …
lrwxrwxrwx 1 root root 13 Feb 23 22:08 usb-Cypress_Semiconductor_USB_to_Serial-if00-port0 → …/…/ttyUSB0
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 0424:2514
Bus 001 Device 002: ID 0424:2514
Bus 001 Device 005: ID 0424:7800
Bus 001 Device 007: ID 04b4:5500
[18:41:26] INFO: secrets.ini exists!
[18:41:26] INFO: /data/secrets.ini exists!
SMS BRASIL UPS - dmslabs
********** dmslabs smsUPS v.0.41
Starting up… 2022-02-24 18:41:28
2022-02-24 18:41:28,602 - root - DEBUG - ********** dmslabs smsUPS v.0.41
2022-02-24 18:41:28,603 - root - DEBUG - Starting up…
Path: /data
2022-02-24 18:41:28,603 - root - DEBUG - Path: /data
hassio_token:f31122dc91b156b0a9858429ffab6c3847e7b39d38ed9fae28bab6c44ef32d982498a60788579e213fa6d62d75dc9c76f132b76182b17045
2022-02-24 18:41:28,604 - root - DEBUG - Running inside HASSIO True
2022-02-24 18:41:28,604 - root - DEBUG - env1:/dev/ttyUSB0
Getting Config Parser.
2022-02-24 18:41:28,605 - root - DEBUG - Existe secrets.ini
Existe secrets.ini
Reading secrets.ini
2022-02-24 18:41:28,609 - root - WARNING - Reading secrets.ini
2022-02-24 18:41:28,612 - root - DEBUG - Config: SMSUPS_FULL_POWER use default: 1450
Getting Config Parser.
2022-02-24 18:41:28,612 - root - DEBUG - Existe secrets.ini
Existe secrets.ini
2022-02-24 18:41:28,617 - root - DEBUG - Config: ALLOW_SHUTDOWN use default: True
2022-02-24 18:41:28,617 - root - DEBUG - Config: DEVELOPERS_MODE use default: False
False
2022-02-24 18:41:28,619 - root - DEBUG - PORTA secrets: /dev/tty.usbserial-1440/dev/tty.usbserial-1470/dev/ttyUSB0/devx/ttyUSB0
NORMAL MODE
IN HASS.IO
2022-02-24 18:41:28,619 - root - DEBUG - Loading env data…
false
Getting Config Parser.
2022-02-24 18:41:28,620 - root - DEBUG - Existe secrets.ini
Existe secrets.ini
2022-02-24 18:41:28,625 - root - DEBUG - Env data loaded.
2022-02-24 18:41:28,625 - root - DEBUG - PORTA substitui: /dev/ttyUSB0
2022-02-24 18:41:28,626 - root - DEBUG - SMSUPS_SERVER: True
2022-02-24 18:41:28,626 - root - DEBUG - SMSUPS_CLIENTE: False
2022-02-24 18:41:28,627 - root - DEBUG - MQTT_HOST: core-mosquitto
2022-02-24 18:41:28,628 - root - DEBUG - IP: 192.168.15.45
SMSUPS_SERVER: True
SMSUPS_CLIENTE: False
IP: 192.168.15.45
UPS_ID: 01
UPS_NAME: SMS
UPS_NAME_ID: ups_SMS_01
ALLOW_SHUTDOWN: True
Getting OS Data
2022-02-24 18:41:28,629 - root - INFO - os.name: posix
Can’t get OS Data
info / Error! Code: OSError, Message, unable to determine login name
2022-02-24 18:41:28,629 - root - DEBUG - info / Error! Code: OSError, Message, unable to determine login name
info / Error! Code: OSError, Message, unable to determine login name
2022-02-24 18:41:28,630 - root - DEBUG - info / Error! Code: OSError, Message, unable to determine login name
info / Error! Code: OSError, Message, unable to determine login name
2022-02-24 18:41:28,631 - root - DEBUG - info / Error! Code: OSError, Message, unable to determine login name
sh: /ls: not found
/dev/ttyUSB0n/dev/ttyUSB0o/dev/ttyUSB0t/dev/ttyUSB0 /dev/ttyUSB0e/dev/ttyUSB0x/dev/ttyUSB0i/dev/ttyUSB0s/dev/ttyUSB0t
2022-02-24 18:41:28,636 - root - INFO - Starting MQTT core-mosquitto
2022-02-24 18:41:28,637 - root - DEBUG - mqttStart MQTT_PASSWORD: Iv1vae3shoh3oyoheiJaephaoh9nishaR2apoo9Aesu1ahngohdoo3siijo6Toh3
MQTT connected with result code 0
2022-02-24 18:41:28,645 - root - DEBUG - MQTT connected with result code 0
Connected to core-mosquitto
2022-02-24 18:41:28,646 - root - INFO - Subscribe Topic: home/ups/cmd
Subscribe Topic: home/ups/cmd
Porta: /dev/ttyUSB0 - True
2022-02-24 18:41:29,651 - root - INFO - Port /dev/ttyUSB0 - is open: True
portstr: /dev/ttyUSB0
2022-02-24 18:41:31,454 - root - DEBUG - cmd:Name / str: 49 ff ff ff ff bb 0d / Q: False
2022-02-24 18:41:42,171 - root - DEBUG - response: b’3a4e45542057494e4e45522020332e301b0d’
2022-02-24 18:41:42,172 - root - DEBUG - cmd:Info / str: 46 ff ff ff ff be 0d / Q: False
2022-02-24 18:41:52,886 - root - DEBUG - response: b’3b3131352f3232303030303031323630e20d’
2022-02-24 18:41:52,887 - root - DEBUG - UPS Info: NET WINNER 3.0e
/
2022-02-24 18:41:52,888 - root - DEBUG - UPS Info: NET WINNER 3.0e /
2022-02-24 18:41:52,889 - root - DEBUG - Sensor_dic: 0
2022-02-24 18:41:52,894 - root - WARNING - erro json.load:
{
“stat_t”: “home/ups_SMS_01/json”,
“name”: “SMS_01_inputVac”,
“uniq_id”: “SMS_01_inputVac”,
“val_tpl”: “{{ value_json.inputVac }}”,
“icon”: “mdi:transmission-tower-export”,
“device_class”: “voltage”,
“expire_after”: “360”,
“device”: { “name”: “NET WINNER 3.0e”,
“manufacturer”: “dmslabs”,
“model”: “”,
“sw_version”: “0.41”,
“via_device”: “smsUPS”,
“identifiers”: [ “SMS_01” ] }
}
Traceback (most recent call last):
File “/data/…/smsUPS.py”, line 1629, in
send_hass()
File “/data/…/smsUPS.py”, line 1277, in send_hass
monta_publica_topico(k[0], sensor_dic[k[0]], varComuns)
File “/data/…/smsUPS.py”, line 1243, in monta_publica_topico
dados = json_remove_vazio(dados)
File “/data/…/smsUPS.py”, line 1214, in json_remove_vazio
cp_dados = json.loads(strJson) # cria uma copia
File “/usr/local/lib/python3.9/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
File “/usr/local/lib/python3.9/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/local/lib/python3.9/json/decoder.py”, line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid control character at: line 10 column 40 (char 279)
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts…
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.