User Tools

Site Tools


supported_hardware:mqtt:espresence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

supported_hardware:mqtt:espresence [2023/01/29 17:37]
James Sentman created
supported_hardware:mqtt:espresence [2023/01/29 17:55] (current)
James Sentman added sensor setup information
Line 91: Line 91:
 I have only experimented with them on a rather fundamental level but it appears that they all get a more standard, non-json entry and topic in the MQTT server. This can be added to XTension via one of the top level MQTT Units as described on the [[supported_hardware:​mqtt|MQTT Client Plugin]] page. I have only experimented with them on a rather fundamental level but it appears that they all get a more standard, non-json entry and topic in the MQTT server. This can be added to XTension via one of the top level MQTT Units as described on the [[supported_hardware:​mqtt|MQTT Client Plugin]] page.
  
-To read the +===Motion Sensing:​=== 
 + 
 +To read a connected pir motion sensor ​the topic path seems standardized to “espresense/​rooms/​{your room name}/​pir” so for the unit in my lab named “lab” the topic would be: “espresense/​rooms/​lab/​pir” The data payload seems to be either “ON” or “OFF”. 
 + 
 +Create a new Enumerated Unit on the MQTT interface. Set it’s enumerations to “OFF,​ON” and it’s topic path to “espresense/​rooms/​lab/​pir” Note that ESPresense is spelled with an s instead of a c as you will type if you’re not thinking. I can’t tell you how long it took me to figure out why that wasn’t linking to the correct topic! So, esprsense, like you’re sensing something, and not espresence as in something is present. Also check the “Receive Only” and “Ignore Clicks” checkboxes for the Unit so it will display properly as a Unit that cannot be controlled. Save the Unit and trigger the motion sensor to see if change state. 
 + 
 + 
 +===Temperature:​=== 
 + 
 +To read an attached temperature sensor it seems the topic path might be “espresense/​rooms/​{your room name}/​temperature” Create a new Numerical Unit on the MQTT interface. Check the “Dimmable” checkbox so it can hold a numerical value and not just on and off. Set the topic path to “espresense/​rooms/​lab/​temperature” but replace “lab” with your room name. Check the Receive Only and Ignore Clicks buttons here as well as this is not a 2 way device. Save the unit and wait for a temperature update and it will be displayed. You might not have to wait for a temperature update depending on it sending a retained message or not.  
 + 
 +===Humidity:​=== 
 +A Humidity sensor would work the same way as the temperature sensor but the topic path would be “espresense/​rooms/​{your room name}/​humidity” 
 + 
 + 
 +===Everything Else:=== 
 +After you setup a sensor on your ESPresense receiver visit the MQTT Explorer app as discussed on the main MQTT page to see exactly what it’s topic path are and how it’s data is sent. Choose the best unit type from whats available on the MQTT page. If there are any problems with any of that, or if any data is not easily receivable with that please send me examples of the payloads and as much information as possible about what you’re trying to do and I will make it work if at all possible.
  
 ----- -----
supported_hardware/mqtt/espresence.txt · Last modified: 2023/01/29 17:55 by James Sentman