Installed Tasmota into S31 (Lite -has not energy monitoring)
Reset S31 and observed WiFi SSID of tasmota_xxx and connected to this SSID. Used browser to navigate to 192.168.4.1 (Tasmota page) and changed the AP1 SSID and AP1 to my local network values. Also changed Hostname to S31-113 to make identification easy. Clicked Save.
Restored Laptop SSID to local network. Looked in Router DHCP table to see what IP was assigned to the S31-113 device. In this case it was 192.168.0.211. Use browser to navigate to this IP. Selected Configuration option, selected Configure Module, Selected Save.
Returned to Configuration page and selected MQTT and entered the broker IP in Host text box. This was the IP of Homeseer in this case. Changed the Topic to be S31-113 and changed Full topic to remove prefix.
Selected Console and entered SetOption19 1 so that it will send info on topic homeasistant/.../config topic
Recognized that the topic being sent is S31-113 so when to HS mcsMQTT plugin, MQTT page, General tab and entered it on the Obsolete row with /# suffix
Observed on Association Tab and in HS Device Management that no S31-113 topics and devices exist.
Cycled power on S31 so the homeassistant/.../config topic is broadcast and mcsMQTT will recognize the topics for configuration when the S31 report them.
Observed in the Tasmota console that the homeassistant messages were delivered on power cycle.
Observed on Association Tab that S31 has reported after power cycle
Went to Tasmota Main page and used toggle button to change the relay from off to on so that a new MQTT message would be sent and HS device can be setup. Observed in HS that the power device existed and the state is ON
Went to Tasmota Configuration, Configure Logging and changed the reporting cycle from 300 seconds to 60 seconds so I do not need to wait 5 minutes for the energy devices to be created. This changes the update rate to every minute rather than every 5 minutes.
Observed in HS the devices created
Observed that no suffix existed on the sensor measurements. When to /deviceutility and Status Graphics tab of HS and added the Suffix and assured the decimal places was as desired.
Observed on HS Devices page the formatted sensor status
I had expected the suffix to have automatically been set by homeassistant discovery so looked at the message and saw it in the message so now need to see why "A" was not automatically done. I was using the HS3 plugin for this sequence.
I then repeated the steps above using the HS4 starting at the point where General Tab Obsolete S31-113/# was used to remove the devices created by the HS3 plugin. Reset the S31 and now observed the expected suffix. It means the HS3 plugin needs to be updated to get the suffix automatically. This update is at http://mcsSprinklers.com/mcsMQTT_5_14_3_1.zip
On the initial Module Configuration of the S31 I had neglected to press Save after selecting S31 so the devices was still configured as Sonoff Basic. This is why the initial attempt did not have the Energy devices created.
Reset S31 and observed WiFi SSID of tasmota_xxx and connected to this SSID. Used browser to navigate to 192.168.4.1 (Tasmota page) and changed the AP1 SSID and AP1 to my local network values. Also changed Hostname to S31-113 to make identification easy. Clicked Save.
Restored Laptop SSID to local network. Looked in Router DHCP table to see what IP was assigned to the S31-113 device. In this case it was 192.168.0.211. Use browser to navigate to this IP. Selected Configuration option, selected Configure Module, Selected Save.
Returned to Configuration page and selected MQTT and entered the broker IP in Host text box. This was the IP of Homeseer in this case. Changed the Topic to be S31-113 and changed Full topic to remove prefix.
Selected Console and entered SetOption19 1 so that it will send info on topic homeasistant/.../config topic
Recognized that the topic being sent is S31-113 so when to HS mcsMQTT plugin, MQTT page, General tab and entered it on the Obsolete row with /# suffix
Observed on Association Tab and in HS Device Management that no S31-113 topics and devices exist.
Cycled power on S31 so the homeassistant/.../config topic is broadcast and mcsMQTT will recognize the topics for configuration when the S31 report them.
Observed in the Tasmota console that the homeassistant messages were delivered on power cycle.
Observed on Association Tab that S31 has reported after power cycle
Went to Tasmota Main page and used toggle button to change the relay from off to on so that a new MQTT message would be sent and HS device can be setup. Observed in HS that the power device existed and the state is ON
Went to Tasmota Configuration, Configure Logging and changed the reporting cycle from 300 seconds to 60 seconds so I do not need to wait 5 minutes for the energy devices to be created. This changes the update rate to every minute rather than every 5 minutes.
Observed in HS the devices created
Observed that no suffix existed on the sensor measurements. When to /deviceutility and Status Graphics tab of HS and added the Suffix and assured the decimal places was as desired.
Observed on HS Devices page the formatted sensor status
I had expected the suffix to have automatically been set by homeassistant discovery so looked at the message and saw it in the message so now need to see why "A" was not automatically done. I was using the HS3 plugin for this sequence.
Code:
homeassistant/sensor/1B8996_ENERGY_Current/config {"name":"Tasmota ENERGY Current","stat_t":"S31-113/SENSOR","avty_t":"S31-113/LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id": "1B8996_ENERGY_Current","dev":{"ids":["1B8996"]},[COLOR=#c0392b][B]"unit_of_meas":"A"[/B][/COLOR],"ic":"mdi:alpha-a-circle-outline","frc_upd":true,"val_tpl":"{{value_json['ENERGY']['Current']}}"} 1
On the initial Module Configuration of the S31 I had neglected to press Save after selecting S31 so the devices was still configured as Sonoff Basic. This is why the initial attempt did not have the Energy devices created.
Comment