Page 3 of 9
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 16:47
by MikeF
Hi ptitneo,
Many thanks for this - just set it up on my Mac - looking good.
One strange issue I've noticed: I've got a LightwaveRF dimmer set up in Domoticz, and if I slide all the way to the right in the Reacticz icon, the dimmer only goes to 46% (as shown in Domoticz). If I slide to 100% in Domoticz (actually, 96%), Reacticz shows 0 (i.e., all grey).
Could this be to do with the fact that there are 31 steps in Domoticz for a LightwaveRF dimmer?
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 17:42
by ptitneo
NietGiftig wrote:I just want to say that I'm going to use Reacticz as my main day-to-day user interface on my tablets.
Woot, thanks for your support
MikeF wrote:I've got a LightwaveRF dimmer set up in Domoticz, and if I slide all the way to the right in the Reacticz icon, the dimmer only goes to 46% (as shown in Domoticz). If I slide to 100% in Domoticz (actually, 96%), Reacticz shows 0 (i.e., all grey).
Could this be to do with the fact that there are 31 steps in Domoticz for a LightwaveRF dimmer?
Yes exactly, it sounds like it's the same issue G3rard reported
here. The max value varies depending on the device and Reacticz was developed for Hue light (because that's the only type I have). It's a bit tricky to support other dimmers because MQTT is very limited in terms of the information it provides, but I'll find a way around. If you could add the JSON data for your device to the issue in github that would be greatly appreciated.
Cheers,
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 19:09
by MikeF
ptitneo wrote: If you could add the JSON data for your device to the issue in github that would be greatly appreciated.
Done
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 19:55
by NietGiftig
ptitneo wrote: It's a bit tricky to support other dimmers because MQTT is very limited in terms of the information it provides, but I'll find a way around.
Yes, the same problem i have encountered when I use Node-red.
The MQTT output is far from complete.
I think that @gizmocuz for some reason has no real interest in the mqtt thing, or lacks the time
But, that is his legitimate choice, but not good for developing
If only there was a generic hex colour / hue / brightness dummy device with MQTT output.
I (we) could do the rest in our own solutions.
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 21:27
by felix63
I appeared to have MQTT installed but not running on my Raspberry Pi3. Could anyone share with a similar configuration share his or her /etc/mosquitto/mosquitto.conf file?
I tried but I keep getting
Code: Select all
1484077607: mosquitto version 1.4.10 (build date Thu, 25 Aug 2016 10:12:09 +0100) starting
1484077607: Config loaded from /etc/mosquitto/mosquitto.conf.
1484077607: Opening ipv4 listen socket on port 1883.
1484077607: Opening ipv6 listen socket on port 1883.
1484077636: New connection from 192.168.178.29 on port 1883.
1484077636: Socket error on client <unknown>, disconnecting.
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 21:36
by NietGiftig
felix63 wrote: Could anyone share with a similar configuration share his or her /etc/mosquitto/mosquitto.conf file?
Here you go, nothing in there I'm afraid
Code: Select all
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
You have mosquitto with websockets enabled?
I have the websockets at port 1884
Have you filled that in Reacticz?
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 21:40
by NietGiftig
Pushed send to soon
websockets.conf
Code: Select all
# Standard Listener
listener 1883
protocol mqtt
#allow_anonymous false
#password_file /etc/mosquitto/passwords.txt
# Websockets Listener
listener 1884
#http_dir
#Set the protocol to accept for this listener. Can be mqtt (the default), or websockets.
protocol websockets
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 22:31
by felix63
Thanks NietGiftig. Waar plaats je websocket.conf en (her)start je mosquito dan op een speciale manier?
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 22:47
by NietGiftig
Please keep the language English
Just do a little search on google, try "start mqtt with websockets" or something like that
So much info on the WEB, I do not have to repeat it here.
It costs me more time time to type my own findings then it cost your time to search it yourself.
Re: Reacticz dashboard: no install, no hassle
Posted: Tuesday 10 January 2017 22:58
by ptitneo
Re: Reacticz dashboard: no install, no hassle
Posted: Wednesday 11 January 2017 0:45
by ptitneo
Hi everyone, I've tried something to fix dimmers that have different max levels (basically it now calls the JSON API once to figure it out, while still relying on MQTT for updates). Let me know if it works for you !
PS: @NietGiftig "Hide Off level" in selector switches also works now (it uses the same improvement)

Re: Reacticz dashboard: no install, no hassle
Posted: Wednesday 11 January 2017 6:49
by NietGiftig
ptitneo wrote:
PS: @NietGiftig "Hide Off level" in selector switches also works now (it uses the same improvement)

Yeah, got the message from our friend github.
Already build and run on the server.
Thanks.
Did some reading about react.js.
But no web/js experience so heavy stuff for me. all those frameworks
Re: Reacticz dashboard: no install, no hassle
Posted: Wednesday 11 January 2017 9:38
by MikeF
ptitneo wrote:Hi everyone, I've tried something to fix dimmers that have different max levels (basically it now calls the JSON API once to figure it out, while still relying on MQTT for updates). Let me know if it works for you !
Hi ptitneo,
Working OK now for LightwaveRF dimmer - thanks!
One minor issue is that, when I change level in Domoticz, Reacticz leaves a bar at its (Reacticz's) previous level:

Re: Reacticz dashboard: no install, no hassle
Posted: Wednesday 11 January 2017 14:23
by ptitneo
MikeF wrote:
One minor issue is that, when I change level in Domoticz, Reacticz leaves a bar at its (Reacticz's) previous level:

Wow, that's weird

This white bar represents the target value, immediately reflecting user input, and sent to Domoticz. The yellow area behind represents the actual value as returned by Domoticz. So normally they should be aligned (with a slight delay for the yellow area). The bar should always be positioned exactly where you click, is it not the case ? In your example it looks like you set roughly 40% as a target but the value returned by Domoticz is about 75%. Where did you click? And what was the real value then? If you know how to use the developer console, please give me the JSON request (and response) that Reacticz sends when you click on the dimmer.
@G3rard, do you have the same kind of issue ?
Re: Reacticz dashboard: no install, no hassle
Posted: Wednesday 11 January 2017 17:56
by MikeF
Hi @ptitneo,
Here's a few more screenshots.
1. Drag slider in Reacticz, Domoticz shows 65%:

2. Reduce to 37% in Domoticz:

3. Increase to 84% in Domoticz:
I've also noticed (sorry!) that if I turn the light off in Domoticz (i.e., click on the icon, rather than drag the slider), it goes off in Reacticz; however, when I turn it on again in Domoticz, it stays off in Reacticz.
Hope all this helps!

Re: Reacticz dashboard: no install, no hassle
Posted: Wednesday 11 January 2017 18:07
by MikeF
ptitneo wrote:please give me the JSON request (and response) that Reacticz sends when you click on the dimmer.
Code: Select all
http://192.168.0.63:8080/json.htm?type=command¶m=switchlight&idx=118&switchcmd=Set Level&level=22
Code: Select all
{
"status": "OK",
"title": "SwitchLight"
}
Re: Reacticz dashboard: no install, no hassle
Posted: Wednesday 11 January 2017 18:08
by ptitneo
Ah ok thanks, I understand now

That's the expected behavior - I just didn't think about changing values alternatively using Domoticz and Reacticz. As I explained, the white bar is just a visual feedback to show that Reacticz is sending the command, it only reflects the local value that you manually set on Reacticz and doesn't get affected by the actual state of the dimmer (which is represented by the yellow area). This is by design. What I can do to make it less confusing is make the white bar simply disappear after a while, showing it back only when Reacticz is being used to set a new value.
Re: Reacticz dashboard: no install, no hassle
Posted: Saturday 14 January 2017 9:57
by Patrick
OMG, where has this been all these years? Great work!
Is there a way I can request a widget type? E.g. meter readouts from the Dutch P1 smartmeter? Or a contact from a MySensor?
Re: Reacticz dashboard: no install, no hassle
Posted: Saturday 14 January 2017 14:28
by ptitneo
Patrick wrote:OMG, where has this been all these years? Great work!
Thanks Patrick
Patrick wrote:Is there a way I can request a widget type? E.g. meter readouts from the Dutch P1 smartmeter? Or a contact from a MySensor?
Please create an issue on the github repository, it helps keeping track of the bugs and requests. Try to put as much information as possible eg what the JSON API returns, that commands can be sent and copy the data below the "unsupported device type" widget that you should be getting when selecting these devices in Reacticz today.
Re: Reacticz dashboard: no install, no hassle
Posted: Saturday 14 January 2017 16:18
by papoo
great! nice job
a little bug
in local installation, script don't works in a subfolder, only at the root of the web server
une requête en français : ce serait cool si tu pouvais nous présenter ton projet sur
http://easydomoticz.com/forum