Reacticz dashboard: no install, no hassle

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by MikeF »

Hi ptitneo,

Many thanks for this - just set it up on my Mac - looking good. :D

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?
ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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 :D
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,
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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.
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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.
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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?
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by felix63 »

Thanks NietGiftig. Waar plaats je websocket.conf en (her)start je mosquito dan op een speciale manier?
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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.
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by ptitneo »

ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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) :)
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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! :D
One minor issue is that, when I change level in Domoticz, Reacticz leaves a bar at its (Reacticz's) previous level:
Image
ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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:
Image
Wow, that's weird :shock: 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 ?
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Post by MikeF »

Hi @ptitneo,

Here's a few more screenshots.
1. Drag slider in Reacticz, Domoticz shows 65%:
Image Image
2. Reduce to 37% in Domoticz:
Image Image
3. Increase to 84% in Domoticz:
Image Image

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! ;)
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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&param=switchlight&idx=118&switchcmd=Set Level&level=22

Code: Select all

{
    "status": "OK",
    "title": "SwitchLight"
}
ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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.
Patrick
Posts: 27
Joined: Friday 01 August 2014 23:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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?
ptitneo
Posts: 68
Joined: Tuesday 06 December 2016 22:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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.
User avatar
papoo
Posts: 126
Joined: Friday 22 January 2016 22:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10
Location: France
Contact:

Re: Reacticz dashboard: no install, no hassle

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest