I have a tasmota TH16 and was able to connect the switch on it to home assistant using MQTT. Now I am trying to get temperature and humidity reading from it, but the sensors do not show up. Here is the payload from sonoff:
18:42:53 MQT: tele/superworms01/SENSOR = {"Time":"2019-01-01T18:42:53","AM2301":{"Temperature":11.0,"Humidity":61.1},"TempUnit":"C"}
And here is my sensor configuration:
# Sensors
sensor:
# Weather prediction
- platform: yr
- platform: mqtt
state_topic: 'tele/superworms01/SENSOR'
name: 'Superworms01Temp'
value_template: '{{value_json.AM2301.Temperature}}'
unit_of_measurement: 'C'
- platform: random
Any help is much appreciated.
ps: There are some errors in the dev-info panel of home assistant, I can not see any connection, but here are the last bunch of errors:
Error doing job: SSL error errno:1 reason: NO_SHARED_CIPHER
9:11 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
9:11 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL error errno:1 reason: WRONG_VERSION_NUMBER
9:11 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
9:11 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL error errno:1 reason: WRONG_VERSION_NUMBER
6:22 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
6:22 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL error errno:1 reason: BAD_PACKET_LENGTH
1:50 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
1:50 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL error errno:1 reason: UNKNOWN_PROTOCOL
1:50 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed
1:50 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: Fatal error on transport TCPTransport (error status in uv_stream_t.read callback)
12:33 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: Fatal error on transport TCPTransport (error status in uv_stream_t.read callback)
12:33 AM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
INFO:homeassistant.util.package:Attempting install of colorlog==3.1.4 Testing configuration at /config Failed config automation: - Invalid config for [automation]: [automation] is an invalid option for [automation]. Check: automation->automation. (See /config/configuration.yaml, line 94). Please check the docs at https://home-assistant.io/components/automation/ - cloud: ? config: ? conversation: ? discovery: ? frontend: ? group: ? history: ? http: ? base_url: https://caspianfeed.duckdns.org cors_allowed_origins: ? ip_ban_enabled: True login_attempts_threshold: -1 server_host: 0.0.0.0 server_port: 8123 ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem ssl_profile: modern trusted_networks: ? introduction: ? logbook: ? map: ? mqtt: [source /config/configuration.yaml:23] broker: core-mosquitto password: BSFL#2018 username: caspian panel_iframe: [source /config/configuration.yaml:99] configurator: [source /config/configuration.yaml:100] icon: mdi:wrench title: Configurator url: https://caspianfeed.duckdns.org:3218/ script: ? sensor: [source /config/configuration.yaml:78] - platform: yr - platform: random - platform: mqtt name: Superworms01Temp state_topic: tele/superworms01/SENSOR unit_of_measurement: C value_template: {{value_json.AM2301.Temperature}} sun: ? tts: [source /config/configuration.yaml:88] - platform: google updater: ? Successful config (partial) automation:
December 31, 2018, 11:56 PM components/hassio/__init__.py (ERROR)
INFO:homeassistant.util.package:Attempting install of colorlog==3.1.4 Testing configuration at /config Failed config automation: - Invalid config for [automation]: [automation] is an invalid option for [automation]. Check: automation->automation. (See /config/configuration.yaml, line 94). Please check the docs at https://home-assistant.io/components/automation/ - cloud: ? mode: production config: ? conversation: ? discovery: ? enable: ? ignore: ? frontend: ? group: ? history: ? exclude: ? include: ? use_include_order: False http: [source /config/configuration.yaml:43] base_url: https://caspianfeed.duckdns.org server_port: 8123 ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem introduction: ? logbook: ? map: ? mqtt: ? broker: core-mosquitto discovery: False discovery_prefix: homeassistant keepalive: 60 password: BSFL#2018 port: 1883 protocol: 3.1.1 tls_version: auto username: caspian panel_iframe: ? configurator: ? icon: mdi:wrench title: Configurator url: https://caspianfeed.duckdns.org:3218/ script: ? sun: ? updater: ? include_used_components: False reporting: True Successful config (partial) automation:
December 31, 2018, 11:50 PM components/hassio/__init__.py (ERROR)
INFO:homeassistant.util.package:Attempting install of colorlog==3.1.4 Testing configuration at /config Failed config automation: - Invalid config for [automation]: [automation] is an invalid option for [automation]. Check: automation->automation. (See /config/configuration.yaml, line 94). Please check the docs at https://home-assistant.io/components/automation/ - cloud: ? mode: production config: ? conversation: ? discovery: ? enable: ? ignore: ? frontend: ? javascript_version: auto group: ? history: ? exclude: ? include: ? use_include_order: False http: [source /config/configuration.yaml:43] base_url: https://caspianfeed.duckdns.org server_port: 8123 ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem introduction: ? logbook: ? map: ? mqtt: [source /config/configuration.yaml:23] broker: core-mosquitto password: BSFL#2018 username: caspian panel_iframe: ? configurator: ? icon: mdi:wrench title: Configurator url: https://caspianfeed.duckdns.org:3218/ script: ? sun: ? updater: ? include_used_components: False reporting: True Successful config (partial) automation:
December 31, 2018, 11:47 PM components/hassio/__init__.py (ERROR)
Error doing job: SSL error errno:1 reason: WRONG_VERSION_NUMBER
December 31, 2018, 11:29 PM /usr/local/lib/python3.6/site-packages/homeassistant/core.py (ERROR)
Error doing job: SSL handshake failed