Comments (6)
Hi,
- Which sketch are you using?
- What's your configuration in HA?
- Can you show me your logs (ESP8266)?
Thanks,
Sam
from open-home-automation.
Hi Sam
Thanks for you quick reply.
I am using following sketch for ESP6288.
[https://github.com/mertenats/Open-Home-Automation/blob/master/ha_mqtt_light/ha_mqtt_light.ino]
HA configuration.
homeassistant:
# Name of the location where Home Assistant is running
name: home
# Location required to calculate the time the sun rises and sets
latitude: 49.0997
longitude: -122.6526
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 9
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Vancouver
# Show links to resources in log and frontend
#introduction:
mqtt:
broker: 192.168.0.3
port: 1883
client_id: home-assistant-1
username: xxx
password: xxx
light:
platform: mqtt
name: Office light'
state_topic: 'office/light1/status'
command_topic: 'office/light1/switch'
optimistic: false
# Enables the frontend
frontend:
http:
# Uncomment this to add a password (recommended!)
api_password: test123
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
# Checks for available updates
updater:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time.
history:
# View all events in a logbook
logbook:
# Track the sun
sun:
# Weather Prediction
# Text to speech
tts:
platform: google
ESP8266 log
INFO: Connecting to mywifi
INFO: wifi connected.
INFO: IP address 192.168.0.2
INFO: Attempting MQTT Connection... INFO: connected
INFO: Attempting MQTT Connection... INFO: connected
INFO: Attempting MQTT Connection... INFO: connected
INFO: Attempting MQTT Connection... INFO: connected
then i just keep generating same log.
Thanks
Tej
from open-home-automation.
Hi,
Your configuration seems to be ok, but your logs shows that something is going wrong because the connection to the MQTT broker is probably lost. Have some problems with your broker? I had this kind of problem with it in the past (Mosquitto, installed with the HA image).
from open-home-automation.
Hi
My mqtt seems working fine, as i have tested some other examples with dht22 using same configuration for mosquitto.
I want to show to my esp sketch(mqtt section)
const PROGMEM char* MQTT_CLIENT_ID = "home-assistant-1";
const PROGMEM char* MQTT_SERVER_IP = "192.168.0.3";
const PROGMEM uint16_t MQTT_SERVER_PORT = 1883;
const PROGMEM char* MQTT_USER = "xxx";
const PROGMEM char* MQTT_PASSWORD = "xxx";
is that fine or do i need to modify some other section of sketch?
Thanks
from open-home-automation.
Hi
I just figured out that i was putting wrong mqtt client id. I chnaged that now everything looks fine.
My problem is solved.
Thanks
from open-home-automation.
Thanks
from open-home-automation.
Related Issues (20)
- How to control many leds? HOT 1
- Controlling 4 lights HOT 2
- Add RGB LED to MultiSensor sketch HOT 1
- Add TEMT6000 Light Sensor support HOT 3
- Add SHT30 Temp/Humidity Sensor support HOT 3
- Add BME280 Digital Sensor Temperature Humidity Barometric Pressure support HOT 2
- Add DS18B20 Digital Temperature Sensor support
- Help: binary sensor door/button VS multi sensor door/button HOT 3
- Support for inexpensive (US$ 0.5) radar sensor RCWL 0516 HOT 3
- Can't compile the newest version from multisensor HOT 3
- Help with ha_mqtt_binary_sensor_ble_scanner HOT 1
- Extent amount of buttons / extent functions of buttons
- Help with ha_mqtt_sensor_dht22 HOT 1
- NFC scanner question
- 7 bytes NFC tag problem
- Use interupt pin in PIR code
- Problem flashing Arilux with ESP8285
- Multiple tags error
- Are you help me with project ha_mqtt_light please
- ha_mqtt_sensor_dht22.ino ArduinoJson 5 to ArduinoJson 6 upgrade
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-home-automation.