[90] MQTT Support

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
matteos1
Posts: 70
Joined: Monday 08 May 2017 17:29
Target OS: -
Domoticz version:
Contact:

Smappee MQTT Support

Post by matteos1 » Wednesday 16 May 2018 12:21

good morning, I have a problem for the management of smappee. https://www.smappee.com/eu_it/home.
recently smappee has changed the way to manage its switches using the mqtt protocol.
I attach the files that the service has sent to me.
somebody would be able to create a script to manage the switches using the mqtt protocol and how to implement it in domoticz?
Smappee local MQTT topics - 20180209 (1).pdf
(23 KiB) Downloaded 37 times
MQTT broker configuration on Smappee Plus Pro (1).pdf
Attachments
MQTT broker configuration on Smappee Plus Pro (1).pdf
(190.71 KiB) Downloaded 44 times

jimbo213Mo
Posts: 8
Joined: Friday 26 October 2018 21:15
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: United States
Contact:

Re: MQTT Support

Post by jimbo213Mo » Monday 29 October 2018 19:41

Hello - I'm a newbie to Domoticz [my son is the teckie who set it up]
In the LOG I see these lines:

2018-10-29 12:25:46.885 MQTT: Topic: domoticz/in, Message: {"idx":4,"nvalue":0,"svalue":"-10.1"}
2018-10-29 12:28:46.295 MQTT: Topic: domoticz/in, Message: {"idx":2,"nvalue":0,"svalue":"-21.2"}

How do I tell WHAT EVENT is issuing them? [my son doesn't know either] ??
How do I tell which DEVICE is :2 and :4 ??

I've scanned the wiki and can't figure it out.
Thanks, Jim

SweetPants
Posts: 2398
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10267
Location: The Netherlands
Contact:

Re: [90] MQTT Support

Post by SweetPants » Tuesday 30 October 2018 15:28

In the device list (Settings->Devices) you can see the device index (Idx). This matches to the idx in your MQTT messages. Also watch the log of domoticz
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

jimbo213Mo
Posts: 8
Joined: Friday 26 October 2018 21:15
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: United States
Contact:

Re: [90] MQTT Support

Post by jimbo213Mo » Tuesday 30 October 2018 21:30

@SweetPants
Thanks ... here's what I have from Setup > Devices

2 deepfreezer 14052 1 deep-freezer Temp LaCrosse TX3 -4.8 F - - Set Unused Rename Device Log 2018-10-30 14:16:45
4 garagefreezer 14054 1 garage-freezer-temp Temp LaCrosse TX3 10.8 F - - Set Unused Rename Device Log 2018-10-30 14:19:53

and from the logfile:

2018-10-30 14:16:45.255 MQTT: Topic: domoticz/in, Message: {"idx":2,"nvalue":0,"svalue":"-20.5"}
2018-10-30 14:19:53.875 MQTT: Topic: domoticz/in, Message: {"idx":4,"nvalue":0,"svalue":"-11.8"}

So that SOLVES the mystery of what IDX refers to - thanks so much.
QUESTION - The nvalue and svalue do not match the temperature shown in devices. Any idea why not?

Thanks in advance, Jim

SweetPants
Posts: 2398
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10267
Location: The Netherlands
Contact:

Re: [90] MQTT Support

Post by SweetPants » Wednesday 31 October 2018 9:37

jimbo213Mo wrote:
Tuesday 30 October 2018 21:30
QUESTION - The nvalue and svalue do not match the temperature shown in devices. Any idea why not?
For Temp devices the nvalue( numeric value) is always 0, the svalue (string value) should reflect your device temp. Maybe Fahrenheit to Celcius conversion? You can set that under Settings->Meters/Counters. Default is Cecius.
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

jimbo213Mo
Posts: 8
Joined: Friday 26 October 2018 21:15
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: United States
Contact:

Re: [90] MQTT Support

Post by jimbo213Mo » Wednesday 31 October 2018 17:13

yes that's it ... thanks
-18C = -4F

in settings > meters/counters I have
Meter/Counter Setup
Temperature:
Display: Fahrenheit
Degree Days (Base Temperature): 18.0


There are three [3] other mentions of the garage-freezer
-- setup > device = shows Fahrenheit, type = TEMP, sub-type = LaCrosse TX3
-- temperature > garagefreezer > notifications = shows Fahrenheit

The third place [below] I can't get the TYPE field to show TEMP which would match the device.
TEMP is not in the dropdown !!

Does this assist you in helping me get the notification svalue converted from C to F?

Thanks for sticking with me
Jim
Attachments
GF setup-Hardware.png
GF setup-Hardware.png (13.74 KiB) Viewed 103 times

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests