mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Merge branch 'next' into rc
This commit is contained in:
commit
74a41104bf
@ -84,6 +84,7 @@ Known supported devices:
|
|||||||
- Marantz SR5015
|
- Marantz SR5015
|
||||||
- Marantz SR6007 - SR6012
|
- Marantz SR6007 - SR6012
|
||||||
- Marantz SR7007
|
- Marantz SR7007
|
||||||
|
- Marantz SR7010
|
||||||
- Marantz SR7012
|
- Marantz SR7012
|
||||||
- Marantz SR8015
|
- Marantz SR8015
|
||||||
- Marantz NR1504
|
- Marantz NR1504
|
||||||
|
@ -18,7 +18,6 @@ This integration is limited to detect:
|
|||||||
* [Bluesound speakers](/integrations/bluesound)
|
* [Bluesound speakers](/integrations/bluesound)
|
||||||
* [Bose Soundtouch speakers](/integrations/soundtouch)
|
* [Bose Soundtouch speakers](/integrations/soundtouch)
|
||||||
* [Enigma2 media player](/integrations/enigma2)
|
* [Enigma2 media player](/integrations/enigma2)
|
||||||
* [Frontier Silicon internet radios](/integrations/frontier_silicon)
|
|
||||||
* [Linn / Openhome](/integrations/openhome)
|
* [Linn / Openhome](/integrations/openhome)
|
||||||
* [SABnzbd downloader](/integrations/sabnzbd)
|
* [SABnzbd downloader](/integrations/sabnzbd)
|
||||||
* [Yamaha media player](/integrations/yamaha)
|
* [Yamaha media player](/integrations/yamaha)
|
||||||
@ -49,7 +48,6 @@ Valid values for ignore are:
|
|||||||
* `bluesound`: Bluesound speakers
|
* `bluesound`: Bluesound speakers
|
||||||
* `bose_soundtouch`: Bose Soundtouch speakers
|
* `bose_soundtouch`: Bose Soundtouch speakers
|
||||||
* `enigma2`: Enigma2 media players
|
* `enigma2`: Enigma2 media players
|
||||||
* `frontier_silicon`: Frontier Silicon internet radios
|
|
||||||
* `lg_smart_device`: LG Soundbars
|
* `lg_smart_device`: LG Soundbars
|
||||||
* `openhome`: Linn / Openhome
|
* `openhome`: Linn / Openhome
|
||||||
* `sabnzbd`: SABnzbd downloader
|
* `sabnzbd`: SABnzbd downloader
|
||||||
|
@ -840,93 +840,6 @@ void send_status_message()
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notify
|
|
||||||
|
|
||||||
<div class='note warning'>
|
|
||||||
|
|
||||||
The Notify platform is deprecated and replaced with the [Text platform](#text).
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
Setting the `target` key in the service call will target the name of the MySensors device in Home Assistant. MySensors device names follow the notation: "[Child description]" or alternatively "[Sketch name] [Node id] [Child id]".
|
|
||||||
|
|
||||||
#### Notify automation example
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
...
|
|
||||||
action:
|
|
||||||
service: notify.mysensors
|
|
||||||
data:
|
|
||||||
message: Welcome home!
|
|
||||||
target: "TextSensor 254 1"
|
|
||||||
```
|
|
||||||
|
|
||||||
The following sensor types are supported:
|
|
||||||
|
|
||||||
#### MySensors version 2.0 and higher
|
|
||||||
|
|
||||||
| S_TYPE | V_TYPE |
|
|
||||||
| ------ | ------ |
|
|
||||||
| S_INFO | V_TEXT |
|
|
||||||
|
|
||||||
#### Notify example sketch
|
|
||||||
|
|
||||||
```cpp
|
|
||||||
/*
|
|
||||||
* Documentation: https://www.mysensors.org
|
|
||||||
* Support Forum: https://forum.mysensors.org
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Enable debug prints to serial monitor
|
|
||||||
#define MY_DEBUG
|
|
||||||
#define MY_RADIO_NRF24
|
|
||||||
|
|
||||||
#include <MySensors.h>
|
|
||||||
#include <SPI.h>
|
|
||||||
|
|
||||||
#define SN "TextSensor"
|
|
||||||
#define SV "1.0"
|
|
||||||
#define CHILD_ID 1
|
|
||||||
|
|
||||||
MyMessage textMsg(CHILD_ID, V_TEXT);
|
|
||||||
bool initialValueSent = false;
|
|
||||||
|
|
||||||
void setup(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void presentation() {
|
|
||||||
sendSketchInfo(SN, SV);
|
|
||||||
present(CHILD_ID, S_INFO, "TextSensor1");
|
|
||||||
}
|
|
||||||
|
|
||||||
void loop() {
|
|
||||||
if (!initialValueSent) {
|
|
||||||
Serial.println("Sending initial value");
|
|
||||||
// Send initial values.
|
|
||||||
send(textMsg.set("-"));
|
|
||||||
Serial.println("Requesting initial value from controller");
|
|
||||||
request(CHILD_ID, V_TEXT);
|
|
||||||
wait(2000, C_SET, V_TEXT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void receive(const MyMessage &message) {
|
|
||||||
if (message.type == V_TEXT) {
|
|
||||||
if (!initialValueSent) {
|
|
||||||
Serial.println("Receiving initial value from controller");
|
|
||||||
initialValueSent = true;
|
|
||||||
}
|
|
||||||
// Dummy print
|
|
||||||
Serial.print("Message: ");
|
|
||||||
Serial.print(message.sensor);
|
|
||||||
Serial.print(", Message: ");
|
|
||||||
Serial.println(message.getString());
|
|
||||||
// Send message to controller
|
|
||||||
send(textMsg.set(message.getString()));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Remote
|
## Remote
|
||||||
|
|
||||||
The following type combinations are supported:
|
The following type combinations are supported:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user