Combination of a Dummy switch + text device

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Combination of a Dummy switch + text device

Post by Holland »

Just wondering if there is already something available where I can show a dynamic text within a switch button.

Quite similar to the mediaplayer button used for Kodi. If a movie is playing the button also shows the title of the movie

thanks
pluggin
Posts: 45
Joined: Tuesday 26 May 2015 22:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Argentina
Contact:

Re: Combination of a Dummy switch + text device

Post by pluggin »

I use a dummy TEXT sensor and with a script change the svalue. The only problem is don´t log the info over time

dec=$data
curl -s "http://192.168.0.8:9550/json.htm?type=c ... value=$dec" > /dev/null

Is this what you looking for?
Razberry + 4 Eversrping HSM02 + 2 Aeotec Multi-Sensor + 1 Aeotec Micro Dimmer + 4 Aeotec Micro Smart Energy Switch, 2nd + 1 Remotec ZXT-120 + 1 Aeotec Smart Energy Monitor + 1 Everspring SE812 indoor Siren + 2 fibaro motion sensor + Aeotec water sensor
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Combination of a Dummy switch + text device

Post by Holland »

That is one of things I'm trying to achieve. The text (the above variable dec) should display on a switch icon

See the below media button I use for Kodi.
Attachments
OSMC.JPG
OSMC.JPG (17.36 KiB) Viewed 3432 times
pluggin
Posts: 45
Joined: Tuesday 26 May 2015 22:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Argentina
Contact:

Re: Combination of a Dummy switch + text device

Post by pluggin »

Yes, the $dec variable, the contains the value you want to display in the text sensor
Razberry + 4 Eversrping HSM02 + 2 Aeotec Multi-Sensor + 1 Aeotec Micro Dimmer + 4 Aeotec Micro Smart Energy Switch, 2nd + 1 Remotec ZXT-120 + 1 Aeotec Smart Energy Monitor + 1 Everspring SE812 indoor Siren + 2 fibaro motion sensor + Aeotec water sensor
Holland
Posts: 179
Joined: Friday 12 July 2013 13:53
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta Ch
Location: The Netherlands
Contact:

Re: Combination of a Dummy switch + text device

Post by Holland »

But with just a textsensor I can't switch anything.

The above image is a switch, but with the functionality of a text sensor integrated. The circled part is dynamic.
hendrik6073
Posts: 9
Joined: Wednesday 28 January 2015 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Combination of a Dummy switch + text device

Post by hendrik6073 »

how do you handle white spaces in text ? if i add white spaces text is not displayed. i can work around it by placing dots and underscores, text is not clearly readeble with all those dots and underscores. Also would like to use the \n newline character to ge info clear and readable in ImperiHome buttons
Yann
Posts: 12
Joined: Tuesday 17 May 2016 14:42
Target OS: Windows
Domoticz version: 2020.2
Location: France
Contact:

Re: Combination of a Dummy switch + text device

Post by Yann »

For the white space, insert %20 instead and it will work.
HP Microserver + Domoticz + Aeon Labs Z-Wave USB +RFX433
ronnyandre
Posts: 7
Joined: Monday 02 January 2017 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Oslo, Norway
Contact:

Re: Combination of a Dummy switch + text device

Post by ronnyandre »

Is this something that is possible in current version of Domoticz?
Newbie just started with Domoticz and home automation.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest