User Tools

Site Tools


mqtt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mqtt [2018-06-16 21:01] – [Displays] cazagenmqtt [2019-04-02 21:49] cazagen
Line 90: Line 90:
 | environment/g1/extractor | 0=off, 1=on | Note that the radio link for this is patchy so may not work immediately. Do not send multiple events to compensate as this should be done by the driver script instead. | | environment/g1/extractor | 0=off, 1=on | Note that the radio link for this is patchy so may not work immediately. Do not send multiple events to compensate as this should be done by the driver script instead. |
 | environment/g1/heating | 0-30, off | Send a numeric value to set a target temperature for G1, off to turn the heating off | | environment/g1/heating | 0-30, off | Send a numeric value to set a target temperature for G1, off to turn the heating off |
 +| environment/g8/extractor/relay/0 | 0=off, 1=on | Wall extractor in workshop |
  
 ===== Lighting ===== ===== Lighting =====
Line 102: Line 103:
 | dali/g1/preset/<preset> | (none) | preset=off/dim/bright/corners/movie/comfort/presentation/harmony/random or preset=<number> | | dali/g1/preset/<preset> | (none) | preset=off/dim/bright/corners/movie/comfort/presentation/harmony/random or preset=<number> |
 | dali/g1/set/<light-id> | 0-254 | light-id=0-17 or light-id=all | | dali/g1/set/<light-id> | 0-254 | light-id=0-17 or light-id=all |
-| dali/g1/script | json-formatted script | |+| dali/g1/script | json-formatted script | <code>[["set", 5,0], ["delay",2000], ["set_all",254]]</code> will set light number 5 to zero, wait for 2 seconds, then set everything to 254|
  
 ^ Topic ^ Payload ^ Notes ^ ^ Topic ^ Payload ^ Notes ^
Line 112: Line 113:
  
 ^ Topic ^ Payload ^ Notes ^ ^ Topic ^ Payload ^ Notes ^
-| display/rhapsody/submessage | {"id": "<uniq-ref>", "message": "text..."} | Optional attributes: colour: red/yellow/green, priority: 1-100 (low values will be shown first, default=10). Max length 169 chars, 170+ crashes the script. |+| display/rhapsody/submessage | {"id": "<uniq-ref>", "message": "text..."} | Optional attributes: colour: red/yellow/green/multi, priority: 1-100 (low values will be shown first, default=10). Max length 169 chars, 170+ crashes the script (length limit is lower for multi-colour). |
 | display/rhapsody/raw | raw data | Send raw messages to Rhapsody display (not recommended) | | display/rhapsody/raw | raw data | Send raw messages to Rhapsody display (not recommended) |
 | display/rhapsody/reset | | Reset the Rhapsody display (only required if the display is corrupted) | | display/rhapsody/reset | | Reset the Rhapsody display (only required if the display is corrupted) |
Line 130: Line 131:
 | display/doorbot/buttons/green/state | up, down | Sent by device, do not write | | display/doorbot/buttons/green/state | up, down | Sent by device, do not write |
  
-G1 LED strip:+G1 LED strip (the one that goes around the edge of the room):
  
 ^ Topic ^ Payload ^ Notes ^ ^ Topic ^ Payload ^ Notes ^
 | display/g1/leds | <colour> | css3 web colours or hex values (e.g. ff0000) | | display/g1/leds | <colour> | css3 web colours or hex values (e.g. ff0000) |
-| display/g1/leds | <preset> | presets include: rainbow, zap, chase, test |+| display/g1/leds | <preset> | presets include: rainbow, zap, chase, test, pixelpicker |
 | display/g1/leds/brightness | [0-100] | changes the brightness of the leds to //n// percent | | display/g1/leds/brightness | [0-100] | changes the brightness of the leds to //n// percent |
 +| display/g1/leds/picker/json | <json> | When in the pixelpicker preset send the following example payload, '{"1":[255, 255, 0], "2":[0, 0, 255]}' , this will set LED 1 to yellow, and LED 2 to blue |
  
 The LEDs can also be addressed in real time via a UDP network protocol. See [[https://gist.github.com/timhawes/910ee6b5bf9c36833235b0e075f01cbf|this example]]. The LEDs can also be addressed in real time via a UDP network protocol. See [[https://gist.github.com/timhawes/910ee6b5bf9c36833235b0e075f01cbf|this example]].
 +
 +G1 LED String, that goes across the ceiling in the middle of the room:
 +
 +This is not on mqtt yet, but can be controlled with a web interface at http://ceilingleds.hacklab.
 +
 +G1 Warning Turret:
 +
 +^ Topic ^ Payload ^ Notes ^
 +| display/g1/turret/red | 0=off 1=on | Turns on the red band on the Turret light |
 +| display/g1/turret/amber| 0=off 1=on | Turns on the amber band on the Turret light |
 +| display/g1/turret/green| 0=off 1=on | Turns on the green band on the Turret light |
  
 NEC Digital Signage Display NEC Digital Signage Display
  
 ^ Topic ^ Payload ^ Notes ^ ^ Topic ^ Payload ^ Notes ^
-| display/nec/brightness | [0-100] | changes the brightness of the display to //n// percent |+<del>display/nec/brightness</del> <del>[0-100]</del> <del>changes the brightness of the display to //n// percent</del>
 +| CURRENTLY BORKED ||| 
 +Shorekarn scrolling display (in G1 window) 
 + 
 +^ Topic ^ Payload ^ Notes ^ 
 +| <del>display/shorekarn/message</del> | <del>text</del> | | 
 +| Not currently set up ||| 
 + 
 +New Window display 
 +^ Topic ^ Payload ^ Notes ^ 
 +| display/g1/windowled/text | text | seems to slow down render with large text| 
 +| display/g1/windowled/colour | r,g,b | comma separated string of red, green, and blue (0-255) Takes effect on next text change |   
 + 
 +G1 Projector 
 +^ Topic ^ Payload ^ Notes ^ 
 +| display/g1/projector/on | empty | Turns on projector |  
 +| display/g1/projector/off | empty | Turns off projector |  
 +| display/g1/projector/channel | text | Changes channel of radio to one of hdmi, vga, or svideo 
  
 ===== Access Control ===== ===== Access Control =====
Line 155: Line 185:
 | sound/[room]/speak | text | | | sound/[room]/speak | text | |
 | sound/[room]/announce | text | | | sound/[room]/announce | text | |
-| sound/kill | empty message | Kills any playing sound |  +| sound/[room]/polly/[voice] | text | See voice list at https://docs.aws.amazon.com/polly/latest/dg/voicelist.html | 
-| sound/voice/change | voice name | Changes the voice to the one specified | +| sound/kill | empty message | Kills all queued and/or playing sounds |  
 +<del>sound/voice/change</del> <del>voice name</del> <del>Changes the voice to the one specified</del> |  
 +| sound/time-out | seconds | Kill all playing sounds and remain silent for N seconds |
  
-The following are a list of possible voicesmore data can be found at https://aws.amazon.com/polly/+Replace [room] with one of g1g2, g8, g11, or all. Room names can also be combined. e.g"g1-g2-g8"
  
-Nicole, Enrique, Tatyana, Carmen, Lotte, Russell, Geraint, Mads, Penelope, Joanna, Matthew, Brian, Seoyeon, Maxim, Ricardo, Ruben, Giorgio, Carla, Naja, Astrid, Maja, Ivy, Chantal, Kimberly, Amy, Vicki, Marlene, Ewa, Conchita, Karl, Mathieu, Miguel, Justin, Jacek, Takumi, Ines, Cristiano, Gwyneth, Mizuki, Celine, Jan, Liv, Joey, Filiz, Dora, Raveena, Aditi, Salli, Vitoria, Emma, Hans, Kendra+Sound effects get annoying **fast**. Don't say we didn't warn you.
  
-Replace [room] with one of g1, g2, g8, g11, or all+===== MQTT -> IR =====
  
-Sound effects get annoying **fast**Don't say we didn't warn you.+Cazagen recently add a toy wiimote to G1 that allows for MQTT -> IR. 
 + 
 +It has the following commands. 
 + 
 +^ Topic ^ Payload ^ Notes ^ 
 +| ir/g1/amp/channel | pi, hdmi, mordred, table, laserdisc | Changes channel on amp to the chosen payload | 
 +| ir/g1/amp | volumeup, volumedown, mute, poweron, poweroff, powertoggle | Transmits the obvious command |  
 +| ir/g1/laserdisc | poweron, poweroff, powertoggle | 
 +| ir/g1/raw | | not implemented | 
 +| ir/g1/globalcache | | not implemented | 
 +| ir/g1/... | | not implemented |
  
 ===== JeeNode Radios ===== ===== JeeNode Radios =====
Line 248: Line 290:
 ===== TODO ===== ===== TODO =====
  
-  * Network devices +<del>  * Network devices</del>\\ 
-  * Door and window status +<del>  * Door and window status</del>\\ 
-  * Shorekarn scrolling LED sign +<del>  * Shorekarn scrolling LED sign</del>\\ 
-  * IRC bot +<del>  * IRC bot</del>\\
  
mqtt.txt · Last modified: 2024-02-14 08:03 by simon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki