Merry XMAS to those celebrating that.
- Platform information:
- Win10, 64bit, 16Gb, 120Gb ssd
- ESPHome downloaded 3 days ago
- openjdk version “184.108.40.206” 2020-11-04 LTS
- openHAB version:3.0.0
I created ESP code with ESPHome and this yaml file:
esphome: name: syd_gavl_lys platform: ESP8266 board: esp01
'# Optional manual IP
'# Enable fallback hotspot (captive portal) in case wifi connection fails
- platform: gpio
'# Enable logging
'# Enable Home Assistant API
As indicated above I have a MQTT running at a static address (192.168.2.4) which gives this MQTT trace:
“sw_version”:“esphome v1.15.3 Dec 22 2020, 21:56:00”,
Posting commands like
mosquitto_pub -t ‘syd_gavl_lys/switch/sydgavlillumination/command’ -m on
or “off” makes the relay switch. Check
Following the tutorial Openhab tutorial I got a model created:
with the “SydGavlLys” auto discovered
To me this looks reasonable:
although I wonder how it knows which command to send in order to operate the relay (the mqtt command above with the “on” or “off” payload.
(Excuse the mix of Danish and English)
Just above the picture above, a toggle button is shown. I’d assume operating that one should be visible in the MQTT trace. but nothing happens…
I probably miss some/a lot of understanding, (this is after all my first attempt at OH) and some configuration.
As I stated in my first post I have not fully grasped the vocabulary/concepts/naming.
E.G I still wonder why the MQTT broker does not contain the IP/PORT/USR/PWD etc configuration. That showed up at (in my understanding) some random place but then again. The auto-discover worked, that is running
Should anyone get bored during X-mas and read this so far, I’d definitely appreciate a kick in my behind, with a manual reference that I must re-read and understand.
Is there a debug/dry run method/log I could exersize/inspect to understand which commands OH is trying to send?
Enjoy the holiday season and stay safe.