Closed GasTurbineMan closed 6 years ago
Your flash file size is for version 5.14.0a with sunrise/sunset function enabled really small. You must have disabled other functions. Maybe here is a side effect. In general 5.14.0a works with ALEXA. I use this version on my test sonoff basic since a few days without a problem at all... Could you post your userconfig.h?
As you would guess, I am a newbie using Tasmota and may have started trying to reduce the size of my firmware load before I really understood what I am doing. At the current time, my Sonoff device collection consists of 1 Dual R2 and 10 Sonoff Basics. They are currently running reliably via MQTT. I am running my MQTT Broker on my Raspberry PI.
I am using PlatformIO to build and upload my firmwares. Had to slow down my serial speed to 115200 in order to get reliable flashes. Not having real good luck with OTA upgrades. Doing the "Be Minimal" thing - but still not real good luck via OTA. After some OTA upgrades, web interface does not load fully, some pages fail to load and overall response is very slow. Had to reflash via serial and change CFG_HOLDER back and forth.
Attached is my userconfig.h and as you will see, I did disable several of the sensors which I did not believe I needed for the Sonoff Basic.
Hopefully you can help me get this Alexa thing to work. Thank you.
One other thing, for Alexa to work with 5.14.0a, please confirm which Esp8266 core for Arduino version I need to be using. Currently, I have gone back to 2.3.0
Using 2.3.0 is the best choice. Only with this version everything in Tasmota works reliable. @arendst is gone back to this version with his prebuild images after many user issues here with newer versions... I recommend you to try the prebuild image. Your settings will NOT be lost if you update. Just download the minimal image and upload it over the web interface. After that load the final firmware. Try if Alexa now discovers the the device. If a device is already discovered delete it before! I had problems after firmware upgrade that this formerly working devices didnt respond. After delete and new discovery the are working reliable again. P.s. i will take a look in your config.h
`/* user_config.h - user specific configuration for Sonoff-Tasmota
Copyright (C) 2018 Theo Arends
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. */
/*****\
//#define USE_CONFIG_OVERRIDE // Uncomment to use user_config_override.h file. See README.md
/*****\
// -- Master parameter control --------------------
// -- Project -------------------------------------
// -- Wifi ----------------------------------------
// (WIFI_RESTART, WIFI_SMARTCONFIG, WIFI_MANAGER, WIFI_WPSCONFIG, WIFI_RETRY, WIFI_WAIT)
// -- Syslog --------------------------------------
// -- Ota -----------------------------------------
// -- MQTT ----------------------------------------
// -- MQTT topics --------------------------------- // Example "tasmota/bedroom/%topic%/%prefix%/" up to 80 characers
// %prefix% token options
// May be named the same as PUB_PREFIX
// %topic% token options (also ButtonTopic and SwitchTopic)
// -- MQTT - Telemetry ----------------------------
// -- MQTT - Domoticz -----------------------------
// -- MQTT - Home Assistant Discovery -------------
// -- HTTP ----------------------------------------
// -- Time - Up to three NTP servers in your region
// -- Time - Start Daylight Saving Time and timezone offset from UTC in minutes
// -- Time - Start Standard Time and timezone offset from UTC in minutes
// -- Location ------------------------------------
// -- Application ---------------------------------
// (LED_OFF, LED_POWER, LED_MQTTSUB, LED_POWER_MQTTSUB, LED_MQTTPUB, LED_POWER_MQTTPUB, LED_MQTT, LED_POWER_MQTT)
// (POWER_ALL_OFF, POWER_ALL_ON, POWER_ALL_SAVED_TOGGLE, POWER_ALL_SAVED, POWER_ALL_ALWAYS_ON, POWER_ALL_OFF_PULSETIME_ON)
/*****\
//#define USE_ARDUINO_OTA // Add optional support for Arduino OTA (+4k5 code)
// -- Localization -------------------------------- // If non selected the default en-GB will be used //#define MY_LANGUAGE bg-BG // Bulgarian in Bulgaria //#define MY_LANGUAGE cs-CZ // Czech in Czech //#define MY_LANGUAGE de-DE // German in Germany //#define MY_LANGUAGE el-GR // Greek in Greece //#define MY_LANGUAGE en-GB // English in Great Britain. Enabled by Default //#define MY_LANGUAGE es-AR // Spanish in Argentina //#define MY_LANGUAGE fr-FR // French in France //#define MY_LANGUAGE hu-HU // Hungarian in Hungary //#define MY_LANGUAGE it-IT // Italian in Italy //#define MY_LANGUAGE nl-NL // Dutch in the Netherlands //#define MY_LANGUAGE pl-PL // Polish in Poland //#define MY_LANGUAGE pt-BR // Portuguese in Brazil //#define MY_LANGUAGE pt-PT // Portuguese in Portugal //#define MY_LANGUAGE ru-RU // Russian in Russia //#define MY_LANGUAGE zh-CN // Chinese (Simplified) in China //#define MY_LANGUAGE zh-TW // Chinese (Traditional) in Taiwan
/-------------------------------------------------------------------------------------------\
// Alternative MQTT driver does not block network when MQTT server is unavailable. No TLS support //#define MQTT_LIBRARY_TYPE MQTT_TASMOTAMQTT // Use TasmotaMqtt library (+4k4 code, +4k mem) - non-TLS only // Alternative MQTT driver does not block network when MQTT server is unavailable. No TLS support //#define MQTT_LIBRARY_TYPE MQTT_ESPMQTTARDUINO // Use (patched) esp-mqtt-arduino library (+4k8 code, +4k mem) - non-TLS only
// -- MQTT ----------------------------------------
// -- MQTT - Domoticz ----------------------------- //#define USE_DOMOTICZ // Enable Domoticz (+6k code, +0.3k mem) rgl changed // #define DOMOTICZ_IN_TOPIC "domoticz/in" // Domoticz Input Topic rgl changed // #define DOMOTICZ_OUT_TOPIC "domoticz/out" // Domoticz Output Topic rgl changed
// -- MQTT - Home Assistant Discovery -------------
// -- MQTT - TLS ---------------------------------- // !!! TLS uses a LOT OF MEMORY so be careful to enable other options at the same time !!! //#define USE_MQTT_TLS // Use TLS for MQTT connection (+53k code, +15k mem)
// -- KNX IP Protocol ----------------------------- //#define USE_KNX // Enable KNX IP Protocol Support (+23k code, +3k3 mem)
// -- HTTP ----------------------------------------
// -- mDNS ----------------------------------------
// -- Time ----------------------------------------
#define SUNRISE_DAWN_ANGLE DAWN_NORMAL // Select desired Dawn Angle from (DAWN_NORMAL, DAWN_CIVIL, DAWN_NAUTIC, DAWN_ASTRONOMIC)
// -- Rules ---------------------------------------
// -- Internal Analog input -----------------------
// -- One wire sensors ---------------------------- // WARNING: Select none for default one DS18B20 sensor or enable one of the following two options for multiple sensors //#define USE_DS18x20 // Optional for more than one DS18x20 sensors with id sort, single scan and read retry (+1k3 code) //#define USE_DS18x20_LEGACY // Optional for more than one DS18x20 sensors with dynamic scan using library OneWire (+1k5 code)
// -- I2C sensors ---------------------------------
// #define USE_BME680 // Add additional support for BME680 sensor using Adafruit Sensor and BME680 libraries (+6k code)
// #define USE_VEML6070 // Add I2C code for VEML6070 sensor (+0k5 code) // #define USE_TSL2561 // Add I2C code for TSL2561 sensor using library Joba_Tsl2561 (+2k3 code) // #define USE_SI1145 // Add I2C code for SI1145/46/47 sensor (+1k code) // #define USE_ADS1115 // Add I2C code for ADS1115 16 bit A/D converter based on Adafruit ADS1x15 library (no library needed) (+0k7 code) // #define USE_ADS1115_I2CDEV // Add I2C code for ADS1115 16 bit A/D converter using library i2cdevlib-Core and i2cdevlib-ADS1115 (+2k code) // #define USE_INA219 // Add I2C code for INA219 Low voltage and current sensor (+1k code) // #define USE_MGS // Add I2C code for Xadow and Grove Mutichannel Gas sensor using library Multichannel_Gas_Sensor (+10k code)
// -- SPI sensors --------------------------------- //#define USE_SPI // SPI using default library
// -- Serial sensors ------------------------------ //#define USE_MHZ19 // Add support for MH-Z19 CO2 sensor (+2k code) rgl changed //#define USE_SENSEAIR // Add support for SenseAir K30, K70 and S8 CO2 sensor (+2k3 code) rgl changed // #define CO2_LOW 800 // Below this CO2 value show green light (needs PWM or WS2812 RG(B) led and enable with SetOption18 1) rgl changed // #define CO2_HIGH 1200 // Above this CO2 value show red light (needs PWM or WS2812 RG(B) led and enable with SetOption18 1) rgl changed //#define USE_PMS5003 // Add support for PMS5003 and PMS7003 particle concentration sensor (+1k3 code) rgl changed //#define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+0k7 code) rgl changed //#define USE_PZEM004T // Add support for PZEM004T Energy monitor (+2k code) rgl changed //#define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+0k8 code) rgl changed //#define USE_SDM120 // Add support for Eastron SDM120-Modbus energy meter (+1k7 code) rgl changed // #define SDM120_SPEED 9600 // SDM120-Modbus RS485 serial speed (default: 2400 baud) rgl changed //#define USE_SDM630 // Add support for Eastron SDM630-Modbus energy meter (+2k code) rgl changed // #define SDM630_SPEED 9600 // SDM630-Modbus RS485 serial speed (default: 9600 baud) rgl changed
// -- Low level interface devices ----------------- //#define USE_IR_REMOTE // Send IR remote commands using library IRremoteESP8266 and ArduinoJson (+4k code, 0k3 mem, 48 iram) rgl changed // #define USE_IR_HVAC // Support for HVAC system using IR (+2k code) // #define USE_IR_RECEIVE // Support for IR receiver (+5k5 code, 264 iram) rgl changed
// #define USE_WS2812_DMA // DMA supports only GPIO03 (= Serial RXD) (+1k mem). When USE_WS2812_DMA is enabled expect Exceptions on Pow
/*****\
//#define USE_CLASSIC // Create sonoff-classic (See sonoff_post.h for selected features)
/*****\
//#define USE_ALL_SENSORS // Create sonoff-allsensors with all sensors enabled (See sonoff_post.h for selected sensors)
/*****\
//#define USE_KNX_NO_EMULATION // Create sonoff-knx with KNX but without Emulation (See sonoff_post.h)
/*****\
//#define BE_MINIMAL // Minimal version if upgrade memory gets tight (-45k code, -2k mem)
/*****\
`
Just a few hints: Use DHCP it is more elegant and handling is easier Disable mDNS. It makes somtimes troubles If not using Home Assistant disable it Do you have enabled Hue emulation in web interface? In config it is enabled but not activated Give every device a unique friendly name1 (menu configure other) This is the name you call Alexa tu turn on off
Following you on most everything except where you say (regarding Hue emulation) "In config it is enabled but not activated". I will start reading, but how do I activate it?
Thanks for your time.
Also, in addition to how to "activate" Hue emulation, I do give each of my Sonoff devices a unique Friendly Name during my testing and configuration of my flashed devices. Each device has its own name.
I appreciate you advice on user_config.h settings. Now more questions specific to getting Alexa to work:
Maybe if I can get an answer to question 2 regarding “how to activate” Hue emulation in Tasmota, my Alexa might see my device.
Thanks
From: Jason2866 notifications@github.com Sent: Thursday, May 24, 2018 1:42 PM To: arendst/Sonoff-Tasmota Sonoff-Tasmota@noreply.github.com Cc: GasTurbineMan rglokey@gmail.com; Author author@noreply.github.com Subject: Re: [arendst/Sonoff-Tasmota] Sonoff Basic - Tasmota 5.14a - Alexa (#2814)
Just a few hints: Use DHCP it is more elegant and handling is easier Disable mDNS. It makes somtimes troubles If not using Home Assistant disable it Do you have enabled Hue emulation in web interface. In config it is enabled but not activated Give every device a unique friendly name1 (menu configure other) This is the name you call Alexa tu turn on off
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/2814#issuecomment-391818388 , or mute the thread https://github.com/notifications/unsubscribe-auth/AlsMjOYvKd24gkq9oY4ge6BvU3pVgxw0ks5t1v73gaJpZM4UMKAQ . https://github.com/notifications/beacon/AlsMjOHKNCcczakLnGwCq9KbsVU1mK2jks5t1v73gaJpZM4UMKAQ.gif
Reading a bit more on the net, everything I find says that I do not have to do anything special on Alexa with regards to having to add a new skill. (ie Hue or Wemo skill). Says the emulation takes care of that need.
So I guess I just need to know what you mean when you say I need to activate the emulation on my sonoff.
From: Jason2866 notifications@github.com Sent: Thursday, May 24, 2018 1:42 PM To: arendst/Sonoff-Tasmota Sonoff-Tasmota@noreply.github.com Cc: GasTurbineMan rglokey@gmail.com; Author author@noreply.github.com Subject: Re: [arendst/Sonoff-Tasmota] Sonoff Basic - Tasmota 5.14a - Alexa (#2814)
Just a few hints: Use DHCP it is more elegant and handling is easier Disable mDNS. It makes somtimes troubles If not using Home Assistant disable it Do you have enabled Hue emulation in web interface. In config it is enabled but not activated Give every device a unique friendly name1 (menu configure other) This is the name you call Alexa tu turn on off
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/2814#issuecomment-391818388 , or mute the thread https://github.com/notifications/unsubscribe-auth/AlsMjOYvKd24gkq9oY4ge6BvU3pVgxw0ks5t1v73gaJpZM4UMKAQ . https://github.com/notifications/beacon/AlsMjOHKNCcczakLnGwCq9KbsVU1mK2jks5t1v73gaJpZM4UMKAQ.gif
In your userconfig.h you have not selected an Emulation. This is my wording for activated.
This can be done later in the Web Interface. But it has to be done, with your userconfig.h Hue Emulation is the better choice...
I just wanted to follow up and let you know everything is working now with Alexa and Tasmota. Initially, our “Alexa” device was just our FireHD tablets, and while they were able to detect my “Smart Life” devices, they would not detect the Sonoffs. Today I installed an Echo Dot and it detected all of the Tasmota Sonoffs with Hue enabled.
Thanks for your guidance on helping me get my user_config.h file set up correctly.
I will mark this topic as closed.
From: Jason2866 notifications@github.com Sent: Friday, May 25, 2018 1:01 PM To: arendst/Sonoff-Tasmota Sonoff-Tasmota@noreply.github.com Cc: GasTurbineMan rglokey@gmail.com; Author author@noreply.github.com Subject: Re: [arendst/Sonoff-Tasmota] Sonoff Basic - Tasmota 5.14a - Alexa (#2814)
In your userconfig.h you have not selected an Emulation. This is my wording for activated.
This can be done later in the Web Interface. But it has to be done, with your userconfig.h https://user-images.githubusercontent.com/24528715/40559159-19352122-6056-11e8-8411-9fb738041a4d.png Hue Emulation is the better choice...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/2814#issuecomment-392135542 , or mute the thread https://github.com/notifications/unsubscribe-auth/AlsMjMxp8TxT3wumGaR_Os5Yb6m-TKkFks5t2EbJgaJpZM4UMKAQ . https://github.com/notifications/beacon/AlsMjBBl97F74KvbL1gtYZzy_AbTzvsZks5t2EbJgaJpZM4UMKAQ.gif
This is a great support group.
hi which is the correct command to turn on or off "hue emulated" devices? If i say "alexa accendi alza" or "alexa accendi abbassa" (italian for: alexa, turn on ALZA, or alexa, turn on ABBASSA, which are the names of the 2 relays in a sonoff dual r2) she says these commands are not available in the device...
Make sure these boxes are checked [x] before submitting your issue - Thank you!
status 0
:07:11:34 CMD: status 0 07:11:34 MQT: stat/sonoff/STATUS = {"Status":{"Module":1,"FriendlyName":["Living Room Ceiling Fans"],"Topic":"sonoff","ButtonTopic":"0","Power":1,"PowerOnState":3,"LedState":0,"SaveData":1,"SaveState":1,"ButtonRetain":1,"PowerRetain":1}} 07:11:34 MQT: stat/sonoff/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T23:48:55","StartupUTC":"2018-05-23T12:22:39","Sleep":0,"BootCount":17,"SaveCount":183,"SaveAddress":"F5000"}} 07:11:34 MQT: stat/sonoff/STATUS2 = {"StatusFWR":{"Version":"5.14.0a","BuildDateTime":"2018-05-21T04:38:05","Boot":6,"Core":"2_30","SDK":"1.5.3(aec24ac9)"}} 07:11:34 MQT: stat/sonoff/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Wind",""],"TelePeriod":300,"SetOption":["000080E9","55A18000"]}} 07:11:34 MQT: stat/sonoff/STATUS4 = {"StatusMEM":{"ProgramSize":499,"Free":504,"Heap":19,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3,"Features":["00000809","0F402794","14000000","01021790","00000000"]}} 07:11:34 MQT: stat/sonoff/STATUS5 = {"StatusNET":{"Hostname":"sonoff-4930","IPAddress":"xxx.xxx.xxx.xxx","Gateway":"xxx.xxx.xxx.xxx","Subnetmask":"255.255.255.0","DNSServer":"xxx.xxx.xxx.xxx","Mac":"DC:4F:22:2B:B5:92","Webserver":2,"WifiConfig":3}} 07:11:34 MQT: stat/sonoff/STATUS6 = {"StatusMQT":{"MqttHost":"xxx.xxx.xxx.xxx","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_2BB342","MqttUser":"user","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}} 07:11:34 MQT: stat/sonoff/STATUS7 = {"StatusTIM":{"UTC":"Thu May 24 12:11:34 2018","Local":"Thu May 24 07:11:34 2018","StartDST":"Sun Mar 25 02:00:00 2018","EndDST":"Sun Oct 28 03:00:00 2018","Timezone":99,"Sunrise":"06:15","Sunset":"20:30"}} 07:11:34 MQT: stat/sonoff/STATUS10 = {"StatusSNS":{"Time":"2018-05-24T07:11:34","Switch1":"OFF"}} 07:11:34 MQT: stat/sonoff/STATUS11 = {"StatusSTS":{"Time":"2018-05-24T07:11:34","Uptime":"0T23:48:55","Vcc":3.145,"POWER":"ON","Wifi":{"AP":1,"SSId":"Wind","RSSI":100,"APMac":"1C:B7:2D:C8:31:C0"}}} 07:12:25 MQT: tele/sonoff/STATE = {"Time":"2018-05-24T07:12:25","Uptime":"0T23:49:46","Vcc":3.143,"POWER":"ON","Wifi":{"AP":1,"SSId":"Wind","RSSI":100,"APMac":"1C:B7:2D:C8:31:C0"}}
Have posted this issue on a couple of other supports sites (one listed in above checklist) but not getting much help. I am trying to get Alexa to recognize my Tasmota 5.14a flashed Sonoff Basics. I have some emulating WeMo and some emulating Hue just to see if it will pick up either of them. I have Smart Home skill enabled in Alexa and it picked up some stock Smart Life devices - they work as expected. But will not pick up any of my emulated devices. I tried enabling the WeMo skill in Alexa, but since I do not have any stock WeMo devices in my network, nor do I have a WeMo account to link to, I could not complete adding the skill.
Any instructions would be appreciated. Thanks.
Also, in my Status 0 print out above, I edited some information for privacy. Each of my Sonoff devices have a unique topic.
(Please, remember to close the issue when the problem has been addressed)