Ahah! thanks @kidmock, it works, I appreciate it! This is so satisfying to my family when I ask to turn everything OFF, when I see that anything has turned on, except for my toys…
I also had a typo in mqtt section of configuration.yaml here’s what I have added in that works, in configuration.yaml
This is quasi-working for AEP too. I think they are testing because earlier today I was only getting some polling_mode topics. Then I started getting three variations of the /summation/minute topics and then eventually the instant demand topics. While I’m typing this the metering all stopped and came back. It’s a bit unreliable right now but I’ll leave it up and see if it stabilizes.
Also, for the mosquito.conf file, I would recommend setting topic to # in 0 and not both. I don’t think we should be publishing all of our topics to their broker. I ended up sending their broker a few retain clears because my initial config published all my topics to their broker and it retained the ones flagged retain.
ah! I should actually read the posts and not skim them thank you for taking the time to reply - my bad. instantaneous works now. I opted for the crontab entry.
Just another point on the bridge configuration and crontab. With the mosquitto bridge configured to forward traffic in both directions with:
topic # both 0
I was getting a lot of duplicate MQTT messages (using ESPHome for a bunch of sensors and actuators). It seems that the Energy Bridge was reflecting the traffic back to mosquitto for some reason. To fix this I set the mosquitto configuration to just explicitly bridge the topics I need in the input direction with:
topic event/metering/# in 0
Then to keep the data coming I am sending the keep alive messages directly to the broker on the Energy Bridge device with this crontab entry:
This setup has been working well for a while. The only downside I see is that the Energy Bridge IP address and credentials need to be maintained in two places, but I’ve nailed it to a specific address in my router so that is no issue. Anyone see other reasons why this setup should not be used?
That likely means its not listening on port 2883. Mine is still working as of this reply. Maybe reboot the bridge?
i noticed the instantaneous_demand topic is available at “event/metering/instantaneous_demand” and “remote/event/metering/instantaneous_demand” but you are not even getting connected to be able to receive published topics.
Try connecting with the app, is the phone app still working with the bridge? If not, something else going on.
Does this get you anything? subscribe to all messages. assuming mosquitto is working, and the ip is correct (check router if it ended up at a different address).
I don’t think its credentials if you are getting a connection refused. Try a basic test with telnet to see if the port is listening. Here is a good and failed example from a linux host. Use your bridge’s ip.
$ telnet 192.168.10.25 2883
Trying 192.168.10.25...
Connected to 192.168.10.25.
Escape character is '^]'.
^]
telnet> close
Connection closed.
$ telnet 192.168.10.25 2884
Trying 192.168.10.25...
telnet: Unable to connect to remote host: Connection refused
FYI, for anyone else having problems. I have an AEP Ohio (Powerley) Energy Bridge v2.
I was finally able to connect on port 1883 (with username and password above) and am now seeing multiple topics.
event/metering/summation/minute shows what appears to be the total usage in summary and is updated every minute automatically (no need to send a keep alive message)
event/metering/instantaneous_demand shows the instantaneous demand as discussed, it requires a message sent to request/is_app_open every so often to keep the topic updates alive.
Hi I’m a noobie to this MQtt stuff, but have been using Hassio on my NUC -(Debian with Docker) for about 6 months very successfully.
I just received my DTE Energy Bridge and want to try to pull data from it as a sensor in HA.
I’ve tried to follow this thread but it gets confusing since I’m not familiar with MQTT other than I have added the Mosquito broker add-on in. Some of the posts sound like I don’t need a “local” broker or am I just confused?
Can one of you more experienced users give a set of instructions to possibly get this up and running?
It would be much appreciated.
So… MQTT is message queue protocol that a lot of devices use. Devices publish their information to the queue and stuff like HA subscribe to that queue to read state changes and the like.
Mosquitto is software that implements MQTT.
That being said if you have no devices that are publishing to YOUR Mosquitto server. You don’t need Mosquitto. I like many others use owntracks and sonoff devices and the like that publish to my own private MQTT server (mosquitto).
HA can’t subscribe to multiple MQTT servers, so you may need to aggregate the data to a single source. This is the majority of the detail spewed in this thread.
Now, if you are ONLY using the DTE Energy bridge… You don’t need to go through the hassle. You just configure the mqtt Server as the energy bridge itself.
I found this thread back when people hadn’t figured out a replacement for http://192.168.0.xx:8888/zigbee/se/instantaneousdemand. I’m back here and trying to make sense of the new findings. Previously I sent a simple API request to that URL to get the current load. Is there an HTTP equivalent for
I am trying to connect with telnet to my Bridge’s IP on port 1883 or 2883, and getting “connection refused” in both cases, before I get to try any credentials. Port 2883 takes way longer to fail, though, so there may be something there. Port 8888 still responds to web with the same pages as before, so I know that it is online at the same address.
Edit: I ran Angry IP scanner against that IP for every possible port (1-65535, took nearly 4 hours) and found these open ports: 22, 53, 2883, 5355, 8888
Fair. I have never heard of MQTT before. How can I set that up? I’ve tried a bunch of different programs that claim to be for MQTT and entered in the IP, port, credentials, topic, and never get anywhere. I am mostly looking for something command-line so I can monitor the power usage with my network monitor.