Search found 11 matches

by JanJelle
Wednesday 30 January 2019 22:06
Forum: DIY Hardware and Protocols
Topic: Learn light/switch over MQTT [SOLVED]
Replies: 5
Views: 2941

Re: Learn light/switch over MQTT

Alright thanks for the replies.

making a virtual dummy and use the idx in the arduino script is what I am doing now and works fine. just wondering if I could write a function to use the learn function since that would be pretty neat.

thanks again topic closed :)
by JanJelle
Monday 28 January 2019 21:34
Forum: DIY Hardware and Protocols
Topic: Learn light/switch over MQTT [SOLVED]
Replies: 5
Views: 2941

Re: Learn light/switch over MQTT

Hi, Thanks for the response. I checked the "accept new hardware" setting, good point, but it was enabled. sending an unused IDX message to the MQTT server doesn't add any device, unfortunately... however since sending a "used" IDX message does trigger the learn switch function, but it says that the ...
by JanJelle
Monday 28 January 2019 20:18
Forum: DIY Hardware and Protocols
Topic: Learn light/switch over MQTT [SOLVED]
Replies: 5
Views: 2941

Learn light/switch over MQTT [SOLVED]

Good evening, Could anyone explain me how the "learn light/switch" function works when communicating with MQTT gateway? I have an arduino connected and functional over the MQTT protocol, and I can dim a light with the Domoticz interface and turn it on/off by a hardware switch as well. when I played ...
by JanJelle
Thursday 10 January 2019 22:33
Forum: DIY Hardware and Protocols
Topic: MQTT domoticz/out topic on arduino
Replies: 11
Views: 7633

Re: MQTT domoticz/out topic on arduino

Hi, Ok I got it running. I made the mistake of asigning the IP address of the arduino in the gateway, but I also had a second gateway with the localhost IP which is the raspberry that runs the server. obviously I shouldn't have put the MQTT gateway for the arduino in there since that is not the ...
by JanJelle
Thursday 10 January 2019 10:13
Forum: DIY Hardware and Protocols
Topic: MQTT domoticz/out topic on arduino
Replies: 11
Views: 7633

Re: MQTT domoticz/out topic on arduino

CODE: SELECT ALL mosquitto_sub -F "%U - %t - %p" -v -h <brokerIP> -p 1883 -t '#' Alright I will give this a go to see if the domoticz console actually sends out the MQTT message because I am suspecting that part. furthermore there are no settings required for outgoing messages? timeout on the MQTT ...
by JanJelle
Thursday 10 January 2019 9:32
Forum: DIY Hardware and Protocols
Topic: MQTT domoticz/out topic on arduino
Replies: 11
Views: 7633

Re: MQTT domoticz/out topic on arduino

If you set your mqtt gateway over LAN settings in domoticz to flat (out) it will publish switch events to domoticz/out This goes for any switch? virtual switches as well? is there any way to see the message as the MQTT message in the log so I can be sure that the topic is correct? Is there also a ...
by JanJelle
Thursday 10 January 2019 7:07
Forum: DIY Hardware and Protocols
Topic: MQTT domoticz/out topic on arduino
Replies: 11
Views: 7633

Re: MQTT domoticz/out topic on arduino

Hi, My broker is on a raspberry pi in the network. the arduino is also in the network. I have added the mqtt gateway over LAN and I have communication between the 2. Arduino publishes a temperature and domoticz receives this in a the log correctly and puts it in a virtual temperature gauge. so far ...
by JanJelle
Wednesday 09 January 2019 22:17
Forum: DIY Hardware and Protocols
Topic: MQTT domoticz/out topic on arduino
Replies: 11
Views: 7633

MQTT domoticz/out topic on arduino

Hi, I am facing an issue with receiving a message on the arduino from the Domoticz server. The arduino is reading the topics that it publishes itself fine, and also reads topics published directly from the raspberry pi mosquitto server. however it doesn't read any switch statements. I have now made ...
by JanJelle
Tuesday 08 January 2019 18:23
Forum: DIY Hardware and Protocols
Topic: General I/O control of arduino
Replies: 4
Views: 4170

Re: General I/O control of arduino

Ok I was not aware of the log, that was helpful! I could at least confirm my messages were also received in domoticz instead of just echoed back via a subscribe in the arduino. I got it all working now, thanks for the helpful hints :) The problem was the build up of the string. the extra quotes wasn ...
by JanJelle
Monday 07 January 2019 21:56
Forum: DIY Hardware and Protocols
Topic: General I/O control of arduino
Replies: 4
Views: 4170

Re: General I/O control of arduino

Hi Waaren, Thanks for the reply. MQTT is new for me but i am giving this a go and I have established connection between my arduino and the MQTT server. I am now trying to replicate the MQTT example that Domoticz has on the website where it uses a virtual temperature sensor and a mosquitto publish ...
by JanJelle
Sunday 06 January 2019 8:22
Forum: DIY Hardware and Protocols
Topic: General I/O control of arduino
Replies: 4
Views: 4170

General I/O control of arduino

Good morning Guys, First of all congratulations on this software, It looks like exactly what I need! I have been looking for a web based server running on a pi to control domotics, and this seems to tick all the boxes. I was wondering if the following is possible: I would like to use the webserver ...