arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.71k stars 4.72k forks source link

Sonoff Basic - Tasmota 5.14a - Alexa #2814

Closed GasTurbineMan closed 6 years ago

GasTurbineMan commented 6 years ago

Make sure these boxes are checked [x] before submitting your issue - Thank you!

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)

Jason2866 commented 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?

GasTurbineMan commented 6 years ago

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.

user_config.zip

GasTurbineMan commented 6 years ago

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

Jason2866 commented 6 years ago

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

Jason2866 commented 6 years ago

`/* 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/. */

ifndef _USER_CONFIGH

define _USER_CONFIGH

/*****\

//#define USE_CONFIG_OVERRIDE // Uncomment to use user_config_override.h file. See README.md

/*****\

// -- Master parameter control --------------------

define CFG_HOLDER 0x20161209 // [Reset 1] Change this value to load SECTION1 configuration parameters to flash default ...209

// -- Project -------------------------------------

define PROJECT "sonoff" // PROJECT is used as the default topic delimiter

define MODULE SONOFF_BASIC // [Module] Select default model from sonoff_template.h (Should not be changed)

define SAVE_DATA 1 // [SaveData] Save changed parameters to Flash (0 = disable, 1 - 3600 seconds)

define SAVE_STATE 1 // [SetOption0] Save changed power state to Flash (0 = disable, 1 = enable)

// -- Wifi ----------------------------------------

define WIFI_IP_ADDRESS "xxx.xxx.xxx.xxx" // [IpAddress1] Set to 0.0.0.0 for using DHCP or IP address

define WIFI_GATEWAY "xxx.xxx.xxx.xxx" // [IpAddress2] If not using DHCP set Gateway IP address

define WIFI_SUBNETMASK "255.255.255.0" // [IpAddress3] If not using DHCP set Network mask

define WIFI_DNS "xxx.xxx.xxx.xxx" // [IpAddress4] If not using DHCP set DNS IP address (might be equal to WIFI_GATEWAY)

define STA_SSID1 "SSID" // [Ssid1] Wifi SSID

define STA_PASS1 "wifi password" // [Password1] Wifi password

define STA_SSID2 "" // [Ssid2] Optional alternate AP Wifi SSID

define STA_PASS2 "" // [Password2] Optional alternate AP Wifi password

define WIFI_CONFIG_TOOL WIFI_WPSCONFIG // [WifiConfig] Default tool if wifi fails to connect

                                             //   (WIFI_RESTART, WIFI_SMARTCONFIG, WIFI_MANAGER, WIFI_WPSCONFIG, WIFI_RETRY, WIFI_WAIT)

// -- Syslog --------------------------------------

define SYS_LOG_HOST "" // [LogHost] (Linux) syslog host

define SYS_LOG_PORT 514 // [LogPort] default syslog UDP port

define SYS_LOG_LEVEL LOG_LEVEL_NONE // [SysLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE)

define SERIAL_LOG_LEVEL LOG_LEVEL_INFO // [SerialLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE)

define WEB_LOG_LEVEL LOG_LEVEL_INFO // [WebLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE)

// -- Ota -----------------------------------------

define OTA_URL "http://sonoff.maddox.co.uk/tasmota/sonoff.bin" // [OtaUrl]

// -- MQTT ----------------------------------------

define MQTT_USE 1 // [SetOption3] Select default MQTT use (0 = Off, 1 = On)

define MQTT_HOST "my mqtt host ip" // [MqttHost]

define MQTT_FINGERPRINT1 "A5 02 FF 13 99 9F 8B 39 8E F1 83 4F 11 23 65 0B 32 36 FC 07" // [MqttFingerprint1]

define MQTT_FINGERPRINT2 "A5 02 FF 13 99 9F 8B 39 8E F1 83 4F 11 23 65 0B 32 36 FC 07" // [MqttFingerprint2]

define MQTT_PORT 1883 // [MqttPort] MQTT port (10123 on CloudMQTT)

define MQTT_USER "my mqtt user" // [MqttUser] MQTT user

define MQTT_PASS "my mqtt pw" // [MqttPassword] MQTT password

define MQTT_BUTTON_RETAIN 1 // [ButtonRetain] Button may send retain flag (0 = off, 1 = on)

define MQTT_POWER_RETAIN 1 // [PowerRetain] Power status message may send retain flag (0 = off, 1 = on)

define MQTT_SWITCH_RETAIN 1 // [SwitchRetain] Switch may send retain flag (0 = off, 1 = on)

define MQTT_STATUS_OFF "OFF" // [StateText1] Command or Status result when turned off (needs to be a string like "0" or "Off")

define MQTT_STATUS_ON "ON" // [StateText2] Command or Status result when turned on (needs to be a string like "1" or "On")

define MQTT_CMND_TOGGLE "TOGGLE" // [StateText3] Command to send when toggling (needs to be a string like "2" or "Toggle")

define MQTT_CMND_HOLD "HOLD" // [StateText4] Command to send when button is kept down for over KEY_HOLD_TIME * 0.1 seconds (needs to be a string like "HOLD")

// -- MQTT topics --------------------------------- // Example "tasmota/bedroom/%topic%/%prefix%/" up to 80 characers

define MQTT_FULLTOPIC "%prefix%/%topic%/" // [FullTopic] Subscribe and Publish full topic name - Legacy topic

// %prefix% token options

define SUB_PREFIX "cmnd" // [Prefix1] Sonoff devices subscribe to %prefix%/%topic% being SUB_PREFIX/MQTT_TOPIC and SUB_PREFIX/MQTT_GRPTOPIC

define PUB_PREFIX "stat" // [Prefix2] Sonoff devices publish to %prefix%/%topic% being PUB_PREFIX/MQTT_TOPIC

define PUB_PREFIX2 "tele" // [Prefix3] Sonoff devices publish telemetry data to %prefix%/%topic% being PUB_PREFIX2/MQTT_TOPIC/UPTIME, POWER and TIME

                                             //   May be named the same as PUB_PREFIX

// %topic% token options (also ButtonTopic and SwitchTopic)

define MQTT_TOPIC PROJECT // [Topic] (unique) MQTT device topic

define MQTT_GRPTOPIC "sonoffs" // [GroupTopic] MQTT Group topic

define MQTT_CLIENTID "DVES%06X" // [MqttClient] Also fall back topic using Chip Id = last 6 characters of MAC address

// -- MQTT - Telemetry ----------------------------

define TELE_PERIOD 300 // [TelePeriod] Telemetry (0 = disable, 10 - 3600 seconds)

// -- MQTT - Domoticz -----------------------------

define DOMOTICZ_UPDATE_TIMER 0 // [DomoticzUpdateTimer] Send relay status (0 = disable, 1 - 3600 seconds)

// -- MQTT - Home Assistant Discovery -------------

define HOME_ASSISTANT_DISCOVERY_ENABLE 0 // [SetOption19] Home Assistant Discovery (0 = Disable, 1 = Enable)

// -- HTTP ----------------------------------------

define WEB_SERVER 2 // [WebServer] Web server (0 = Off, 1 = Start as User, 2 = Start as Admin)

define WEB_PASSWORD "" // [WebPassword] Web server Admin mode Password for WEB_USERNAME (empty string = Disable)

define FRIENDLY_NAME "Sonoff" // [FriendlyName] Friendlyname up to 32 characters used by webpages and Alexa

define EMULATION EMUL_NONE // [Emulation] Select Belkin WeMo (single relay/light) or Hue Bridge emulation (multi relay/light) (EMUL_NONE, EMUL_WEMO or EMUL_HUE)

// -- Time - Up to three NTP servers in your region

define NTP_SERVER1 "pool.ntp.org" // [NtpServer1] Select first NTP server by name or IP address (129.250.35.250)

define NTP_SERVER2 "nl.pool.ntp.org" // [NtpServer2] Select second NTP server by name or IP address (5.39.184.5)

define NTP_SERVER3 "0.nl.pool.ntp.org" // [NtpServer3] Select third NTP server by name or IP address (93.94.224.67)

// -- Time - Start Daylight Saving Time and timezone offset from UTC in minutes

define TIME_DST_HEMISPHERE North // [TimeDst] Hemisphere (0 or North, 1 or South)

define TIME_DST_WEEK Last // Week of month (0 or Last, 1 or First, 2 or Second, 3 or Third, 4 or Fourth)

define TIME_DST_DAY Sun // Day of week (1 or Sun, 2 or Mon, 3 or Tue, 4 or Wed, 5 or Thu, 6 or Fri, 7 or Sat)

define TIME_DST_MONTH Mar // Month (1 or Jan, 2 or Feb, 3 or Mar, 4 or Apr, 5 or May, 6 or Jun, 7 or Jul, 8 or Aug, 9 or Sep, 10 or Oct, 11 or Nov, 12 or Dec)

define TIME_DST_HOUR 2 // Hour (0 to 23)

define TIME_DST_OFFSET -300 // Offset from UTC in minutes (-780 to +780)

// -- Time - Start Standard Time and timezone offset from UTC in minutes

define TIME_STD_HEMISPHERE North // [TimeStd] Hemisphere (0 or North, 1 or South)

define TIME_STD_WEEK Last // Week of month (0 or Last, 1 or First, 2 or Second, 3 or Third, 4 or Fourth)

define TIME_STD_DAY Sun // Day of week (1 or Sun, 2 or Mon, 3 or Tue, 4 or Wed, 5 or Thu, 6 or Fri, 7 or Sat)

define TIME_STD_MONTH Oct // Month (1 or Jan, 2 or Feb, 3 or Mar, 4 or Apr, 5 or May, 6 or Jun, 7 or Jul, 8 or Aug, 9 or Sep, 10 or Oct, 11 or Nov, 12 or Dec)

define TIME_STD_HOUR 3 // Hour (0 to 23)

define TIME_STD_OFFSET -360 // Offset from UTC in minutes (-780 to +780)

// -- Location ------------------------------------

define LATITUDE 35.4867 // [Latitude] Your location to be used with sunrise and sunset

define LONGITUDE -96.6850 // [Longitude] Your location to be used with sunrise and sunset

// -- Application ---------------------------------

define APP_TIMEZONE 99 // [Timezone] +1 hour (Amsterdam) (-13 .. 14 = hours from UTC, 99 = use TIME_DST/TIME_STD)

define APP_LEDSTATE LED_POWER // [LedState] Function of led

                                             //   (LED_OFF, LED_POWER, LED_MQTTSUB, LED_POWER_MQTTSUB, LED_MQTTPUB, LED_POWER_MQTTPUB, LED_MQTT, LED_POWER_MQTT)

define APP_PULSETIME 0 // [PulseTime] Time in 0.1 Sec to turn off power for relay 1 (0 = disabled)

define APP_POWERON_STATE POWER_ALL_SAVED // [PowerOnState] Power On Relay state

                                             //   (POWER_ALL_OFF, POWER_ALL_ON, POWER_ALL_SAVED_TOGGLE, POWER_ALL_SAVED, POWER_ALL_ALWAYS_ON, POWER_ALL_OFF_PULSETIME_ON)

define APP_BLINKTIME 10 // [BlinkTime] Time in 0.1 Sec to blink/toggle power for relay 1

define APP_BLINKCOUNT 10 // [BlinkCount] Number of blinks (0 = 32000)

define APP_SLEEP 0 // [Sleep] Sleep time to lower energy consumption (0 = Off, 1 - 250 mSec)

define KEY_HOLD_TIME 40 // [SetOption32] Number of 0.1 seconds to hold Button or external Pushbutton before sending HOLD message

define SWITCH_MODE TOGGLE // [SwitchMode] TOGGLE, FOLLOW, FOLLOW_INV, PUSHBUTTON, PUSHBUTTON_INV, PUSHBUTTONHOLD, PUSHBUTTONHOLD_INV, PUSHBUTTON_TOGGLE (the wall switch state)

define WS2812_LEDS 30 // [Pixels] Number of WS2812 LEDs to start with (max is 512)

define TEMP_CONVERSION 0 // [SetOption8] Return temperature in (0 = Celsius or 1 = Fahrenheit)

define TEMP_RESOLUTION 1 // [TempRes] Maximum number of decimals (0 - 3) showing sensor Temperature

define HUMIDITY_RESOLUTION 1 // [HumRes] Maximum number of decimals (0 - 3) showing sensor Humidity

define PRESSURE_RESOLUTION 1 // [PressRes] Maximum number of decimals (0 - 3) showing sensor Pressure

define ENERGY_RESOLUTION 3 // [EnergyRes] Maximum number of decimals (0 - 5) showing energy usage in kWh

/*****\

//#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

/-------------------------------------------------------------------------------------------\

// -- MQTT ----------------------------------------

define MQTT_TELE_RETAIN 0 // Tele messages may send retain flag (0 = off, 1 = on)

// -- 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 -------------

define USE_HOME_ASSISTANT // Enable Home Assistant Discovery Support (+2k code)

define HOME_ASSISTANT_DISCOVERY_PREFIX "homeassistant" // Home Assistant discovery prefix

// -- 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 ----------------------------------------

define USE_WEBSERVER // Enable web server and wifi manager (+66k code, +8k mem)

define WEB_PORT 80 // Web server Port for User and Admin mode

define WEB_USERNAME "admin" // Web server Admin mode user name

define USE_EMULATION // Enable Belkin WeMo and Hue Bridge emulation for Alexa (+16k code, +2k mem)

// -- mDNS ----------------------------------------

define USE_DISCOVERY // Enable mDNS for the following services (+8k code, +0.3k mem)

define WEBSERVER_ADVERTISE // Provide access to webserver by name .local/

define MQTT_HOST_DISCOVERY // Find MQTT host server (overrides MQTT_HOST if found)

// -- Time ----------------------------------------

define USE_TIMERS // Add support for up to 16 timers (+2k2 code)

define USE_TIMERS_WEB // Add timer webpage support (+4k5 code)

define USE_SUNRISE // Add support for Sunrise and sunset tools (+16k)

#define SUNRISE_DAWN_ANGLE DAWN_NORMAL       // Select desired Dawn Angle from (DAWN_NORMAL, DAWN_CIVIL, DAWN_NAUTIC, DAWN_ASTRONOMIC)

// -- Rules ---------------------------------------

define USE_RULES // Add support for rules (+4k4 code)

// -- Internal Analog input -----------------------

define USE_ADC_VCC // Display Vcc in Power status. Disable for use as Analog input on selected devices

// -- 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_I2C // I2C using library wire (+10k code, 0k2 mem, 124 iram)

ifdef USE_I2C

define USE_SHT // Add I2C emulating code for SHT1X sensor (+1k4 code)

define USE_SHT3X // Add I2C code for SHT3x or SHTC3 sensor (+0k7 code)

define USE_HTU // Add I2C code for HTU21/SI7013/SI7020/SI7021 sensor (+1k5 code)

define USE_BMP // Add I2C code for BMP085/BMP180/BMP280/BME280 sensor (+4k code)

// #define USE_BME680 // Add additional support for BME680 sensor using Adafruit Sensor and BME680 libraries (+6k code)

define USE_SGP30 // Add I2C code for SGP30 sensor (+1k1 code)

define USE_BH1750 // Add I2C code for BH1750 sensor (+0k5 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)

define MGS_SENSOR_ADDR 0x04 // Default Mutichannel Gas sensor i2c address

endif // USE_I2C

// -- SPI sensors --------------------------------- //#define USE_SPI // SPI using default library

ifdef USE_SPI

endif // USE_SPI

// -- 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 // WS2812 Led string using library NeoPixelBus (+5k code, +1k mem, 232 iram) - Disable by //

define USE_WS2812_CTYPE NEO_GRB // WS2812 Color type (NEO_RGB, NEO_GRB, NEO_BRG, NEO_RBG, NEO_RGBW, NEO_GRBW)

// #define USE_WS2812_DMA // DMA supports only GPIO03 (= Serial RXD) (+1k mem). When USE_WS2812_DMA is enabled expect Exceptions on Pow

define USE_ARILUX_RF // Add support for Arilux RF remote controller (+0k8 code, 252 iram (non 2.3.0))

define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code)

/*****\

//#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)

/*****\

if defined(USE_MQTT_TLS) && defined(USE_WEBSERVER)

error "Select either USE_MQTT_TLS or USE_WEBSERVER as there is just not enough memory to play with"

endif

endif // _USER_CONFIGH

`

Jason2866 commented 6 years ago

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

GasTurbineMan commented 6 years ago

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.

GasTurbineMan commented 6 years ago

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.

GasTurbineMan commented 6 years ago

I appreciate you advice on user_config.h settings. Now more questions specific to getting Alexa to work:

  1. Which emulation do you recommend: Wemo or Hue?
  2. You commented that I have Hue emulation enabled, but not “activated”. How to I activate Hue emulation in Tasmota?
  3. On Alexa, what “skill” needs to be added? I would assume either Hue or Wemo, but I cannot add neither because I don’t have any of their devices which prevents me from creating an account to link the skill to.

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

GasTurbineMan commented 6 years ago

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

Jason2866 commented 6 years ago

In your userconfig.h you have not selected an Emulation. This is my wording for activated.

define EMULATION EMUL_NONE // [Emulation] Select Belkin WeMo (single relay/light) or Hue Bridge emulation (multi relay/light) (EMUL_NONE, EMUL_WEMO or EMUL_HUE)

This can be done later in the Web Interface. But it has to be done, with your userconfig.h screenshot_20180525-195552 Hue Emulation is the better choice...

GasTurbineMan commented 6 years ago

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.

define EMULATION EMUL_NONE // [Emulation] Select Belkin WeMo (single relay/light) or Hue Bridge emulation (multi relay/light) (EMUL_NONE, EMUL_WEMO or EMUL_HUE)

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

GasTurbineMan commented 6 years ago

This is a great support group.

fragolinux commented 5 years ago

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...